-
Notifications
You must be signed in to change notification settings - Fork 300
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
Fix masking of AHI HSD space pixels #592
Conversation
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.
LGTM. I think I'm going to mark this as a "bug fix" for 0.11.2 and will merge right away. Technically this is a "feature" or at least an optimization but given the off by one issue that was discovered this sounds more like a bug fix. Correct me if I'm wrong.
@djhoese Agree! |
Codecov Report
@@ Coverage Diff @@
## master #592 +/- ##
==========================================
+ Coverage 77.45% 77.64% +0.19%
==========================================
Files 136 136
Lines 19168 19248 +80
==========================================
+ Hits 14846 14946 +100
+ Misses 4322 4302 -20
Continue to review full report at Codecov.
|
Replace usage of
satpy.readers.ahi_hsd.AHIHSDFileHandler.geo_mask
withsatpy.readers.utils.get_geostationary_mask
because they do the same thing.A closer analysis revealed that the masks computed by the two methods are shifted vertically by one pixel. The reason for that are incorrect line indices in
geo_mask
(shifted by one). If applying the following modification, both methods compute exactly the same masks. Therefore it should be safe to replacegeo_mask
withget_geostationary_mask
.git diff origin/master -- "*py" | flake8 --diff