-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpolation schemes #43
Comments
I started refactoring the code to use xesmf for the regridding. However, xesmf (and supposedly ESMF) only supports 2D regridding in horizontal dimensions. This works fine for the tidal forcing and surface forcing. But we need more than that, namely
Regridding the boundary forcing is an expensive operation because it may have to happen for many time steps (for the initial conditions we only have one time step). So it would be great to be able to reuse pre-computed weights for the boundary forcing at each time step, no matter if we use option a) or b). The question is: Is there a library out there that can help us with the weight generation for the boundary forcing, or do we need to write something new? |
What type of regridding is this? If it's regridding within the same rectilinear coordinate system then we might have a few more options.
I don't know, but if it already exists it should be in this list, and if we need something new we should perhaps join forces with the people already thinking about this in the discussions linked at the bottom of that page. |
We need regridding
Okay, I will look through this list and report back. |
We may have to change the interpolation scheme at several places in
roms-tools
. So far,roms-tools
uses linear interpolation because this is the only scheme (besides nearest neighbor interpolation) thatxarray
supports when interpolating over multiple dimensions.The MATLAB-based scripts use a modified akima scheme for the following fields:
hraw
, see here; since a smoother is applied after this, the interpolation scheme does arguably not matter that muchFor the remaining atmospheric forcing fields and tidal forcing fields, the MATLAB-based scripts use linear interpolation.
The text was updated successfully, but these errors were encountered: