cf.Data.insert_dimension

Data.insert_dimension(position=0, inplace=False)[source]

Expand the shape of the data array in place.

Parameters
position: int, optional

Specify the position that the new axis will have in the data array axes. By default the new axis has position 0, the slowest varying position.

inplace: bool, optional

If True then do the operation in-place and return None.

Returns

Data or None

Examples