-
Notifications
You must be signed in to change notification settings - Fork 9
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
Change wavelenght format to match pps-level1c #62
Change wavelenght format to match pps-level1c #62
Conversation
PPS (2021) need the wavelenght attribute to be a list with min, center, max value for the wavelength.
Codecov Report
@@ Coverage Diff @@
## master #62 +/- ##
==========================================
+ Coverage 76.92% 76.93% +0.01%
==========================================
Files 21 21
Lines 1417 1418 +1
Branches 108 108
==========================================
+ Hits 1090 1091 +1
Misses 302 302
Partials 25 25
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Pull Request Test Coverage Report for Build 949286697
💛 - Coveralls |
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 work! Just nitpicking... 🙂
level1c4pps/seviri2pps_lib.py
Outdated
@@ -260,6 +260,7 @@ def set_attrs(scene): | |||
idtag = PPS_TAGNAMES[band] | |||
scene[band].attrs['id_tag'] = idtag | |||
scene[band].attrs['description'] = 'SEVIRI ' + str(band) | |||
scene[band].attrs['wavelength'] = scene[band].attrs['wavelength'][0:3] |
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.
You could use attrs['wavelength'].min/max/central
to improve readability. In the tests you could do
from satpy.dataset.dataid import WavelengthRange
scene = Scene(..., attrs={..., 'wavelength': WavelengthRange(1, 2, 3)})
PPS (2021) need the wavelength attribute to be a list with min, center, max
value for the wavelength.
pytest level1c4pps
flake8