lair.transects#
Metrics on mobile-platform transect matrices.
A transect matrix is a 2-D array obs[transit, point] of a species measured on
repeated transits of a fixed route, resampled onto fixed along-route points (NaN where a
transit has no data at a point). Persistence questions are answered per point:
enhancement()— obs minus each transit’s own low percentile (removes theboundary-layer / background cycle transit by transit)
detection_frequency()— fraction of transits enhanced above a thresholdmagnitude()— mean or median enhancement, over detected transits or alltransit_times()— one representative timestamp per transitprofile()— detection frequency and magnitude binned by hour / weekday / monthalong_route_distance()— cumulative geodesic distance of the points [km]
Building the matrix from a georeferenced time series (the transect builder, after Mitchell et al. 2018’s algorithm):
lag_positions()— put each sample where the sampled air was taken in (inlet lag)snap_to_route()— nearest fixed route point of each samplesplit_transits()— cut the along-route coordinate into one-way transits at thereversals of travel and at time gaps
transect_matrix()— average the samples onto[transit, point]
Everything is plain numpy; the platform-specific file formats live in the calling package
(e.g. slv.measurements.mobile for TRAX). Times are POSIX seconds (float) or datetime64.
Functions
Cumulative geodesic distance [km] along the ordered route points (WGS84). |
|
Fraction of transits (with data at the point) whose enhancement exceeds |
|
Enhancement above each transit's own |
|
Positions where the air of each sample was actually taken in. |
|
Per-point enhancement magnitude: |
|
Merge the fixed points of several routes into one network point set. |
|
Stack per-route |
|
Detection frequency and median magnitude per point, binned by |
|
Per-transit robust z-score of the enhancement: |
|
Nearest route point of each sample: |
|
Cut a platform's along-route coordinate into one-way transits. |
|
Average samples onto a |
|
One timestamp per transit from a |