align_to

method of dascore.core.coords.BaseCoord source

align_to(
    self ,
    other: BaseCoord ,
)-> ‘tuple[BaseCoord, BaseCoord, slice | ArrayLike, slice | ArrayLike]’

Align the coordinate to another coordinate.

This returns two new coordinates which share values as well indexer’s needed to align corresponding arrays.

Parameters

Parameter Description
other The other coordinate.