-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cannot store data after group_by #2847
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
Try |
Thanks for the issue. I think the main problem is that we currently do not have a way of saving an
One way to work around this in the meantime is to redefine the bins coordinate before saving things to a file. See @jhamman's answer to a related StackOverflow question for an example. |
Thank you @spencerkclark for the fast response. Cheers, |
Agreed. Would you like to submit a pull-request?
There are ways to deal with intervals in the CF conventions, but what we really need is a way for xarray to truly understand intervals, which is a much bigger endeavor. |
In the longer term, we could move towards supporting xref #1475 |
Also xref #2844 |
IntervalIndex is not allowed as coords. More info: pydata/xarray#2847
IntervalIndex is not allowed as coords. More info: pydata/xarray#2847
Hi Xarray!
I really like your Library. But now I am stuck completely.
Code Sample, a copy-pastable example if possible
Problem description
Get Error :
Expected Output
The Dataset should be written to file in netcdf
Output of
xr.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516]
python-bits: 64
OS: Linux
OS-release: 4.9.0-8-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: de_DE.UTF-8
LOCALE: de_DE.UTF-8
libhdf5: 1.10.2
libnetcdf: 4.4.1.1
xarray: 0.11.3
pandas: 0.24.1
numpy: 1.16.1
scipy: None
netCDF4: 1.4.2
pydap: None
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: 1.0.2.1
PseudonetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: None
cyordereddict: None
The text was updated successfully, but these errors were encountered: