-
-
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
Error time slicing for some CMIP6 models #3627
Comments
Hi @mikebyrne6 -- it looks like
|
Hi @spencerkclark, Thanks a lot for the quick response! Indeed I did not have
Any ideas here? Cheers, Mike |
Ah yes, there were some changes in the latest version of cftime that we needed to accommodate in xarray (see #3430). Try upgrading xarray to version 0.14.1 and I think you should be good:
|
Thanks again @spencerkclark! I upgraded xarray as suggested but still getting the error directly above... |
Could you add a few more details to your example above so that I can try reproducing the issue? I think example values of |
The data I'm trying to work with are for CESM2 ('historical' simulation) and are stored in the Google Cloud at:
|
Hmm...I can't seem to reproduce the issue. Are you sure you are using the latest release of xarray?
Output of
|
You're right, I'm stilling running the 0.14.0 version... Somehow the upgrade to 0.14.1 did not work, will try again... |
All sorted @spencerkclark, many thanks for so generously helping out an |
I hope you enjoy drinking our kool-aid @mikebyrne6! Thanks for a useful bug report. I predict we will be seeing more of you around here. 😉 |
Hi there,
I'm using xarray's
open_zarr()
function to analyse CMIP6 data:Problem Description
However, the time slicing fails with the following error:
Looking at the Dataset metedata, the
time
variable is described as follows:For another CMIP6 model (MIROC6), the time slicing works fine. That model has the following metadat for
time
:When the
time
variable is converted to adatetime[ns]
object, time slicing seems to work. Any idea what the problem is?Thanks,
Mike
Output of
xr.show_versions()
xarray: 0.14.0
pandas: 0.25.1
numpy: 1.16.2
scipy: 1.2.1
netCDF4: 1.3.1
pydap: installed
h5netcdf: 0.5.0
h5py: 2.7.0
Nio: None
zarr: 2.3.2
cftime: None
nc_time_axis: None
PseudoNetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: 1.2.1
dask: 0.15.3
distributed: 1.19.1
matplotlib: 3.0.0
cartopy: 0.16.0
seaborn: 0.9.0
numbagg: None
setuptools: 36.5.0.post20170921
pip: 19.0.3
conda: 4.4.6
pytest: 3.3.0
IPython: 6.1.0
sphinx: 1.6.3
The text was updated successfully, but these errors were encountered: