precipitation: Precipitation Rate

Description Usage Format Source References See Also Examples

Description

Precipitation rates in the Wood River Valley and surrounding areas.

Usage

1

Format

An object of data.frame class with 582 records and the following variables: with the following variables:

YearMonth

year and month during which precipitation were recorded, with a required date format of YYYYMM.

PrecipZone

name of the precipitation zone, see precip.zones dataset for details.

Precip

monthly depth of precipitation accounting for spring melt, in meters.

Precip.raw

monthly depth of precipitation recorded at the weather station, in meters.

Source

Idaho Department of Water Resources, accessed on April 24, 2015

References

National Oceanic and Atmospheric Administration's National Weather Service (NWS) Cooperative Observer Program

U.S. Bureau of Reclamation's Cooperative Agricultural Weather Network (AgriMet)

See Also

precip.zones, swe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
str(precipitation)

d <- precipitation
d <- data.frame(Date = as.Date(paste0(d$YearMonth, "15"), format = "%Y%m%d"),
                Precip = d$Precip)
zones <- c("Hailey", "Ketchum", "Picabo")
d1 <- d[precipitation$PrecipZone == zones[1], ]
d2 <- d[precipitation$PrecipZone == zones[2], ]
d3 <- d[precipitation$PrecipZone == zones[3], ]
d <- merge(merge(d1, d2, by = "Date"), d3, by = "Date")

col <- c("red", "blue", "green")
ylab <- paste("Precipitation in", c("meters", "feet"))
inlmisc::PlotGraph(d, ylab = ylab, col = col, lty = 1:3,
                   conversion.factor = 3.28084, seq.date.by = "year")
legend("topright", zones, col = col, lty = 1:3, inset = 0.02, cex = 0.7,
       box.lty = 1, bg = "#FFFFFFE7")

graphics.off()

USGS-R/wrv documentation built on June 30, 2020, 11:07 p.m.