summarise_inputs: Summarize Inputs over Common Timeseries

Description Usage Arguments Value

View source: R/summarise_inputs.R

Description

This function takes raw weather, lake surface temperature, isotope, lake level, groundwater level, stage-volume inputs and summarises water balance inputs over a common timeseries.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
summarise_inputs(
  lake,
  weather,
  lst,
  isotopes,
  lake_levels,
  gw_levels,
  dictionary,
  threshold = 0.01,
  start_date = NULL,
  end_date = NULL,
  annual = FALSE
)

Arguments

lake

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

weather

a data frame with sub-monthly weather including including date (POSIXct), atmp (air temperature, deg C), P (precipitation, mm), RH (relative humidity, percent), Rs (solar radiation, MJ), and wind (wind speed, m/s)

lst

a data frame with sub-monthly lake surface temperature measurements as formatted in the lst_HOBO dataset, subset for a single lake.

isotopes

a data frame with isotopes measurements as formatted in the isotopes dataset, subset for a single lake.

lake_levels

a data frame with daily water level measurements as formatted in the lake_levels dataset, subset to lake level records for the lake of interest.

gw_levels

a data frame with daily water level measurements as formatted in the lake_levels dataset, subset to groundwater level records at the lake of interest.

dictionary

a data frame with site id numbers and static isotope site classifications as formatted in the dictionary dataset, subset to records for the lake of interest.

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.

Value

h2o_bal_inputs, a data frame ordered by date with data only for the overlap timeseries for:

datedates of monthly timeseries (1st of the month) for months with complete overlapping input data

atmp_degCmean air temperature (degrees C)

RH_pctmean relative humidity (percent)

P_mmtotal precipitation (mm)

ET_mmtotal lake evaporation (mm)

atmp_Kmean air temperature (Kelvin)

ltmp_Kmean lake surface temperature (degrees C)

dVchange in lake volume (mm)

d18O_lakemean stable isotope measurement for lake

d18O_pcpnmean stable isotope measurement for precipitation

d18O_GWinmean stable isotope measurement for inflowing groundwater

d18O_GWoutmean stable isotope measurement for outflowing groundwater

d18O_evapmean stable isotope measurement for evaporation

GWin_siteswells included in mean inflowing groundwater stable isotope measurement

GWout_siteswells included in mean outflowing groundwater stable isotope measurement


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