-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
silence warning for decode_cf_datetime? #2754
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
Comments
Thanks @mathause -- I'm assuming you are referring to this warning, rather than an error?
The rationale for keeping this warning is that for standard calendars (like I wonder if it might make sense to offer an option in xarray to always decode times to cftime dates, even for standard calendar dates between years 1678 and 2262 (which, if set, could also silence this warning); this would be another possible solution for #1263. |
Yes, I meant this warning. Thanks, I understand better now - it makes sense to throw a warning when you unexpectedly get a An Btw: I am really thrilled to be able to have datetime irrespective of the calendar. |
I just ran into the problem trying to |
+1 for adding an option to always use CF datetimes. I would probably start with putting it on |
From a design perspective, I would consider adding an optional
|
Thanks for your thoughts @shoyer; I like your suggested approach. |
@mathause indeed we've made a lot of progress. A few remaining missing things that come to mind (there could be others) are:
Out of those three, |
Code Sample, a copy-pastable example if possible
Problem description
xarray still throws an error when decoding out-of-bounds dates for proleptic_gregorian - should this be silenced?
Output of
xr.show_versions()
xarray: 0.11.3
pandas: 0.24.1
numpy: 1.16.1
scipy: 1.2.0
netCDF4: 1.4.2
pydap: None
h5netcdf: 0.6.2
h5py: 2.9.0
Nio: None
zarr: None
cftime: 1.0.3.4
PseudonetCDF: None
rasterio: 1.0.17
cfgrib: None
iris: None
bottleneck: 1.2.1
cyordereddict: None
dask: 1.1.1
distributed: 1.25.3
matplotlib: 3.0.2
cartopy: 0.17.0
seaborn: 0.9.0
setuptools: 40.7.3
pip: 19.0.1
conda: None
pytest: 4.2.0
IPython: 7.2.0
sphinx: 1.8.4
The text was updated successfully, but these errors were encountered: