cf.Data.insert_dimension¶
- Data.insert_dimension(*args, **kwargs)[source]¶
Expand the shape of the data array in place.
Added in version (cfdm): 1.7.0
- Parameters:
- Returns:
Examples
>>> d.shape (19, 73, 96) >>> d.insert_dimension(0).shape (1, 96, 73, 19) >>> d.insert_dimension(3).shape (19, 73, 96, 1) >>> d.insert_dimension(-1, inplace=True) >>> d.shape (19, 73, 1, 96)