-
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 CSPP Geo (geocat) AHI reading support #239
Conversation
If a reader supports multiple sensors and there are composite configs for each sensor that conflict then there is no telling which one will get loaded first. This allows file handlers to tell the reader what sensor these files belong to.
Codecov Report
@@ Coverage Diff @@
## develop #239 +/- ##
===========================================
+ Coverage 41.06% 60.67% +19.6%
===========================================
Files 212 111 -101
Lines 26842 13673 -13169
===========================================
- Hits 11023 8296 -2727
+ Misses 15819 5377 -10442
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.
LGTM
@@ -96,7 +96,7 @@ def get_test_content(self, filename, filename_info, filetype_info): | |||
if key + '/attr/' + a in file_content: | |||
attrs[a] = file_content[key + '/attr/' + a] | |||
if val.ndim > 1: | |||
file_content[key] = DataArray(val, dims=('y', 'x'), attrs=attrs) | |||
file_content[key] = DataArray(val, dims=('lines', 'elements'), attrs=attrs) |
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.
why not x and y ?
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.
The test is meant to represent what is in the file. The NetCDF4 utility wrapper does not rename any dimensions so in the geocat files the dimensions are actually lines and elements.
This PR adds AHI dataset identifiers to the geocat reader which will allow full support for CSPP Geo AHI products. Without this added to the reader config the datasets would not have an associated wavelength.
This PR also includes a large-ish change to the base readers and file handlers with a
sensor_names
property. Previously this was just an instance attribute. The default behavior is the same as before. The difference happens for any file handler that redefinessensor_names
which will be used to determine what sensor's files have been loaded. This was needed for the geocat reader which supports multiple sensors including ABI and AHI. Some of the composite entries for these sensors conflict and in the previous implementation it was loading both ABI and AHI configs and which one took priority was unspecified.git diff origin/develop **/*py | flake8 --diff