-
Notifications
You must be signed in to change notification settings - Fork 303
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 scanline acquisition times to hrit_jma #1185
Conversation
This also fixes the problem, that datasets loaded with the |
lines_sparse = [int(s.split(':=')[1]) for s in splits[0::2]] | ||
times_sparse = [float(s.split(':=')[1]) for s in splits[1::2]] | ||
|
||
if self.platform == HIMAWARI8: |
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.
In case you wonder why only Himawari-8 is checked: The projection name in the header defines the platform, but at the moment it is identical for Himawari-8 and 9 (GEOS(140.70)
). So there is no way to distinguish them.
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.
Great move, JMA...
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.
Isn't that because the design of the two platforms is that they aren't meant to be used (in operations) at the same time?
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.
That might be an explanation!
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, just a couple documentation comments and a question
lines_sparse = [int(s.split(':=')[1]) for s in splits[0::2]] | ||
times_sparse = [float(s.split(':=')[1]) for s in splits[1::2]] | ||
|
||
if self.platform == HIMAWARI8: |
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.
Great move, JMA...
int becomes np.int_ which is platform dependent. Use np.int64 instead.
Codecov Report
@@ Coverage Diff @@
## master #1185 +/- ##
==========================================
+ Coverage 89.61% 89.63% +0.02%
==========================================
Files 200 200
Lines 29504 29600 +96
==========================================
+ Hits 26439 26532 +93
- Misses 3065 3068 +3
Continue to review full report at Codecov.
|
Add scanline acquisition times to the
hrit_jma
reader.Example:
Tested with JAMI (non-segmented), MTSAT-2 Imager (both segmented and non-segmented) and AHI (segmented).
flake8 satpy