prepare_atmosphere: Prepare Atmosphere

View source: R/prepare_atmosphere.R

prepare_atmosphereR Documentation

Prepare Atmosphere

Description

Prepares atmospheric input data structure required by HYDRUS1D and by default uses a conservative tracer in irrigation source "clearwater" ( set to 1) in order to track the share of cleaned wastewater in the system inflow rate (as "Prec" column is a combined value of irrigation using either "groundwater" or "clearwater" and real "rainfall").

Usage

prepare_atmosphere(
  atm,
  conc_irrig_clearwater = 100,
  conc_irrig_groundwater = 0,
  conc_rain = 0,
  defaults = kwb.hydrus1d::defaults_atmosphere()
)

Arguments

atm

atm as retrieved by prepare_atmosphere_data

conc_irrig_clearwater

substance concentration in source "clearwater" used for irrigation (default: 100, set all other source concentrations in default to 0 in order to calculate share of "clearwater" infiltration to groundwater)

conc_irrig_groundwater

substance concentration in source "groundwater" used for irrigation (default: 0)

conc_rain

substance concentration in rainfall (default: 0)

defaults

defaults for undefined parameterskwb.hydrus1d::defaults_atmosphere()

Value

tibble with peoered

Examples

atm <- prepare_atmosphere_data()
atm_selected <- select_hydrologic_years(atm)
prepare_atmosphere(atm_selected)

KWB-R/flextreat.hydrus1d documentation built on Jan. 13, 2025, 10:48 a.m.