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

Add AGRI bands to the BANDNAMES dict #150

Merged
merged 3 commits into from
Sep 28, 2022
Merged

Conversation

simonrp84
Copy link
Member

When generating a true_color image in satpy I noticed that there's a lot of warnings that the band-specific RSRs cannot be found, which seems to be because in the RSRs the bands are listed as ch1, ch2, etc whereas satpy uses C01, C02...

This PR adds AGRI to the BANDNAMES dict, enabling the RSRs to be used correctly.

@codecov
Copy link

codecov bot commented Jun 27, 2022

Codecov Report

Merging #150 (ebdcfe2) into main (6948a7a) will increase coverage by 4.21%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
+ Coverage   83.79%   88.00%   +4.21%     
==========================================
  Files          23       22       -1     
  Lines        2394     2468      +74     
==========================================
+ Hits         2006     2172     +166     
+ Misses        388      296      -92     
Flag Coverage Δ
unittests 88.00% <100.00%> (+4.21%) ⬆️

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

Impacted Files Coverage Δ
pyspectral/bandnames.py 100.00% <100.00%> (ø)
pyspectral/tests/test_utils.py 100.00% <0.00%> (ø)
pyspectral/tests/test_rayleigh.py 100.00% <0.00%> (ø)
pyspectral/tests/test_rsr_reader.py 100.00% <0.00%> (ø)
pyspectral/__init__.py
pyspectral/rayleigh.py 95.48% <0.00%> (+4.62%) ⬆️
pyspectral/rsr_reader.py 77.99% <0.00%> (+5.56%) ⬆️
pyspectral/utils.py 79.35% <0.00%> (+28.07%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

'ch14': 1.0}

FY4_AGRI_BAND_NAMES = ['ch1', 'ch2', 'ch3', 'ch4', 'ch5', 'ch6', 'ch7', 'ch8',
'ch9', 'ch10', 'ch11', 'ch12', 'ch13', 'ch14', 'ch15']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E128 continuation line under-indented for visual indent

@djhoese
Copy link
Member

djhoese commented Sep 28, 2022

@simonrp84 what is the state of this PR?

@adybbroe adybbroe self-assigned this Sep 28, 2022
@adybbroe adybbroe assigned simonrp84 and unassigned adybbroe Sep 28, 2022
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Copy link
Collaborator

@adybbroe adybbroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I fixed the few stickler issues.

@adybbroe adybbroe merged commit 31845a1 into pytroll:main Sep 28, 2022
@simonrp84
Copy link
Member Author

Thanks for fixing this @adybbroe!

@simonrp84 simonrp84 deleted the add_agri branch September 29, 2022 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants