cfdm.core.DimensionCoordinate.data¶
-
DimensionCoordinate.data¶ Return the data.
f.datais equivalent tof.get_data()Note that a
Datainstance is returned. Use itsarrayattribute to return the data as anumpyarray.The units, calendar and fill value properties are, if set, inserted into the data.
New in version 1.7.0.
See also
Returns: DataThe data.
Examples:
>>> d = cfdm.Data(range(10)) >>> f.set_data(d) >>> f.has_data() True >>> d = f.data >>> d <Data(10): [0, ..., 9]> >>> f.data.shape (10,)