wrcc_createMetaDataframe: Create WRCC site location metadata dataframe

Description Usage Arguments Value See Also

View source: R/wrcc_createMetaDataframe.R

Description

After a WRCC tibble has been enhanced with additional columns generated by addClustering we are ready to pull out site information associated with unique deployments.

These will be rearranged into a dataframe organized as deployment-by-property with one row for each monitor deployment.

This site information found in tbl is augmented so that we end up with a uniform set of properties associated with each monitor deployment. The list of columns in the returned meta dataframe is:

1
2
3
4
5
6
7
> names(p$meta)
 [1] "monitorID"             "longitude"             "latitude"
 [4] "elevation"             "timezone"              "countryCode"
 [7] "stateCode"             "siteName"              "agencyName"
[10] "countyName"            "msaName"               "monitorType"
[13] "monitorInstrument"     "aqsID"                 "pwfslID"
[16] "pwfslDataIngestSource" "telemetryAggregator"   "telemetryUnitID"

Usage

1
2
3
4
5
6
7
8
wrcc_createMetaDataframe(
  tbl,
  unitID = as.character(NA),
  pwfslDataIngestSource = "WRCC",
  existingMeta = NULL,
  addGoogleMeta = FALSE,
  addEsriMeta = FALSE
)

Arguments

tbl

single site WRCC tibble after metadata enhancement

unitID

character or numeric WRCC unit identifier

pwfslDataIngestSource

identifier for the source of monitoring data, e.g. 'WRCC'

existingMeta

existing 'meta' dataframe from which to obtain metadata for known monitor deployments

addGoogleMeta

logicial specifying wheter to use Google elevation and reverse geocoding services

addEsriMeta

logicial specifying wheter to use ESRI elevation and reverse geocoding services

Value

A meta dataframe for use in a ws_monitor object.

See Also

addMazamaMetadata


PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.