xarray.Dataset.dims

Contents

xarray.Dataset.dims#

property Dataset.dims#

Mapping from dimension names to lengths.

Cannot be modified directly, but is updated when adding new variables.

Note that type of this object differs from DataArray.dims. See Dataset.sizes and DataArray.sizes for consistently named properties. This property will be changed to return a type more consistent with DataArray.dims in the future, i.e. a set of dimension names.