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

Non CF conforming dataset #28

Open
kmuehlbauer opened this issue Feb 7, 2024 · 4 comments
Open

Non CF conforming dataset #28

kmuehlbauer opened this issue Feb 7, 2024 · 4 comments

Comments

@kmuehlbauer
Copy link

The file eraint_uvz.nc contains variables which do not conform to CF standard.

Below is the ncdump of the z-variable of dtype int16 but the _FillValue is NaN. According to CF conventions _FillValue should be of same type as its variable.

ncdump:

short z(month, level, latitude, longitude) ;
    z:number_of_significant_digits = 5 ;
    z:units = "m**2 s**-2" ;
    z:scale_factor = -1.7250274674968 ;
    z:long_name = "Geopotential" ;
    z:add_offset = 66825.5 ;
    z:_FillValue = NaN ;
    z:standard_name = "geopotential" ;
@rabernat
Copy link
Contributor

rabernat commented Feb 7, 2024

Interesting. Do we know where this file came from and how this value was generated?

@kmuehlbauer
Copy link
Author

Thanks Ryan for the quick reply. This is in the global attributes (XXXX added by me):

Info :
    Monthly ERA-Interim data. Downloaded and edited by fabien.maussion@XXXXXXX

Maybe @fmaussion can shed some light.

@rabernat
Copy link
Contributor

rabernat commented Feb 7, 2024

Does Xarray write these sorts of attributes itself? Or do they come from the data provider?

@kmuehlbauer
Copy link
Author

Xarray is able to write these attributes, but for int16 dtype NaN does not make any sense. I'd consider that a bug.

But maybe someone with more knowledge on ERA5 has some idea what a correct _FillValue would be.

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