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

Pyspectral is trying to read wrong RSR file for FY-3D/MERSI-2 #164

Closed
pnuu opened this issue Oct 21, 2022 · 4 comments · Fixed by #165
Closed

Pyspectral is trying to read wrong RSR file for FY-3D/MERSI-2 #164

pnuu opened this issue Oct 21, 2022 · 4 comments · Fixed by #165
Assignees

Comments

@pnuu
Copy link
Member

pnuu commented Oct 21, 2022

Problem description

The filename of FY-3D/MERSI-2 RSR data in Zenodo is rsr_mersi-2_FY-3D.h5, but the latest Pyspectral 0.12.0 is trying to read rsr_mersi2_FY-3D.h5.

Expected Output

The rsr_mersi-2_FY-3D.h5 should be read.

Actual Result, Traceback if applicable

[INFO: 2022-10-21 02:20:24 : satpy.modifiers.spectral] Getting reflective part of 20
[DEBUG: 2022-10-21 02:20:24 : pyspectral.rsr_reader] Filename: /home/users/satman/.local/share/pyspectral/rsr_mersi2_FY-3D.h5
[WARNING: 2022-10-21 02:20:24 : pyspectral.rsr_reader] No rsr file /home/users/satman/.local/share/pyspectral/rsr_mersi2_FY-3D.h5 on disk
[INFO: 2022-10-21 02:20:24 : pyspectral.rsr_reader] RSR data up to date, so seems there is no support for this platform and sensor

and another:

[DEBUG: 2022-10-21 03:53:49 : pyspectral.rsr_reader] Filename: /home/users/satman/.local/share/pyspectral/rsr_mersi2_FY-3D.h5
[WARNING: 2022-10-21 03:53:49 : pyspectral.rsr_reader] No rsr file /home/users/satman/.local/share/pyspectral/rsr_mersi2_FY-3D.h5 on disk
[INFO: 2022-10-21 03:53:49 : pyspectral.rsr_reader] RSR data up to date, so seems there is no support for this platform and sensor
[ERROR: 2022-10-21 03:53:49 : pyspectral.rayleigh] No spectral responses for this platform and sensor: FY-3D mersi-2

Versions of Python, package at hand and relevant dependencies

Python 3.10, Pyspectral 0.12.0.

@pnuu
Copy link
Member Author

pnuu commented Oct 21, 2022

The incoming message has the correct sensor name mersi-2, and I can't find where the mersi2 is put to use in the code 🤔

@pnuu
Copy link
Member Author

pnuu commented Oct 21, 2022

I added another log snippet, where the reported instrument name is mersi-2.

@pnuu
Copy link
Member Author

pnuu commented Oct 21, 2022

Ok, the instrument name is adjusted here: https://github.com/pytroll/pyspectral/blob/main/pyspectral/utils.py#L540 , introduced in 290f5c2

@djhoese
Copy link
Member

djhoese commented Oct 21, 2022

Two things:

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 a pull request may close this issue.

3 participants