cefa_loadMeta: Load FW13 RAWS station metadata from a local directory

View source: R/cefa_loadMeta.R

cefa_loadMetaR Documentation

Load FW13 RAWS station metadata from a local directory

Description

Loads all FW13 station metadata from the rawsDataDir. If the data is not in this directory, this will download and save the data.

Usage

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

Arguments

metadataUrl

URL for station metadata.

newDownload

Logical flag stating whether or not to download and override existing data.

verbose

Logical flag controlling detailed progress statements.

Value

Dataframe containing station metadata.

References

Program for Climate, Ecosystem and Fire Applications

See Also

cefa_createMeta

setRawsDataDir

Examples

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

# For creation of metadata
library(MazamaSpatialUtils)
setSpatialDataDir("~/Data/Spatial")
loadSpatialData("NaturalEarthAdm1.rda")

library(RAWSmet)
setRawsDataDir("~/Data/RAWS")

cefa_meta <- cefa_loadMeta()

dplyr::glimpse(cefa_meta, width = 75)

}, silent = FALSE)

## End(Not run)


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