There is a newer version of the record available.

Published March 13, 2024 | Version 0.5.0
Software Open

MazamaScience/AirSensor2: 0.5.0

Authors/Creators

  • 1. Mazama Science

Description

AirSensor2 0.5.0

Version 0.5 introduces changes in the default parameters that are requested when making data requests from the PurpleAir API. In the past, when data was free, functions download as many potentially relevant parameters as possible. Now that a payment system is in place, AirSensor2 will be focused on downloading as few parameters as required to accomplish a task. Many of the low level PurpleAir data access functions will thus behave differently.

Package dependency updates:

MazamaCoreUtils (>= 0.5.2)
MazamaLocationUtils (>= 0.4.3),
MazamaSpatialUtils (>= 0.8.6),
MazamaTimeSeries (>= 0.3.0),
AirMonitor (>= 0.4.0),
  • Modified pas_downloadParseRawData() defaults to only query for non-measurement fields defined in PurplAir_SENSOR_METADATA_FIELDS.
  • Added pas_filterDate() to help find historical sensor data.
  • Added pas_filterNearMonitor() to associate sensors with the closest available monitor in a mts_monitor object from the AirMonitor package.
  • Renamed pas_get() to pas_pull().
  • Updated pas_createNew() and pas_leaflet() to default to working with non-measurement fields defined in PurplAir_SENSOR_METADATA_FIELDS.
  • Added pas_lifespanPlot() to show when PurpleAir sensors were producing data.
  • Updated collections of fields used in creation of pas and pat objects:
    • PurpleAir_PAS_MINIMAL_FIELDS
    • PurpleAir_PAS_METADATA_FIELDS
    • PurpleAir_PAS_AVG_PM25_FIELDS
    • PurpleAir_PAList_PM25_FIELDS
    • PurpleAir_PAT_QC_FIELDS
    • PurpleAir_PAT_EPA_HOURLY_FIELDS
  • Added a sleep parameter to pat_create() to avoid "rate limiting" errors from the PurpleAir API.
  • Removed PurpleAir_createNewMonitor().
  • Added pat_toMonitor().
  • Renamed pat_createNew() to pat_create().
  • Added pat_createRaw().

Files

MazamaScience/AirSensor2-0.5.0.zip

Files (3.8 MB)

Name Size Download all
md5:f34e5e2199c847e5b0453d5c31a862c0
3.8 MB Preview Download

Additional details

Related works