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 RSR reader for the EPIC instrument onboard DSCOVR #200

Merged
merged 8 commits into from
Oct 21, 2023

Conversation

simonrp84
Copy link
Member

This PR adds a conversion script for spectral response functions for the EPIC instrument aboard the DSCOVR satellite.

It converts the excel file with RSR data into an HDF5 file suitable for pyspectral.

@simonrp84 simonrp84 requested a review from adybbroe October 18, 2023 10:57
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Merging #200 (2684703) into main (31fdaf7) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #200   +/-   ##
=======================================
  Coverage   89.27%   89.27%           
=======================================
  Files          23       23           
  Lines        2545     2545           
=======================================
  Hits         2272     2272           
  Misses        273      273           
Flag Coverage Δ
unittests 89.27% <100.00%> (ø)

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

Files Coverage Δ
pyspectral/bandnames.py 100.00% <ø> (ø)
pyspectral/utils.py 90.98% <100.00%> (ø)

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! Many thanks. Just one comment that I also want your view on?
Maybe @rolle-at-work , @mraspaud and others have an opinion as well here?

rsr_convert_scripts/epic_reader.py Show resolved Hide resolved
@adybbroe adybbroe self-requested a review October 20, 2023 12:28
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.

I am testing off line @simonrp84 and get some errors.
First I think we need to rename the hdf5 file to rsr_epic_DSCOVR.h5
WMO Oscar says "DSCOVR" for the satellite

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.

We need changing the name of the hdf5 file as said...
I am testing off line. Will come back

@simonrp84
Copy link
Member Author

OK, have done all the above - should be better now :)

Now with normalized RSR responses for epic on DISCOVR


Signed-off-by: Adam.Dybbroe <[email protected]>
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 have updated Zenodo and the link and version in Pyspectral. (Unfortunately forgot to state the right version (1.2.4) on Zenodo, so now it says version 30. But should not have any affect as long as the link in utils.py is correct.

@adybbroe adybbroe merged commit fd32fe9 into pytroll:main Oct 21, 2023
14 checks passed
@simonrp84 simonrp84 deleted the epic_rsr branch May 1, 2024 15:27
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.

3 participants