cefa_createMeta: Obtain metadata for every station.

View source: R/cefa_createMeta.R

cefa_createMetaR Documentation

Obtain metadata for every station.

Description

Assembles individual station metadata from a CEFA webservice into a standardized dataframe. Metdata columns include:

  • deviceDeploymentID – unique identifier

  • deviceID – device identifier

  • locationID – location identifier

  • locationName – English language name

  • longitude – decimal degrees E

  • latitude – decimal degrees N

  • elevation – elevation of station in m

  • countryCode – ISO 3166-1 alpha-2

  • stateCode – ISO 3166-2 alpha-2

  • timezone – Olson time zone

  • nwsID – NWS station identifier (for FW13 data)

  • wrccID – WRCC station identifier (for WRCC data)

  • nessID – NESS station identifier (in WRCC data)

  • agencyName – responsible agency (in WRCC data)

Usage

cefa_createMeta(
  metadataUrl = "https://cefa.dri.edu/raws/RAWSfw13list.xlsx",
  verbose = TRUE
)

Arguments

metadataUrl

URL for station metadata.

verbose

Logical flag controlling detailed progress statements.

Value

Dataframe of station metadata.

References

Program for Climate, Ecosystem and Fire Applications

Examples

## Not run: 
# Fail gracefully if any resources are not available
try({

library(RAWSmet)

library(MazamaSpatialUtils)
setSpatialDataDir("~/Data/Spatial")

meta <- cefa_createMeta(verbose = TRUE)
dplyr::glimpse(meta, width = 75)

}, silent = FALSE)

## End(Not run)


MazamaScience/RAWSmet documentation built on May 6, 2023, 6:57 a.m.