cf.CoordinateBounds.expand_dims¶
-
CoordinateBounds.
expand_dims
(position=0, i=False)¶ Insert a size 1 axis into the data array.
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 coordinate bounds in place. By default a new coordinate bounds is created. In either case, a coordinate bounds is returned.
Returns: None
Examples: >>> v.expand_dims(2) >>> v.expand_dims(-1)