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

Feature ewa resampling #8

Merged
merged 6 commits into from
Jun 21, 2016
Merged

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Apr 22, 2016

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.

@djhoese djhoese self-assigned this Apr 22, 2016
@djhoese djhoese added the enhancement code enhancements, features, improvements label Apr 22, 2016
**kwargs):
rows = self.cache["rows"]
cols = self.cache["cols"]
out_arr = np.empty(data.shape, dtype=data.dtype)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np.empty_like

Copy link
Member Author

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.
@mraspaud
Copy link
Member

What's the status here ?

@djhoese
Copy link
Member Author

djhoese commented Jun 7, 2016

This is currently waiting for a stable pyresample version with EWA resampling so satpy with EWA resampling can be properly tested.

@coveralls
Copy link

coveralls commented Jun 21, 2016

Coverage Status

Coverage increased (+0.8%) to 15.714% when pulling 6b1ceec on davidh-ssec:feature-ewa-resampling into b3658da on pytroll:develop.

@djhoese djhoese merged commit b2d024a into pytroll:develop Jun 21, 2016
@djhoese djhoese deleted the feature-ewa-resampling branch April 14, 2017 22:27
mraspaud pushed a commit that referenced this pull request Jun 20, 2018
djhoese pushed a commit that referenced this pull request Apr 25, 2019
Bring my fork up to date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement code enhancements, features, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants