process_weather: Process weather data for calcs

Description Usage Arguments Details Value

View source: R/process_weather.R

Description

Processes CSLS weather data for water/solute balance calculations. Transforms data from CSLSdata package, calculates lake evaporation using CSLSevap package, and summarizes at a daily or monthly time step for the desired time period.

Usage

1
process_weather(start_date, end_date, dt = "day")

Arguments

start_date

start date of analysis period (POSIX).

end_date

end date of analysis period (POSIX).

dt

time step at which to summarize data. Defaults to "day" for daily time step, can also be "month" for monthly time step.

Details

If using with non-CSLS data, will need an alternate way to get weather data (including lake evaporation) into the format outputted by this function.

Value

df, a data frame with the following columns:

lake

name of lake, i.e., "Pleasant", "Long", and "Plainfield"

date

date of observation (POSIX). If monthly time step, monthly summary is assigned to first day of the month

day

day of year of observation (1-366)

P_mm

precipitation (mm)

E_mm

lake evaporation (mm)

atmp_C

mean air temperature (deg C)

RH_pct

mean relative humidity (percent)

irr_factor

irradiance factor, fraction from 0-1 representing relative intensity of solar radiation based on day of year. For use in dynamic lake model for some solute reactions


WDNR-Water-Use/CSLSchem documentation built on July 3, 2020, 10:51 a.m.