cf.Data.expand_dims¶
-
Data.
expand_dims
(position=0, i=False)[source]¶ Expand the shape of the data array in place.
Insert a new size 1 axis, corresponding to a given position in the data array shape.
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.
- i : bool, optional
If True then update the data array in place. By default a new data array is created.
Returns: out: cf.Data
Examples: