Description Usage Arguments Details Value
View source: R/runall_csls_budget.R
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).
1 2 3 4 5 6 7 | runall_csls_budget(
lake,
threshold = 0.01,
start_date = NULL,
end_date = NULL,
annual = FALSE
)
|
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. |
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"]]
.
weather
, hourly weather data including "date",
"atmp" (air temperature, deg C), "P" (precipitation, mm), "RH"
(relative humidity, percent), "Rs" (solar radiation, MJ), and "wind"
(wind speed, m/s)
lst_HOBO
, hourly lake surface temperature from
HOBO loggers, including "date", "ltmp" (lake surface temperature, deg
C), and "elev_m" (elevation of the sensor, meters above mean sea level)
isotopes
, stable isotope measurements including
"date", "lake", "site_id", "d18O" measurement, and "d2H" measurement
lake_levels
, daily lake levels (meters above
mean sea level) including "date", "
gw_levels
, daily groundwater levels including
date, site_no, obs_type ("GW"), level_m (level in meters above mean sea
level), and site_id (CSLS site id)
dictionary
, links site ids and characteristics
together with columns for lake, obs_type ("LK", "GW", "P"), site_id
(e.g., "LL-01"), SWIMS_station_id, USGS_id, WBIC, static_iso_class
(e.g., "upgradient", "lake", "precipitation"), lat_deg, long_deg,
elev_m, and bouy_bottom_elev_m
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.