Remove size 1 dimensions from the field’s data array in place.
Parameters : |
|
---|---|
Returns : | None |
Examples
>>> f.squeeze()
>>> f.squeeze('time')
>>> f.squeeze(1)
>>> f.squeeze('dim2')
>>> f.squeeze([1, 'time', 'dim2'])
>>> f.squeeze('height', from_space=True)