uwacan._core.DataArrayWrap#

class DataArrayWrap(data, dims=(), coords=None, **kwargs)[source]#

Bases: xrwrap, NDArrayOperatorsMixin

Wrapper around xarray.DataArray.

This base class exists to wrap functionality in xarray.DataArray, and numerical operations from numpy.

Methods

apply(func, *args, **kwargs)

Apply some function to the contained data.

max([dim])

Maximum of this data, along some dimension.

mean([dim])

Average of this data, along some dimension.

min([dim])

Minimum of this data, along some dimension.

reduce(func, dim, **kwargs)

Apply a reduction function along some dimension in this data.

std([dim])

Standard deviation of this data, along some dimension.

sum([dim])

Sum of this data, along some dimension.

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

attrs

Attributes stored in the data.

coords

The coordinate (dimension) arrays for this data.

data

The contained data.

dims

The dimensions of this data.

sizes

Mapping from dimension names to lengths.