xarray icon indicating copy to clipboard operation
xarray copied to clipboard

N-D labeled arrays and datasets in Python

Results 378 xarray issues
Sort by recently updated
recently updated
newest added

### What happened? I'm calling `cupy.round` on a DataArray wrapping a cupy array and it raises an error here: https://github.com/pydata/xarray/blob/3f7cc2da33d81e76afbfb82da57143b624b03a88/xarray/core/common.py#L155-L156 Traceback below: ``` --> 25 a = _core.array(a, copy=False) 26...

bug
topic-arrays

### What happened? ```python da = xr.DataArray(np.random.rand(4), {'x': np.arange(4)}) da = da.assign_coords(y=('x', np.linspace(0, 1, 4))) da = da.assign_coords(z=('x', np.arange(4) + 4)) da.set_index(x=["y", "z"]).sel(y=slice(None, 0.5)) ``` fails with ``` TypeError: float()...

bug
topic-indexing
regression

### What happened? Version 2022.6.0 produces an error when I try something like `data_array.sel(coordintate=(val1, val2))`. Now this only works if the sequence values are provided as a list instead. ###...

bug
regression

I am using xarray for processing geospatial data and have encountered two major challenges with existing data structures in xarray: - Data arrays stored in an xarray Dataset cannot be...

enhancement
topic-DataTree

### What happened? The following error is thrown: ``` > result = type(datasets[0])(result_vars, attrs=result_attrs) E TypeError: __init__() got an unexpected keyword argument 'attrs' ``` This is coming from the change...

bug
regression

### Is your feature request related to a problem? I was making sure the test in #6832 failed on main, when it did I wrote a few lines in the...

enhancement
CI
plan to close

### What is your issue? I just realized that the difference between `.load()` and `.compute()` is that `.load()` operates inplace and `.compute()` returns a new xarray object.I have 2 suggestions...

topic-documentation

### Is your feature request related to a problem? I was trying to store a zarr fstore and I got: ``` /opt/userenvs/ray.bell/autofront/lib/python3.9/site-packages/xarray/core/dataset.py:2060: SerializationWarning: saving variable None with floating point data...

enhancement

But it would be expected (at least by me) that it does.

bug
regression

- [x] Closes #6818 - [ ] Tests added - [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [x] ~~New functions/methods are listed in...