watersupply: watersupply

Description Usage Arguments Value Author(s)

View source: R/watersupply.R

Description

Calculate annual total precipitation each year for UCSB during a specified time period.

Usage

1
2
3
4
5
6
7
watersupply(
  data = "",
  years = 1952:2018,
  area = 100,
  total_depth = 200,
  start_depth = 100
)

Arguments

data

data frame with columns year, month, day, daily_rain

years

the years in the data frame you want to specify for the time period (default is 1952 to 2018)

area

the surface area of the reservoir

total_depth

the total depth of the reservoir

start_depth

the depth at the beginning of the year range in years

Value

Returns a list containing,

end_vol

Volume of water in reservoir at the end of the time period (square feet)

pct_full

Percent of reservoir volume occupied at the end of the time period

pct_change

Percent change in reservoir volume occupied over the time period

Author(s)

Laura Ingulsrud & Keene Morrow


lauraing/climatechangeimpacts documentation built on March 29, 2020, 6:47 p.m.