zcollection.variable.abc.IVariable#

class zcollection.variable.abc.IVariable[source]#

Bases: ABC

Define the interface for a variable.

Attributes

data

Return the values as a dask array where values equal to the fill value are masked.

values

Return the variable values.

Public Methods

compute(**kwargs)

Return the variable data as a numpy array.

concat(other, dim)

Concatenate this variable with another variable or a list of variables along a dimension.

fill()

Fill the variable with the fill value.

from_zarr(array, name, dimension, **kwargs)

Create a new variable from a zarr array.

persist(**kwargs)

Persist the variable data into memory.

rechunk(**kwargs)

Rechunk the variable.

Protected Methods

Special Methods

__getitem__(key)

Get a slice of the variable.