cf.AncillaryVariables.expand_dims

AncillaryVariables.expand_dims(position=0, axis=None, i=False, **kwargs)[source]

Insert a size 1 axis into the data array of each field .

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

See cf.Field.expand_dims for details.

Parameters :
position : int, optional

Specify the position that the new axis will have in the data array axes. See cf.Field.expand_dims.

axis, kwargs : optional

Specify the axis to insert. See cf.Field.expand_dims.

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.equals

Next topic

cf.AncillaryVariables.fill_value

This Page