The sensor
is checked for the 'sensor' class name
and presence of core metadata columns:
ID -- Purple Air ID
label -- location label
sensorType -- PurpleAir sensor type
longitude -- decimal degrees E
latitude -- decimal degrees N
timezone -- Olson timezone
countryCode -- ISO 3166-1 alpha-2
stateCode -- ISO 3166-2 alpha-2
pwfsl_closestDistance -- distance in meters from an official monitor
pwfsl_closestMonitorID -- identifer for the nearest official monitor
The "pwfsl", official, monitors are obtained from the USFS AirFire site using the PWFSLSmoke R package.
sensor_isSensor(sensor = NULL)
sensor | sensor object |
---|
TRUE
if sensor
has the correct structure, FALSE
otherwise.
#> [1] TRUE