uataq.sites.MobileSite.get_obs#

MobileSite.get_obs(pollutants='all', format='wide', group=None, time_range=None, num_processes=1, include_gps=True, **kwargs)[source]#

Get mobile site observations for each pollutant.

Combines instruments by pollutant and, optionally, merges location data from GPS.

Parameters:
Returns:

A dataframe containing mobile site observations for each pollutant with location data merged (a GeoDataFrame when include_gps). The columns are those of Site.get_obs(), including its instrument column (lgr_ugga or lgr_ugga_manual_cal for TRX01’s CO2 and CH4, whose _cal and _raw columns mean different things in each), then the GPS columns.

Return type:

DataFrame

Raises:
Warns:
  • EmptyResultWarning – If the instruments’ files hold no data in the range (see Site.get_obs()), or, with include_gps, if they do but no row found a GPS fix (TRX01 has no lin GPS file for 2018-09 and 2018-10, so its methane those months has no position).

  • DroppedPollutantWarning – If you name several pollutants and one of them has no data in the range (see Site.get_obs()).

Notes

Each instrument’s rows are located with the GPS logged on the same clock, which is the GPS of the group they were read from (see locate()). With no group named, one call can read TRAX methane from lin and ozone from horel, so the result can mix both groups’ GPS columns.