-
Notifications
You must be signed in to change notification settings - Fork 289
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
Feature ewa resampling #8
Conversation
**kwargs): | ||
rows = self.cache["rows"] | ||
cols = self.cache["cols"] | ||
out_arr = np.empty(data.shape, dtype=data.dtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np.empty_like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think this is a bug. I think it should be rows.shape
instead of data.shape
which is why I did empty
in the first place.
The 'resample' method imported at the top of projectable.py was moved to inside the resample method to avoid circular imports. The resample tests were still patching the global import. Now they modify the original function. I also imported unittest2 in a few modules to be more consistent.
The resample module import now happens inside the test so only the resample tests fail instead of halting all unittests.
What's the status here ? |
This is currently waiting for a stable pyresample version with EWA resampling so satpy with EWA resampling can be properly tested. |
This introduces a new resampling method known as Elliptical Weighted Averaging or EWA. This is the default resampling method used by P2G. These commits require the pyresample PR for the actual "work" code for EWA: pytroll/pyresample#37
I still need to write tests and clean some things up.