xarray-dataclasses
xarray-dataclasses copied to clipboard
:zap: xarray data creation made easy by dataclass
- [ ] Add spec field to the `Field` dataclass - [ ] Add name and origin fields to the `Spec` dataclass - [ ] Update the `update` method of...
Add a new asxarray module for v2 based on that of pandas-dataclasses (v0.9.0). Note that it will be included in the current package, but not used until the v2 release.
Add type hint `Attrs` for attributes of DataArray or Dataset: ```python @dataclass class Image(AsDataArray): """2D image as DataArray.""" data: Data[X, Y, float] x: Coord[X, int] = 0 y: Coord[Y, int]...
See [here](https://docs.xarray.dev/en/stable/user-guide/indexing.html#multi-level-indexing) for details. If possible, can you provide an example of the syntax?
From [`datatree`](https://github.com/xarray-contrib/datatree) library, which might get merged upstream. This would be incredibly beneficial to have, as someone that wants to make dataset interop specs (generator classes), and these dataclasses would...
The regular `dataclass` provides suggestions for the added properties, while the one created with this package does not. In Xarray, we can access the dimensions by simply using their names...
The whole reason I'd like to use this package is to have in editor suggestions when working with Xarray. However, even the case provided in the README does not work...