-
Notifications
You must be signed in to change notification settings - Fork 29
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
Int64 attribute is converted to Int32 #258
Comments
Looking at the code, this is intentional, so is this a netcdf limitation? (int64 is netcdf4 only, not available with netcdf3 https://docs.unidata.ucar.edu/nug/current/md_types.html) (if so, perhaps should be added to Corner cases doc?) |
Yes, in NetCDF 3 and NetCDF 3 (classic format), https://cfconventions.org/Data/cf-conventions/cf-conventions-1.8/cf-conventions.html#_data_types Since CF 1.9 they are part of the standard. I agree that this should be documented, but I am also open to reconsider the current approach. Since Does your code, need to store integer larger than |
Describe the bug
A Julia Int64 (or Vector{Int64}) attribute is written to netcdf as Int32
(tested with NetCDF dataset attributes, not tried NetCDF variable attributes)
Edit: see comment below, looks like this is an intentional conversion to deal with a netcdf limitation?
To Reproduce
Expected behavior
Int64 attributes should remain as Int64
Environment
using Pkg; Pkg.status(mode=PKGMODE_MANIFEST)
Full output
In case of an error, please paste the full error message and stack trace.
The text was updated successfully, but these errors were encountered: