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

How does xesmf treats grid cell with Nan values? #129

Open
makr-a opened this issue Feb 20, 2023 · 1 comment
Open

How does xesmf treats grid cell with Nan values? #129

makr-a opened this issue Feb 20, 2023 · 1 comment

Comments

@makr-a
Copy link

makr-a commented Feb 20, 2023

Hello everyone,
I want to regrid some satellite data with Nan values inside, using xesmf Regridder. Is there a way that Xesmf interpolate all the values in a grid cell without calculating the Nan values in that same grid cell (some how negelct the Nan values)?

Because otherwise I get false value either I do ignore_degenerate=True or False and also when I rewrite the Nan values to 0.

I wouuld be very glad if someone can help me in that point.
Thank you in advance.
Ismail Makroum

@vinodkatmos
Copy link

vinodkatmos commented Dec 6, 2023

Eventually I also stumbled across this issue and becomes even worse due to interpolation when you have stitched multiple orbits. For me, setting unmapped_to_nan=True was important to make sure no artificial values were created. However, I would request the developers to look into this issue.
I can provide sample data and minimum working code, but that would be around 100 Mb.

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

2 participants