R/download_purpleair.R
load_pa.Rd
If a file is provided, open data from file. If not, call download_pa().
load_pa(ts, te, area, storage_file = NULL, api_key = NULL)
start date
end date
a sf, sfc, SpatRaster or SpatVector object
file path where PurpleAir data is stored
API key for PurpleAir