-
Notifications
You must be signed in to change notification settings - Fork 48
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
Gridding sparse data (fine to coarse) #33
Comments
In your case, getting all NaNs is the expected, default behavior for most algorithms, as explained in #22 (comment). To get rid of NaNs, you need to apply masking like #22 (comment). |
There should be a |
Ah thanks! I had the Now getting non-nan values in the coarse grid as expected: However, now all other coarse cells were set to 0, when I would have expected them to be NaN. From past convos I understand this is the expected current behavior. Using the add offset, mask > offset, subtract offset, workaround works for now but feels a little hacky. Thanks for all the work on #22! |
hi @JiaweiZhuang, I am trying to regrid sparse (~1 km) Ice Bridge data (airborne flight transects) to a coarser 25 km grid, using the new
conservative_normed
method from your master branch. But I am getting only NaNs out.Even if there is only one non-NaN fine cell within a coarse cell, it should assign that only fine cell's value to the coarse cell, correct?
A runable example can be found here.
The text was updated successfully, but these errors were encountered: