-
Notifications
You must be signed in to change notification settings - Fork 287
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 support for NUCAPS Science EDRs #1061
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1061 +/- ##
==========================================
+ Coverage 88.11% 88.89% +0.77%
==========================================
Files 191 192 +1
Lines 29568 29657 +89
==========================================
+ Hits 26054 26363 +309
+ Misses 3514 3294 -220
Continue to review full report at Codecov.
|
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.
Nice job. For the science edr tests, could you make a separate test dataset that has the same dimension names as your files? Might require copying the FakeNetCDF4FileHandler2
object. Otherwise I had a couple other small comments. Thanks for doing this.
@@ -337,11 +335,195 @@ def test_load_pressure_levels_single_and_pressure_levels(self): | |||
self.assertTupleEqual(pl_ds.shape, (1,)) | |||
|
|||
|
|||
# For testing Science EDRs |
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.
Redundant?
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.
Wow, yes.
import unittest2 as unittest | ||
else: | ||
import unittest | ||
import unittest | ||
|
||
try: | ||
from unittest import mock |
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.
If you have to make other changes you could remove this try/except and only do from unittest import mock
.
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.
Ah, yeah you mentioned that.
But the dimension names on Science EDRs are already just a subset of those in standard EDRs. |
The dimension names in the tests I wrote use |
Then we should just change the single ref to check the file name for version num and label the dimension name |
You mean where the test generates the fake data? Or in the actual reader's file handler? 👍 to the former, not sure on the latter. |
I was thinking this at the end of the FakeN4 file handler:
|
That works for me. |
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! Looks good code-wise. What did we decide for the docstring on the reader module to talk about the differences in the types of files and where they come from?
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
We didn't yet Dave :-) |
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.
Awesome! Thanks.
flake8 satpy
AUTHORS.md
if not there already