DistanceMap
DistanceMap(
description: str = ““,
extra_fields: collections.abc.Mapping[str, str | int | float | bool[str, int, float, bool]] =
channel: tuple[tuple[float, …], None] = None,
instrument_distance: tuple[tuple[float, …], None] = None,
distance: tuple[float, …] ,
)-> None
Measured control-point map from a channel-like coordinate onto optical path distance.
The map is a function, not a roster of existing channels. It states one set of control points in whichever input coordinates were measured: channel when the interrogator reports channel numbers, instrument_distance when it reports its own nominal meters, or both when the same points are known in both, which lets one acquisition serve patches whose axes differ. Values between control points are piecewise-linearly interpolated; channels outside the covered range are undefined (NaN). A single-point map states an origin and takes its slope from the axis it is read on: the acquisition’s nominal spatial_interval on the channel axis, and one meter of path per interrogator meter on the instrument_distance axis.
Methods
| Name | Description |
|---|---|
| map_to_distance | Map channel-like values onto optical path distance. |
| new | Create a new instance with some attributes updated. |
| source_values | Return the control points on one input axis. |