cfdm.CFDMImplementation.unsqueeze

CFDMImplementation.unsqueeze(field, inplace=False)[source]

Insert size 1 axes into the field data array.

Added in version (cfdm): 1.12.0.0

Parameters:
field: Field

The field construct.

inplace: bool, optional

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

Returns:
Field or None

The field with inserted axes, or None if the operation was in-place.