cf.Data.full

classmethod Data.full(shape, fill_value, dtype=None, units=None)[source]
Examples 1:
>>> d = cf.Data.full((96, 73), 0)
Parameters:
shape: int or tuple of int

The shape of the new array.

fill_value: None or

dtype: numpy.dtype or any object convertible to numpy.dtype

The data type of the new array. By default the data type is numpy.float64.

units: str or cf.Units or None

The units for the new data array.

Returns:

out: cf.Data

Examples 2: