pa_batch_download_sensors: Download all of the PurpleAir sensors within a bounding...

View source: R/purpleair.R

pa_batch_download_sensorsR Documentation

Download all of the PurpleAir sensors within a bounding polygon and a time range, one sensor at a time. This requires a PurpleAir API read key with access to historical data. Note that the PurpleAir API has a nominal limit of 1000 queries per key per day.

Description

Download all of the PurpleAir sensors within a bounding polygon and a time range, one sensor at a time. This requires a PurpleAir API read key with access to historical data. Note that the PurpleAir API has a nominal limit of 1000 queries per key per day.

Usage

pa_batch_download_sensors(
  first_date,
  last_date,
  bounding_poly,
  api_key,
  output_folder,
  starting_point = NULL
)

Arguments

first_date

Date First day of data to request

last_date

Date Last day of data to request

bounding_poly

A simple features polygon, such as a state or country

api_key

A PurpleAir API read key with access to historical data

output_folder

The location where the output RDS files should be stored

starting_point

If specified, the rownumber to begin processing.


raffscallion/rapidfire documentation built on June 1, 2025, 2:04 p.m.