cfdm.DimensionCoordinate.get_bounds_data

DimensionCoordinate.get_bounds_data(default=ValueError(), _units=True, _fill_value=True)[source]

Return the bounds data.

New in version (cfdm): 1.7.0

Parameters
default: optional

Return the value of the default parameter if there are no bounds data.

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

Returns
Data

The bounds data.

Examples

>>> f = cfdm.example_field(0)
>>> x = f.construct('latitude')
>>> x.get_bounds_data()
<Data(5, 2): [[-90.0, ..., 90.0]] degrees_north>