squeeze

function of dascore.proc.basic source

squeeze(
    self: Patch ,
    dim ,
    drop ,
)

Return a new object with len one dimensions flattened.

Parameters

Parameter Description
dim Selects a subset of the length one dimensions. If a dimension is selected with length greater than one, an error is raised. If None, all length one dimensions are squeezed.
drop If True, drop squeezed coordinates instead of making them scalar.
Note

Simply calls xr.squeeze.