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

Verify usage of FillValue vs. _FillValue #3061

Open
3 of 7 tasks
gerritholl opened this issue Feb 12, 2025 · 2 comments
Open
3 of 7 tasks

Verify usage of FillValue vs. _FillValue #3061

gerritholl opened this issue Feb 12, 2025 · 2 comments

Comments

@gerritholl
Copy link
Member

gerritholl commented Feb 12, 2025

Several readers contain references to a FillValue NetCDF attribute. Normally this should be _FillValue. We should check whether those FillValues are a typo and should be _FillValue instead. Considering that FillValue is non-standard, it would probably be good to add a note to the sourcecode that it is like this in the data and there is no mistake in satpy.

This can lead to bugs such as #3058, but it might also be originally like this in the data. The cases quoted above are not easily caught by unit tests, as .pop(...) never fails and would need to be explicitly tested against.

@djhoese
Copy link
Member

djhoese commented Feb 12, 2025

AGRI L1:

variables:
        float CALChannel02(phony_dim_0) ;
                CALChannel02:valid_range = 0.f, 1.5f ;
                CALChannel02:FillValue = -65535.f ;

@djhoese
Copy link
Member

djhoese commented Feb 12, 2025

MERSI L1B (tf2019071182739.FY3D-X_MERSI_0250M_L1B.HDF):

  variables:
        ushort EV_250_Emissive_b24(phony_dim_5, phony_dim_6) ;
                EV_250_Emissive_b24:units = "mW/ (m2 cm-1 sr)" ;
                EV_250_Emissive_b24:Intercept = 0.f ;
                EV_250_Emissive_b24:Slope = 0.01f ;
                EV_250_Emissive_b24:band_name = "Band 24" ;
                EV_250_Emissive_b24:valid_range = 0, 4095 ;
                EV_250_Emissive_b24:FillValue = 65535 ;

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

No branches or pull requests

2 participants