cfdm.CellMeasure.data¶
- CellMeasure.data¶
The data.
f.datais equivalent tof.get_data().Note that a
Datainstance is returned. Use thearrayattribute to get the data as anumpyarray.The units, calendar and fill value properties are, if set, inserted into the data.
Added in version (cfdm): 1.7.0
See also
- Returns:
DataThe data.
Examples
>>> f = cfdm.CellMeasure() >>> f.set_data(cfdm.Data(numpy.arange(10.))) >>> f.has_data() True >>> d = f.data >>> d <Data(10): [0.0, ..., 9.0]> >>> f.data.shape (10,)