snap

method of dascore.core.coordmanager.CoordManager source

snap(
    self ,
    *coords ,
    array: None = None,
    reverse: bool = False,
)-> ‘tuple[Self, MaybeArray]’

Force the specified coordinates to be monotonic and evenly sampled.

Coordinates are first sorted, then snapped.

Parameters

Parameter Description
*coords Specify which dimensions to sort. If None, sort along dimensional
coordinates.
array The array to sort/snap.
reverse If true, sort in descending order, else ascending.