map_to_distance

method of dascore.core.inventory.DistanceMap source

map_to_distance(
    self ,
    values ,
    axis: str | None[str, None] = None,
    slope: float | None[float, None] = None,
)-> ‘np.ndarray’

Map channel-like values onto optical path distance.

Parameters

Parameter Description
values Channel numbers or instrument distances.
axis The input axis values are on; the map’s first axis by
default.
slope Distance per input unit, used only for single-point maps. The
caller supplies it in the units of that axis; see
Acquisition.channel_to_distance.