uataq.get_obs#

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

Get observations from a site.

Parameters:
Returns:

The observations, from the final level (see uataq.read_data() to read another level), with an instrument column naming the instrument each row came from. At a mobile site it is a geopandas.GeoDataFrame that also has the position of each row (see Mobile sites).

Return type:

DataFrame

Raises:
  • ReaderError – If no instrument at the site has data for the pollutants in the range. The message says why for each one (see When there is nothing to read).

  • ValueError – If a pollutant is not measured at the site. The message says which pollutants the site does measure.

  • TypeError – If you pass lvl or level: get_obs always reads the final level. Use uataq.read_data() to read another.

Warns:
  • EmptyResultWarning – If the site has files for the range but no data in them, so the table has no rows; at a mobile site also when there are rows but none found a GPS fix.

  • DroppedPollutantWarning – If you name several pollutants and one of them has no data in the range, so the table leaves it out.