uataq.pollutants.concentration_columns#

uataq.pollutants.concentration_columns(pollutant, columns, raw=False)[source]#

Pick the columns holding a pollutant’s measured concentration.

Matches {pollutant}_{unit} with a concentration unit, e.g. O3_ppb, CO2d_ppm (dry mole fraction), CH4d_ppm_cal (calibrated), PM2.5_ugm3 or BC6_ngm3 (an aethalometer channel). Instrument diagnostics that share the prefix (O3_Meas_mV, NO2_Slope), spreads (O3_ppb_std) and other pollutants sharing the prefix (NO vs NO2_ppb) are not matches.

Parameters:
  • pollutant (str) – The pollutant, matched case-insensitively.

  • columns (Iterable[str]) – Column names to search.

  • raw (bool) – Also match the uncalibrated ..._raw columns that sit beside ..._cal in lin final data. Default False.

Returns:

The matching columns, in their original order.

Return type:

list[str]