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
It looks like time.encoding is not being set when I read in multiple files with to_dataset_dict with decode_times=True.
When you write a dataset to netCDF with no time encoding, the resulting time units end up differing from the original datasets, which I find to be unexpected behavior.
Following pydata/xarray#1614, a potential behavior is to keep the encoding from the first file. I think this is already being done for attributes.
The text was updated successfully, but these errors were encountered:
klindsay28
added
the
bug
Issues that present a reasonable conviction there is a reproducible bug.
label
Oct 16, 2019
I spot checked a couple of CMIP6 datasets for which to_dataset_dict was previously not setting time.encoding, and time.encoding is being set with the updated intake_esm.
It looks like
time.encoding
is not being set when I read in multiple files withto_dataset_dict
withdecode_times=True
.When you write a dataset to netCDF with no time encoding, the resulting time units end up differing from the original datasets, which I find to be unexpected behavior.
Following pydata/xarray#1614, a potential behavior is to keep the encoding from the first file. I think this is already being done for attributes.
The text was updated successfully, but these errors were encountered: