uataq.get_recent_obs#
- uataq.get_recent_obs(SID, recent=datetime.timedelta(days=10), pollutants='all', format='wide', group=None)[source]#
Get recent observations from a site.
- Parameters:
SID (str) – The site ID.
recent (
str|timedelta) – The recent time range. Default is 10 days.pollutants (
Literal['all'] |str|list[str] |tuple[str,...] |set[str]) – The pollutant(s) to get observations for.format (
Literal['wide'] |Literal['long']) – The format of the data. Default is ‘wide’.group (
str|Mapping[str,str] |None) – The research group to read data from. A name applies to every instrument; a mapping of instrument name to group name sets it per instrument. Default None selects each instrument’s group automatically (seeuataq.instruments.Instrument.resolve_group()).
- Returns:
The recent observations, from the final level, in the form
get_obs()returns.- Return type:
- Warns:
EmptyResultWarning – If nothing in the site’s files falls in the range, so the table has no rows.
DroppedPollutantWarning – If you name several pollutants and one of them has no data in the range, so the table leaves it out.