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
Support CLASS packed viirs files in viirs_sdr reader #538
Conversation
What is left is find a way to prioritize TC geo files. |
satpy/etc/readers/viirs_sdr.yaml
Outdated
file_key: 'All_Data/{file_group}_All/SolarZenithAngle' | ||
file_type: generic_file | ||
dataset_groups: [GDNBO] | ||
file_key: 'All_Data/{dataset_group}_All/SolarZenithAngle' | ||
DNB_LZA: | ||
name: dnb_lunar_zenith_angle | ||
standard_name: lunar_zenith_angle | ||
resolution: 743 | ||
coordinates: [dnb_longitude, dnb_latitude] | ||
file_type: gdnbo |
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.
Does this need to be file_type: generic_file
to?
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.
get_bounding_box
needs to be handled too, right? And we'll have to figure out how to handle the custom Reader at the bottom of the module which let's the user force TC or not.
Conflicts: satpy/etc/readers/viirs_sdr.yaml
Any idea if this PR works with old DNB files that didn't have TC data? |
|
This PR will work with old DNB file as long as |
Codecov Report
@@ Coverage Diff @@
## master #538 +/- ##
==========================================
+ Coverage 78.39% 78.46% +0.07%
==========================================
Files 138 138
Lines 20013 20252 +239
==========================================
+ Hits 15689 15891 +202
- Misses 4324 4361 +37
Continue to review full report at Codecov.
|
@djhoese any more change requests on this PR ? |
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 some how cleaning up the code while also adding more functionality. I had a couple small docstring things. Otherwise, you obviously tested this with files where multiple datasets were combined in to one file, but what about multiple times in one file (multiple granules)?
Regarding multiple times in one file (multiple granules), I test this with the bounding box test. |
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
This PR adds support for viirs sdr files containing more than one band/dataset at the time.
git diff origin/master -- "*py" | flake8 --diff