xarray
xarray copied to clipboard
N-D labeled arrays and datasets in Python
This is probably not the best way to do this, but I figured I would start with the simplest way and go from there. `inline_array` snakes its way through the...
### What happened? Hi, I think I found a memory bug that happens when using xarray from version 2025.3.0 when also dask in any version is present. The memory of...
### Is your feature request related to a problem? When I use `netCDF4.Dataset` to open a file whose path contains Chinese characters, I get: ``` Python3 import netCDF4 file =...
### What happened? I ran into a large memory allocation when doing an isel on a zarr dataset with dask turned off (ie opened with `open_dataset("mydataset.zarr", chunks=None)`), which caused the...
- [ ] Documentation concern in #10312 - [ ] Tests added - [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [ ] New...
### What happened? Same example as in [DataArray.idxmax](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.idxmax.html#xarray.Dataset.idxmax) but instead we look at the "y" dimension. The starting "y" coordinates are of type int: `[-1,0,1]` The return values of argmax...
During the index refactor the `Coordinates` class has become much more important than it was before, changing from a simple proxy class to a full-featured container. This PR changes the...
### What happened? In 2025.4.0 and on the current master, trying to export to netCDF a dataset created from a dataframe with categorical index raises the error: ``` TypeError: Cannot...
- [x] Closes #9792 - [ ] Tests added - [ ] User visible changes (including notable bug fixes) are documented in `whats-new.rst` - [ ] New functions/methods are listed...
### What happened? Dimensions from the root group are re-defined in subgroups when saving a DataTree to netCDF. ### What did you expect to happen? Subgroups to inherit dimensions from...