cfdm.Data.empty¶
-
classmethod
Data.empty(shape, dtype=None, units=None, calendar=None)[source]¶ Create a new data array without initialising the elements.
Note that the mask of the returned empty data is hard.
See also
full,ones,zeros- Parameters
- shape:
intortupleofint The shape of the new array.
- dtype:
numpy.dtypeor any object convertible tonumpy.dtype The data-type of the new array. By default the data-type is
float.- units:
strorUnits The units for the empty data array.
- calendar:
str, optional The calendar for reference time units.
- shape:
- Returns
Examples
>>> d = cfdm.Data.empty((96, 73))