cf.Data.full¶
-
classmethod
Data.
full
(shape, fill_value, dtype=None, units=None)[source]¶ Examples 1: >>> d = cf.Data.full((96, 73), 0)
Parameters: fill_value:
None
or- dtype:
numpy.dtype
or any object convertible tonumpy.dtype
The data type of the new array. By default the data type is numpy.float64.
- units:
str
orcf.Units
orNone
The units for the new data array.
Returns: out:
cf.Data
Examples 2: - dtype: