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_characteristicsmethod. Cell characteristics are automatically removed whenever the new data or bounds are set withset_dataorset_boundsrespectively.Added 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
Exceptioninstance then it will be raised instead.
- Returns:
dictThe 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 ofNonethen no characteristic has been stored for that type.