GetSnotel: Get SNOTEL data for specified sites.

Description Usage Arguments Details Value See Also Examples

View source: R/snotel_get.R

Description

GetSnotel downloads SNOTEL data tables and creates a dataframe.

Usage

1
2
3
4
GetSnotel(siteIDs, report = "STAND", series = "Daily",
  intervaltype = "Historic", current = "DAY", duration = "WY",
  startYr = NULL, endYr = NULL, month = NULL, day = NULL,
  quiet = FALSE)

Arguments

siteIDs

A single site ID or vector of site IDs to download and process. Site IDs should match the standardized SNOTEL IDs (integers). See snotelMeta for a list of site IDs (as of June 2015).

report

(DEFAULT="STAND") Type of report to generate. Options (from NRCS) are:

  • "STAND" (standard snotel)

  • "SOIL" (soil temp and moisture)

  • "SCAN" (standard scan)

  • "ALL" (all)

  • "WEATHER" (atmospheric)

series

(DEFAULT="Daily") Time series to generate. Options (from NRCS) are:

  • "Daily"

  • "Hourly"

  • "Hour:HH" (a single hour specified by HH)

intervaltype

(DEFAULT="Historic") Options (from NRCS) are:

  • "Historic"

  • "Current"

current

(DEFAULT="DAY") Only used if intervaltype="Current". Options (from NRCS) are:

  • "DAY"

  • "WEEK"

  • "YEAR"

  • "WATERYEAR"

duration

(DEFAULT="WY") Only used if intervaltype="Historic". Options are:

  • "CY" (calendar year)

  • "WY" (water year)

startYr

(OPTIONAL) The first year to download files for.

endYr

(OPTIONAL) The last year to download files for.

month

(OPTIONAL) The month to download files for.

day

(OPTIONAL) The day of month to download files for.

quiet

(OPTIONAL) Whether to suppress output (TRUE=suppress output; DEFAULT=FALSE).

Details

GetSnotel downloads SNOTEL for specified sites and outputs a dataframe with consistent date and data columns for use with other rwrfhydro tools.

Value

dataframe

See Also

Other SNOTEL: snotelMeta

Examples

1
2
3
4
5
6
## Not run: 
  sno.santafe <- GetSnotel(c("921","922"), series="Daily", startYr=2009, endYr=2010)
  sno.niwot <- GetSnotel(c("663"), series="Hourly", startYr=2009, month=4)
  sno.santafe <- GetSnotel(c("921","922"), intervaltype="Current", current="WEEK")

## End(Not run) #dontrun

mccreigh/rwrfhydro documentation built on Feb. 28, 2021, 1:53 p.m.