-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
wrong time encoding after padding #4224
Comments
Hmm.. there is a similar issue with zarr on this repo. You probably need to |
Thanks a lot, @dcherian . We can also set
|
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here or remove the |
This is fixed in current xarray and a meaningful warning is issued:
array(['2000-01-01T00:00:00.000000000', '2000-01-01T01:00:00.000000000',
'2000-01-01T02:00:00.000000000', '2000-01-01T03:00:00.000000000',
'2000-01-01T04:00:00.000000000'], dtype='datetime64[ns]') |
What happened:
If I open a netcdf with default settings (contain a daily time dimension) and then pad with hourly values, even the padded dataset shows hourly time values, the hourly values cannot be saved. I think this is due to the encoding, but I'm not sure how to fix it.
What you expected to happen:
I expected the final line of code give me
Instead, it outputs
Minimal Complete Verifiable Example:
Anything else we need to know?:
Environment:
xarray version: '0.15.1'
Output of xr.show_versions()
The text was updated successfully, but these errors were encountered: