cf.DimensionCoordinate.get_cell_characteristics

DimensionCoordinate.get_cell_characteristics(default=ValueError())[source]

Return cell characteristics.

A cell characteristic is assumed to be valid for each cell. Cell characteristics are not inferred from the coordinate or bounds data, but may be defined with the set_cell_characteristics method. Cell characteristics are automatically removed whenever the new data or bounds are set with set_data or set_bounds respectively.

New in version 3.15.4.

Parameters
default: optional

Return the value of the default parameter if cell characteristics have not been set.

If set to an Exception instance then it will be raised instead.

Returns
dict

The cell size characteristic (i.e. the absolute difference between the cell bounds) and cell spacing characteristic (i.e. the absolute difference between two neighbouring coordinate values), with keys 'cellsize' and 'spacing' respectively. If either has a value of None then no characteristic has been stored for that type.