cfgrib icon indicating copy to clipboard operation
cfgrib copied to clipboard

Keep float64 when converting to xarray

Open dmey opened this issue 2 years ago • 1 comments

Currently, irrespective of the original data precision, a cast to float32 is made when converting to xarray.(see https://github.com/ecmwf/cfgrib/blob/master/cfgrib/dataset.py#L332) This can however downgrade the type of grib fields stored at 64-bits. Can you please allow to specify this at conversion or to automatically match the type specified in grib fields?

dmey avatar Aug 14 '22 17:08 dmey

@dmey Was this issue ever addressed? Did you find a work-around?

Marston avatar Jan 03 '24 19:01 Marston