cf.DimensionCoordinate.expand_dims

DimensionCoordinate.expand_dims(position=0, i=False)[source]

Insert a size 1 axis into the data array and bounds in place.

Parameters :
position : int, optional

Specify the position amongst the data array axes where the new axis is to be inserted. By default the new axis is inserted at position 0, the slowest varying position.

i : bool, optional

Returns :

out : cf.Coordinate

See also

flip, squeeze, transpose

Previous topic

cf.DimensionCoordinate.equals

Next topic

cf.DimensionCoordinate.fill_value

This Page