cf.AncillaryVariables.override_units

AncillaryVariables.override_units(new_units, i=False)[source]

Override the data array units in place.

fl.override_units() is equivalent to cf.FieldList(f.override_units() for f in fl).

See cf.Field.override_units for details.

Parameters:
new_units : str or Units

The new units for the data array. See cf.Field.override_units for details.

i : bool, optional

If True then update the field list and its fields in place. By default a new field list containing new fields is created.

Returns:

out : cf.FieldList

Previous topic

cf.AncillaryVariables.name

Next topic

cf.AncillaryVariables.pop

This Page