xarray-dataclasses icon indicating copy to clipboard operation
xarray-dataclasses copied to clipboard

:zap: xarray data creation made easy by dataclass

Results 17 xarray-dataclasses issues
Sort by recently updated
recently updated
newest added

- [ ] Add spec field to the `Field` dataclass - [ ] Add name and origin fields to the `Spec` dataclass - [ ] Update the `update` method of...

feature

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.

feature

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]...

feature

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?

feature

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...

feature

Is there any update on getting this support again?

feature

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...

feature

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...

bug