Skip to contents

run_softcal_waterbalance executes the SWAT+ soft calibration routine to adjust the overall water balance of a SWAT+ model setup. The user can specify the wateryield_ratio and the baseflow_ratio of the simulated watershed. Based on the provided ratios the routine adjusts the respective model parameters to improve the fit of the simulated water balance components to the provided ratios.

Usage

run_softcal_waterbalance(
  project_path,
  wateryield_ratio,
  baseflow_ratio,
  start_date = NULL,
  end_date = NULL,
  years_skip = NULL,
  keep_folder = FALSE
)

Arguments

project_path

Path to the SWAT+ project folder (i.e. TxtInOut).

wateryield_ratio

Numeric value between 0 and 1 which defines the fraction of precipitation which becomes water yield through fast, slow, and aquifer flow.

baseflow_ratio

Numeric value between 0 and 1 which defines the fraction of water yield which is base flow.

start_date

(optional) Start date of the SWAT simulation. Provided as character string in any ymd format (e.g. 'yyyy-mm-dd'), numeric value in the form yyyymmdd, or in Date format.

end_date

(optional) End date of the SWAT simulation. Provided as character string in any ymd format (e.g. 'yyyy-mm-dd'), numeric value in the form yyyymmdd, or in Date format.

years_skip

(optional) Integer value to define the number of simulation years that are skipped before writing SWAT model outputs.

keep_folder

(optional) If keep_folder = TRUE '.model_run/verification' is kept and not deleted after finishing model runs. In this case '.model_run' is reused in a new model run if refresh = FALSE. Default = FALSE

Value

Returns the simulation results for the soft calibration routine as a tibble.