write_atmosphere: Write "ATMOSPH.IN" input file

write_atmosphereR Documentation

Write "ATMOSPH.IN" input file

Description

Write "ATMOSPH.IN" input file

Usage

write_atmosphere(
  atm,
  MaxAL = 365,
  DailyVar = FALSE,
  SinusVar = FALSE,
  lLai = FALSE,
  lBCCycles = FALSE,
  lInterc = FALSE,
  hCritS = 0,
  round_digits = 2,
  remove_scientific = TRUE
)

Arguments

atm

tibble of input data as defined in prepare_atmospherice_input

MaxAL

Number of meteorological records

DailyVar

TRUE if HYDRUS-1D is to generate daily variations in evaporation and transpiration (see section 2.7.2.)., otherwise: FALSE (default: FALSE)

SinusVar

TRUE if HYDRUS-1D is to generate sinusoidal variations in precipitation (see section 2.7.2.), otherwise: FALSE(default: FALSE)

lLai

Logical variable indicating that potential evapotranspiration is to be divided into potential evaporation and potential transpiration using eq. (2.75). (default: FALSE)

lBCCycles

TRUE if a set of boundary conditions is to be repeated multiple times, otherwise FALSE(default: FALSE)

lInterc

TRUE if interception is considered using eq. (2.78), otherwise FALSE (default: FALSE)

hCritS

Maximum allowed pressure head at the soil surface (L). (default: 0)

round_digits

digits used for rounding values (default: 2) of all columns besides "tAtm"

remove_scientific

if TRUE scientific notation of numbers is removed, otherwise not (default: TRUE)

Value

Creates ATMOSPH.IN input textfile

Examples

inputs <- tibble::tibble(tAtm = 1:10, Prec = 10, rSoil = 0.4)
atm <- prepare_atmosphere_input(inputs)
atm
atm_string <- write_atmosphere(atm = atm, MaxAL = nrow(atm))
cat(atm_string)

KWB-R/kwb.hydrus1d documentation built on Nov. 21, 2022, 4:54 a.m.