cf.Data.full

classmethod Data.full(shape, fill_value, dtype=None, units=None, chunk=True)[source]

Return a new data array of given shape and type, filled with fill_value.

See also

empty, ones, zeros

Parameters:
shape: int or tuple of int

The shape of the new array.

fill_value: scalar

Fill value.

dtype: data-type

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

units: str or Units

The units for the new data array.

Returns:
Data

TODO

Examples:

>>> d = cf.Data.full((96, 73), -99)