-
Notifications
You must be signed in to change notification settings - Fork 301
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
Add on-the-fly decompression to the AHI HSD reader #984
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, thanks for the quick fix. I just have one small suggestion.
Codecov Report
@@ Coverage Diff @@
## master #984 +/- ##
==========================================
+ Coverage 86.86% 87.02% +0.16%
==========================================
Files 181 181
Lines 27461 27607 +146
==========================================
+ Hits 23854 24026 +172
+ Misses 3607 3581 -26
Continue to review full report at Codecov.
|
Note: This is NOT ready yet. Have discovered that the temp files are not being deleted. Will add + test a fix today. |
…2 if it is available on the system (much faster than bz2 for decompression).
… which(). Also simplify the code a little bit.
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.
Two print statements should be changed to logging, otherwise it looks good! Thanks for making the effort to keep python2 compatibility.
…eeded brackets from if statements
This is still not ready to merge. @simonrp84 will add a test for the unzipping tool. |
…ed prior to attempting deletion
The
HSD
format data from Himawari/AHI typically comes in individual files compressed withbzip2
.At present, satpy requires these files to be decompressed before passing them to the
Scene
function. This PR enables on-the-fly decompression (using the same method as for thePPS
files).I also replaced one unit test function (assertDictContainsSubset) that is deprecated.
flake8 satpy