cf.BoundedVariable.expand_dims

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

Insert a size 1 axis.

New in version 2.0.

See also

flip, squeeze, transpose

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

If True then update the bounded variable in place. By default a new bounded variable is created. In either case, a bounded variable is returned.

Returns:

out : cf.BoundedVariable