You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Computation often defaults to double precision, but xarray writes data with encoding['dtype']. If encoding['dtype'] has been inherited from a previous file read, for instance, and does not match DataArray.values.dtype, xarray will truncate precision when writing the file.
This means that using an xpersist cache file might change answers of a computation, which is not desirable.
How to fix?
Write data at full precision (DataArray.values.dtype)
Retain the encoding information in the file and repopulate it on read.
Computation often defaults to double precision, but
xarray
writes data withencoding['dtype']
. Ifencoding['dtype']
has been inherited from a previous file read, for instance, and does not matchDataArray.values.dtype
,xarray
will truncate precision when writing the file.This means that using an xpersist cache file might change answers of a computation, which is not desirable.
How to fix?
DataArray.values.dtype
)cc @klindsay28
The text was updated successfully, but these errors were encountered: