uataq.sites.Site.get_recent_obs#

Site.get_recent_obs(recent=datetime.timedelta(days=10), pollutants='all', format='wide', group=None)[source]#

Get recent observations from site instruments.

Parameters:
  • recent (str | timedelta) – Time range to get recent observations. Default is 10 days.

  • pollutants (Literal['all'] | str | list[str] | tuple[str, ...] | set[str]) – Pollutants to read. If ‘all’, read all pollutants. Default is ‘all’.

  • format (Literal['wide'] | Literal['long']) – Format of the data to return. Default is ‘wide’.

  • group (str | Mapping[str, str] | None) – Research group to read data from. Defaults to None which uses the default group.

Returns:

A dataframe containing recent observations from site instruments.

Return type:

DataFrame

Warns:
  • EmptyResultWarning – If nothing in the files falls in the range, so the table has no rows (see get_obs()).

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