cf.Data.full

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

Returns a new data array of given shape and type, filled with the given value.

See also

empty, ones, zeros

Parameters
shape: int or tuple of int

The shape of the new array.

fill_value: scalar

The fill value.

dtype: data-type

The data-type of the new array. By default the data-type is float.

units: str or Units

The units for the new data array.

calendar: str, optional

The calendar for reference time units.

Returns

Data

Examples:

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