coord_from_row

function of dascore.utils.patch_assembly source

coord_from_row(
    row: Mapping ,
    dim: str ,
    units = None,
)

The evenly sampled coordinate a row states for dim, or None.

The exact grid a row carries rebuilds the coordinate the file holds, either way it runs; the whole-tick envelope only approximates a fractional step and states no direction. The grid counts ticks in the file’s units and dtype, so a unit-converted row, or one whose plan states a placeholder float dtype, is rebuilt from its envelope alone.