-
Notifications
You must be signed in to change notification settings - Fork 82
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
Float32 converted Float64 during reference creation #532
Comments
The output type must be consistent everywhere within a variable, sorry. |
Hi @martindurant, thanks for the reply. Sorry for the confusion. The netcdf files contain several variables and they are int, float and double. In the reference created, variables with float precision in the original netcdf are converted to double somehow. Input netcdf:
output json and read through xarray:
|
OK, that's probably not supposed to happen. It would be worthwhile to see what h5py thinks the data type is when you get to here. I'm not sure if there is any configuration we can pass to h5py or if the upcasting is happening elsewhere. |
Kerchunk Verison: 0.2.7
I am using
kerchunk
to convert my netcdf files ons3
to json references. The original netcdf files are composed of variables of mixed data type of float32 and float64. After converted to json and read throughxarray
, all float data are converted to float64. I wonder is it an expected behaviour?The text was updated successfully, but these errors were encountered: