slv.measurements.mobile.wyoming#

Wyoming mobile lab: Aeris CH4/C2H6 and vehicle met readers, enhancements and C2/C1 ratios, and a wind-barb map of a drive.

Functions

calculate_enhancements

Add CH4_base/C2H6_base (lair.background.rolling_baseline()) and the enhancements over them, CH4_ex/C2H6_ex.

enhanced_R_and_ratio

Add the rolling window correlation R of the CH4 and C2H6 enhancements and their ratio C2/C1 (after calculate_enhancements()); the analyzer's own columns are kept as R_aeris and C2C1_aeris.

merge_aeris_met

Merge aeris and met dataframes, interpolating met data to match aeris timestamps

plot_windbarbs

Draw wind barbs from the speed column ws and direction column wd at each (x, y); makes a PlateCarree axes when ax is not given.

read_aeris

Read an Aeris analyzer CSV: CH4 (ppb) (converted from ppm), C2H6 (ppb), the analyzer's R and C2/C1, indexed by Time_UTC.

read_met

Read a vehicle met-station file: position (latitude, longitude, Altitude (m)), temperature, humidity, pressure, GPS-corrected wind and vehicle speed, indexed by Time_UTC, plus the source filename.

wyomingMap

Map a drive coloured by param (a column of the merged GeoDataFrame from merge_aeris_met()), with every windskip-th wind barb and optional map tiles.