runall_csls_budget: Run all functions needed to calculate water budget for a CSLS...

Description Usage Arguments Details Value

View source: R/runall_csls_budget.R

Description

Runs all major functions in the CSLSiso package, from loading in raw data to the final water balance for one of the CSLS lakes. Can be calculated on a monthly basis (annual = FALSE) or based on all available data (annual = TRUE).

Usage

1
2
3
4
5
6
7
runall_csls_budget(
  lake,
  threshold = 0.01,
  start_date = NULL,
  end_date = NULL,
  annual = FALSE
)

Arguments

lake

name of lake (e.g., Pleasant, Long, or Plainfield)

threshold

minimum median difference between lake levels and groundwater levels during the month of measurement in order to classify groundwater measurement.

start_date

optional start date to use for analysis (first day of the month) in POSIXct. If not provided, defaults to NULL and timeseries is based on months with isotope samples.

end_date

optional end date to use for analysis (last day of the month) in POSIXct. If not provided, defaults to NULL and timeseries is based on months with isotope samples.

annual

defaults to FALSE to calculate water balance on a monthly basis. If TRUE, calculates the annual balance instead.

Details

Loaded data includes the following data in a list format, where each lake has its own data frame. For example, to access groundwater levels for Pleasant Lake, the command would be: gw_levels <- CSLSdata::gw_levels[["Pleasant"]].

Value

h2o_bal, a data frame with the following columns:

date

observation dates, last day of the month (if monthly) or date interval (if annual) (POSIXct)

P_m3

precipitation for month or year (m3)

E_m3

evapotranspiration for month or year (m3)

GWin_m3

groundwater inflow to the lake for month or year (m3)

GWout_m3

groundwater outflow to the lake for month or year (m3)

dV_m3

change in lake volume for month or year (m3)

P_mm

precipitation for month or year (mm)

E_mm

evapotranspiration for month or year (mm)

GWin_mm

groundwater inflow to the lake for month or year (mm)

GWout_mm

groundwater outflow to the lake for month or year (mm)

dV_mm

change in lake volume for month or year (mm)

mean_vol_m3

mean lake volume during the month or year (m3)

mean_area_m2

mean lake area during the month or year (m2)


cvoter/isoH2Obudget documentation built on March 29, 2020, 11:07 a.m.