Skip to content
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

regrid(field,field) != field #258

Open
senesis opened this issue Jun 18, 2024 · 0 comments
Open

regrid(field,field) != field #258

senesis opened this issue Jun 18, 2024 · 0 comments

Comments

@senesis
Copy link
Collaborator

senesis commented Jun 18, 2024

regrid(a,b) uses CDO operators griddes and e.g. remapbil for regridding field a on the grid of field b
When a == b, one should expect that the output is equal to a. This is not the case, as shown below (first plot is for a, second plot is for minus(regrid(a,a),a))
CDO is probably faulty here, but scriptregrid.shshould alleviate for that, and check if both field have the same grid before actually calling the CDO interpolator

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant