xarray
xarray copied to clipboard
N-D labeled arrays and datasets in Python
### What happened? polyfit can't seem to handle weights still (despite https://github.com/pydata/xarray/pull/5933). nans are involved. ### What did you expect to happen? _No response_ ### Minimal Complete Verifiable Example ```Python...
### Is your feature request related to a problem? The User Guide [landing page](https://docs.xarray.dev/en/stable/user-guide/index.html) itself is currently not the most welcoming (unlike e.g. the Gallery): ### Describe the solution you'd...
For ease of use, this implements a few additional methods on `Coordinates`: - `rename_dims` - `rename_vars` - `drop_vars` - `coords1 | coords2` as an alias of `coords1.merge(coords2)` These currently forward...
### What happened? This works but is wrong. ``` import xarray as xr from xarray.indexes import RangeIndex ds = xr.Dataset({"foo": ("x", [1, 2, 3])}) coords = xr.Coordinates.from_xindex(RangeIndex.arange("x", "x", 1.5, 4.5,...
### What is your issue? At the moment, the `Coordinates` objects are not as useful as I'd like them to be, so in this issue I'd like to collect all...
When I try to save a xr.Dataset that was created from a pandas dataframe with tz-aware time index ( see #3291) - xarray converts the time index into a int64...
### What happened? When saving a variable as a NetCDF coordinate variable (in the CF sense a variable with the same name as its dimension) you get a serialization warning:...
### Is your feature request related to a problem? The dask array repr for a dataarray is pretty nice, but I think it would be even nicer if I could...
### What is your issue? I'm using the version `2023.12.0`. In the doc of imshow (https://docs.xarray.dev/en/stable/generated/xarray.DataArray.plot.imshow.html) it is written for the `aspect` parameter: > aspect ("auto", "equal", [scalar](https://docs.xarray.dev/en/stable/user-guide/terminology.html#term-scalar) or [None](https://docs.python.org/3/library/constants.html#None),...