Simpler horizontal remapping methods for diagnostics #2455
Simpler horizontal remapping methods for diagnostics #2455akshaysridhar merged 1 commit intomainfrom
Conversation
2bbd332 to
5b876f1
Compare
ph-kev
left a comment
There was a problem hiding this comment.
I think the tests in ClimaDiagnostics are failing because a default wasn't provided for horizontal_method in the Remapper object?
I think someone who know more about the math of interpolation should look at this too.
Thanks @ph-kev : API has been updated to fix downstream failures - and struct properties updated in |
8f572ee to
806b84a
Compare
|
Adding some context from ClimaAtmos runs via @oalcabes : wherein the -2.2km minimum is clearly unphysical, compared with the simpler bilinear remapping (both calculations on identical target meshes) - |
juliasloan25
left a comment
There was a problem hiding this comment.
Thanks Akshay! The results look really nice. Just to clarify - the default remapping remains unchanged (spectral element), and now we have an option for bilinear remapping which can be used for e.g. diagnsotics?
The intent here was to retain the existing SEM interpolation and add a simpler option that people can invoke elsewhere if necessary. Bilinear interpolation will "smooth" the result (but will not generate spurious negative values in the output due to ringing from higher polynomial orders). For diagnostic outputs only, I'd like to make the bilinear interpolation the default choice. I expect that, where conservation is critical we would be using the |
imreddyTeja
left a comment
There was a problem hiding this comment.
This looks mostly good to me. I'm a bit confused by the interpolate_array changes though
| end | ||
|
|
||
| """`BilinearRemapping()` with no arguments: method tag; Remapper constructor fills in the arrays.""" | ||
| BilinearRemapping() = BilinearRemapping(nothing, nothing, nothing, nothing) |
There was a problem hiding this comment.
Is this needed? The constructor can also be dispatched to with the types
|
Btw the downstream ClimaLand tests are failing because of a separate issue that will be fixed today |
Thanks - the |
00717e5 to
26c716b
Compare
Add BilinearRemapping util to preserve existing interface Co-authored-by: Julia Sloan <51397186+juliasloan25@users.noreply.github.com>
26c716b to
31e34ad
Compare
Simpler horizontal remapping methods for diagnostics

Enables simpler bilinear interpolation option (see ClimaInterpolations.jl) within the Remapping module.
Example:
