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 missing_value attribute #8

Open
gdkrmr opened this issue Dec 6, 2022 · 2 comments
Open

add missing_value attribute #8

gdkrmr opened this issue Dec 6, 2022 · 2 comments

Comments

@gdkrmr
Copy link
Collaborator

gdkrmr commented Dec 6, 2022

YAXArrays.jl needs a missing_value attribute to properly support the Missing type.

The CFConventions seem to mention that missing_value is only valid for Integers (I haven't confirmed this yet).

@gdkrmr gdkrmr changed the title add missing_value attribute add missing_value attribute Dec 6, 2022
@gdkrmr
Copy link
Collaborator Author

gdkrmr commented Dec 6, 2022

@gdkrmr
Copy link
Collaborator Author

gdkrmr commented Dec 8, 2022

If only one missing value is needed for a variable then we recommend that this value be specified using the _FillValue attribute. [...]

The scalar attribute with the name _FillValue and of the same type as its variable is recognized by the netCDF library as the value used to pre-fill disk space allocated to the variable. This value is considered to be a special value that indicates undefined or missing data, and is returned when reading values that were not written.

I would like to hear what @meggart has to say about this. Can we invite him this repository?

Also: I cannot find anything in the CFConventions that discourages missing_value for floating point numbers.

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

1 participant