• Added pat_createHourly() as a convenience function for the common case of obtaining hourly aggergated for the following parameters: datetime, temperature, humidity, pm2.5_atm, pm2.5_atm_a, pm2.5_atm_b. Using this function greatly reduces data download volumes and allows for the most common forms of QC and correction.
  • Added PurpleAir_createMonitor() to directly create monitor objects suitable for use with the AirMonitor package. This is a preliminary version of this function that includes neither QC nor correction.
  • Updated Clarity API functions to handle the addition of a nowcast_QCFlag in the returned data.
  • Removed geohashTools dependency.

This version introduces data ingest functions for Clarity “Open” sensor data. In preparation for additional data providers, many of the PurpleAir functions using "pa" as shorthand have been renamed with a more explicit "PurpleAir":

  • Renamed all pa_~() functions to PurpleAir_~().
  • Renamed PURPLE_AIR_API_~ API keys to PurpleAir_API_~.
  • Renamed purple_air_synoptic class to PurpleAir_synoptic.

Clarity “Open” datasets are available to those with an API key allowing access to this data. The following functions provide access to Clarity “Open” data:

Generic synoptic data from non-PurpleAir providers (similar to PurpleAir ‘pas’ objects) is supported with:

Added full support for the PurpleAir API described at https://api.purpleair.com.

Improvements include wrapper functions for PurpleAir API endpoints:

Additional updates include:

Documentation improvements to include links to PurpleAir Terms of service and Data license.

  • Updated to use sf based MazamaSpatialUtils >= 0.8.
  • Added sf dependency.
  • Now Depending on MazamaCoreUtils
  • Added AirMonitor dependency.
  • Removed sp dependency.
  • Now using APIKey functionality.
  • Added initial vignettes.
  • Full pas functionality and documentation. Passes checks.

The AirSensor2 package is a refactoring of the core, data access and manipulation functionality found in the AirSensor package. The goal in AirSensor2 is to create a lean and generic package focused on data ingest and basic data manipulation.

Initial functions to download and work with Purple Air synoptic data.