Skip to content
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

Merged

Conversation

ninahakansson
Copy link
Collaborator

@ninahakansson ninahakansson commented Jun 3, 2021

PPS (2021) need the wavelength attribute to be a list with min, center, max
value for the wavelength.

PPS (2021) need the wavelenght attribute to be a list with min, center, max
value for the wavelength.
@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2021

Codecov Report

Merging #62 (372eef7) into master (104ec07) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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              
Flag Coverage Δ
unittests 76.93% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
level1c4pps/seviri2pps_lib.py 80.85% <100.00%> (+0.08%) ⬆️
level1c4pps/tests/test_seviri2pps.py 97.37% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 104ec07...372eef7. Read the comment docs.

@coveralls
Copy link

coveralls commented Jun 3, 2021

Pull Request Test Coverage Report for Build 949286697

  • 3 of 3 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 77.948%

Totals Coverage Status
Change from base Build 903307115: 0.02%
Covered Lines: 1347
Relevant Lines: 1683

💛 - Coveralls

Copy link
Collaborator

@sfinkens sfinkens left a 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... 🙂

@@ -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]
Copy link
Collaborator

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)})

@ninahakansson ninahakansson merged commit 322bb17 into foua-pps:master Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New satpy wavelength attribute format not supported by PPS-2021
4 participants