Sets one or more model parameters or substance parameter values.
Arguments
- x
An S4
RPhosFateriver catchment object.- ...
Names and values of the parameters to set. See model parameter arguments section for further information.
Value
An S4 RPhosFate river catchment object.
Model parameter arguments
ns_slp_min: A numeric scalar specifying the minimum bounding slope in % (defaults to1.0).ns_slp_max: A numeric scalar specifying the maximum bounding slope in % (defaults to999.0).ns_rhy_a: A numeric scalar specifying a network constant depending on the discharge frequency needed for the calculation of the hydraulic radius, which in turn is a prerequisite for substance transport (defaults to0.09representing a discharge frequency of approximately six years).ns_rhy_b: A numeric scalar specifying a geometry scaling exponent depending on the discharge frequency needed for the calculation of the hydraulic radius, which in turn is a prerequisite for substance transport (defaults to0.50representing a discharge frequency of approximately six years).ns_cha_rto: A numeric scalar specifying the ratio of the channel to the cell width determining the widths of the riparian zones required for substancetransport(defaults to0.5).ns_man_rip: A numeric scalar specifying Manning's roughness coefficient of the riparian zones within channel cells required for substancetransport(defaults to0.32).ns_man_cha: A numeric scalar specifying Manning's roughness coefficient of the channel within channel cells required for substancetransport(defaults to0.04).ns_dep_ovl: A numeric scalar specifying the overland deposition rate per second required for substancetransport(calibration parameter; no default).ns_dep_cha: A numeric scalar specifying the channel deposition rate per second required for substancetransport(calibration parameter; no default).nv_tfc_inl: A named numeric vector specifying the inlet transfer coefficients required for substancetransport, for example,c(SS = 0.6, PP = 0.6)(no default).nv_enr_rtoA named numeric vector specifying the substance enrichment ratios required for substance except SStransport, for example,c(PP = 2.0)(calibration parameter; no default).nm_olc: A two column numericmatrixspecifying one or more catchment outlet coordinates required for the in-channel retention ratio ofcalibrationQuality(no default).df_cdt: Adata.framewith calibration data, which must have at least the following three columns and one or more columns with substance river loads in t/yr (no default):ID: ID(s) of the gauge(s)
x: x-coordinate(s) of the gauge(s)
y: y-coordinate(s) of the gauge(s)
Examples
# temporary demonstration project copy
cv_dir <- demoProject()
#> Warning: A folder called "demoProject" already exists and is left as is.
# load temporary demonstration project
x <- RPhosFate(
cv_dir = cv_dir,
ls_ini = TRUE
)
x <- setParameter(x, ns_dep_ovl = 15e-4)
x <- setParameter(
x,
nv_tfc_inl = c(SS = 0.6, PP = 0.6),
nv_enr_rto = c(PP = 1.4)
)