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

A general issue with Zarr, JSON and the CF conventions. #12

Open
gdkrmr opened this issue Dec 8, 2022 · 1 comment
Open

A general issue with Zarr, JSON and the CF conventions. #12

gdkrmr opened this issue Dec 8, 2022 · 1 comment

Comments

@gdkrmr
Copy link
Collaborator

gdkrmr commented Dec 8, 2022

However, if the scale_factor and add_offset attributes are of a different data type from the variable (containing the packed data) then the unpacked data should match the type of these attributes, which must both be of type float or both be of type double .

From the CFConventions 8.1 Packed Data.

Here is another issue with Zarr specifically: I don't think JSON can define Float32 and other data types, scale_factor and add_offset should be the same data type as the unpacked data. This means, at least in a strict sense, that we cannot have Float32 variables. Not sure what to do about this

@gdkrmr
Copy link
Collaborator Author

gdkrmr commented Dec 20, 2022

cf-convention/cf-conventions#422 I have asked this on the CF conventions repository.

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