View source: R/SoilMoistureTemperatureRegimes.R
calc_SMTRs | R Documentation |
Calculations are based on SSS (2014, 2015) and explained in detail in the
vignette(
topic = "SoilMoistureRegimes_SoilTemperatureRegimes",
package = "rSOILWAT2"
)
.
calc_SMTRs(
sim_in,
sim_out = NULL,
sim_agg = NULL,
soil_TOC = NULL,
has_soil_temperature = TRUE,
opt_SMTR = list(aggregate_at = "conditions", crit_agree_frac = 0.9, use_normal = TRUE,
SWP_dry = -1.5, SWP_sat = -0.033, impermeability = 0.9),
simTime1 = NULL,
simTime2 = NULL,
verbose = FALSE,
msg_tag = NULL
)
sim_in |
An object of class |
sim_out |
An object of class |
sim_agg |
A named list. The prepared rSOILWAT2 simulation output.
If |
soil_TOC |
A numeric vector. Total soil organic matter in g C / kg soil
for each soil layer. If |
has_soil_temperature |
A logical value. Set to |
opt_SMTR |
A named list. Parameters for the calculation of the regimes:
|
simTime1 |
A list with named elements. Calculated internally
if |
simTime2 |
A list with named elements. Calculated internally
if |
verbose |
A logical value. If |
msg_tag |
A character string. Tag that is pre-appended to each verbose message. |
A list with the following elements:
regimes_done
: if successful calculation of soil moisture and
soil temperature regimes then TRUE
otherwise FALSE
has_simulated_SoilTemp
: if soil temperature was simulated
then 1
otherwise 0
has_realistic_SoilTemp
: if simulated soil temperature values
are realistic then 1
otherwise 0
has_Ohorizon
: if soil profile may have an O-horizon, then
TRUE
otherwise FALSE
Lanh_depth
: a numeric vector of length two
MCS_depth
: a numeric vector of length two
Fifty_depth
: a numeric value
permafrost_yrs
: number of years with permafrost conditions
SMR_normalyears
: years considered "normal"
SMR_normalyears_N
: number of years considered "normal"
cond_annual
: a numeric matrix with annual values of
underlying conditions used to determine soil moisture and soil
temperature regimes
STR
: soil temperature regimes
SMR
: soil moisture regimes
The argument aggregate_at
determines at which level
aggregations to regimes are carried out:
data
: Determine conditions and regimes based on aggregated
mean soil moisture/temperature values.
conditions
Determine conditions based on time-series values
of soil moisture/temperature values; determine regimes based on
aggregated mean conditions.
regime
: Determine conditions and regimes based on
time-series values of soil moisture/temperature values.
Soil Survey Staff (2014). Keys to soil taxonomy, 12th ed. USDA Natural Resources Conservation Service, Washington, DC.
Soil Survey Staff (2015). Illustrated guide to soil taxonomy. USDA Natural Resources Conservation Service, National Soil Survey Center, Lincoln, Nebraska.
sw_in <- rSOILWAT2::sw_exampleData
sw_out <- rSOILWAT2::sw_exec(inputData = sw_in)
SMTR <- calc_SMTRs(sim_in = sw_in, sim_out = sw_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.