elevation_to_storage: Compute Volume from Elevation for a Reservoir

Description Usage Arguments Details Value Examples

Description

elevation_to_storage() computes the storage (volume) for a given elevation for a particular reservoir included in CRSS.

Usage

1
2
3
elevation_to_storage(elevation, reservoir)

elevation2Volume(elevation, reservoir)

Arguments

elevation

The elevation (in feet) that will be converted to volume

reservoir

The reservoir to compute the conversion for. Spaces are removed from the name, and case is ignored.

Details

Elevation is assumed to be provided in feet, and the volume will be returned in acre-feet. Currently, the function will work for Flaming Gorge, Navajo, Blue Mesa, Powell, and Mead reservoirs. The elevation-volume tables contain data for 0.5 foot increments. Volume is linearly interpolated for sub 0.5 foot values of elevation.

If the elevation is beyond the range of the resevoir, the function returns NA.

Value

Volume in acre-feet, or NA if the elevation is invalid for the reservoir.

Examples

1
2
3
elevation_to_storage(1075, "mead")
elevation_to_storage(6000, "Flaming Gorge")
elevation_to_storage(c(6000, 6001, 6004.6), "flamingGorge")

rabutler/CRSSIO documentation built on May 26, 2019, 8:51 p.m.