uwacan._core.DatasetWrap#
- class DatasetWrap(data, attrs=None)[source]#
Bases:
xrwrapWraps
xarray.Datasetobjects.This wraps a dataset by passing indexing to the underlying dataset indexing, and mimics the
xarrayattribute access by passing attribute access to indexing if the attribute exists in the dataset. Using a MutableMapping from collections enables lots of dict-style iteration.Methods
Inherited methods
from_dataset(dataset, **kwargs)Instantiate the class from a dataset.
groupby(group)isel([indexers, drop, missing_dims, drop_allnan])Select a subset of the data from the coordinate indices.
load(path[, lookup_class])Load data from a Zarr file and optionally restore the original class.
make_figure(**kwargs)Create a plotly figure, styled for this data.
save(path[, append_dim])Save the data to a Zarr file at the specified path.
sel([indexers, method, tolerance, drop, ...])Select a subset of the data from the coordinate labels.
where(cond[, other, drop])Filter elements from this object according to a condition.
Attributes
attrsAttributes stored in the data.
coordsThe coordinate (dimension) arrays for this data.
dataThe contained data.
dimsThe dimensions of this data.
sizesMapping from dimension names to lengths.