cf.Data.empty¶
-
classmethod
Data.empty(shape, dtype=None, units=None)[source]¶ Create a new data array without initializing the elements.
Examples 1: >>> d = cf.Data.empty((96, 73))
Parameters: - shape:
intor tuple ofint 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 numpy.float64.
- units:
strorcf.UnitsorNone The units for the new data array.
Returns: out:
cf.DataExamples 2: - shape: