stretch_coordinate

function of dascore.utils.chunk_plan source

stretch_coordinate(
    spec ,
    units = None,
)

The coordinate an output’s slice of its stretch’s grid labels it with.

spec is what a plan’s _{dim}_stretch column holds: the stretch grid’s terms, then the output’s first position, its count, and the coordinate’s dtype. A float slice keeps its parent grid, so its labels are the stretch’s bit for bit.