Advanced API#

The methods and properties here are advanced API and not recommended for use unless you know what you are doing.

Dataset.variables

Low level interface to Dataset contents as dict of Variable objects.

DataArray.variable

Low level interface to the Variable object for this DataArray.

DataTree.variables

Low level interface to node contents as dict of Variable objects.

Variable(dims, data[, attrs, encoding, fastpath])

A netcdf-like variable consisting of dimensions, data and attributes which describe a single Array.

IndexVariable(dims, data[, attrs, encoding, ...])

Wrapper for accommodating a pandas.Index in an xarray.Variable.

as_variable(obj[, name, auto_convert])

Convert an object into a Variable.

Context(func)

object carrying the information of a call

register_dataset_accessor(name)

Register a custom property on xarray.Dataset objects.

register_dataarray_accessor(name)

Register a custom accessor on xarray.DataArray objects.

register_datatree_accessor(name)

Register a custom accessor on DataTree objects.

Dataset.set_close(close)

Register the function that releases any resources linked to this object.