lair.transects.lag_positions#
- lair.transects.lag_positions(time, xy, lag_s, max_gap_s=600.0)[source]#
Positions where the air of each sample was actually taken in.
A sample logged at time t is air that entered the inlet
lag_sseconds earlier, so it belongs at the platform’s position att - lag. Positions are interpolated linearly in time alongxy((n, 2), planar or lon/lat;timesorted).lag_sis a scalar or one value per sample (the lag differs by instrument epoch).The record is cut into runs at gaps longer than
max_gap_s, andt - lagis not allowed to reach back before the start of the sample’s own run: the first seconds of a run keep its first position instead of being interpolated across the gap to wherever the previous run ended.