zcollection.variable.abc.Variable.from_zarr#

abstract classmethod Variable.from_zarr(array, name, dimension, **kwargs)#

Create a new variable from a zarr array.

Parameters:
  • array (Array) – The zarr array

  • name (str) – Name of the variable

  • dimension (str) – Name of the attribute that defines the dimensions of the variable

  • **kwargs – Additional arguments to pass to the method.

Returns:

The variable

Return type:

I