cfdm.core.InteriorRing.data¶
-
InteriorRing.
data
¶ Return the data.
f.data
is equivalent tof.get_data()
Note that a
Data
instance is returned. Use itsarray
attribute to return the data as anumpy
array.The units, calendar and fill value properties are, if set, inserted into the data.
New in version (cfdm): 1.7.0
See also
cfdm.core.Data.array
,del_data
,get_data
,has_data
,set_data
- Returns
Data
The data.
Examples
>>> f = cfdm.core.InteriorRing() >>> f.set_data(cfdm.core.Data(numpy.arange(10.))) >>> f.has_data() True >>> d = f.data >>> d <Data(10): [0.0, ..., 9.0]> >>> f.data.shape (10,)