run_swatplus()
.time_out
in run_swatplus()
. Some SWAT+ parameter combinations lead to simulations to hang up. A workaround is to introduce a timeout for runs that get stuck. Now runs that time out return a time out error.load_swat_run()
is not downwards compatible, due to different structure of saved content.SWATplusR
to e.g. version 0.4run_swatplus()
:readr
to data.table::fread
to increase speed and fix some minor issuesdefine_output()
for SWAT+ outputs (Might be further restructured and extended in future).get_date_vector_plus()
as this step is now included in read_swatplus_output()
run_swat2012()
to be compatible with the updated output reading.The minor internal update of generating the date vector from SWAT+ simulation runs in version 0.5.2 caused now SWAT2012 runs to crash. This was pointed out in issue #55. This update fixes this issue.
New input argument start_date_print
was introduced in run_swat_plus()
. This input overrules years_skip
when both input arguments are provided. start_print_date
offers greater flexibility for writing simulation outputs, as years_skip
skips the number of years and then starts with Jan. 1. after the skipped years. With start_date_print
now a date can be defined when to start printing. The end date for printing is still controlled by the input argument end_date
.
The pointer to calibration.cal
that defines the parameter changes is now automatically written into the file.cio
. This solves an old FAQ and frequent issue when no changes in the simulation outputs occur although parameter changes were defined.
The date vector for SWAT+ runs is now retrieved from the last simulation run. This fixes potential issues with outputs where not entire years were written and cases can occur where the generated date vector does not match the actual simulation outputs.
A potential soft_cal
option was removed from the code, as there is no future plan to include soft calibration directly into SWATplusR
.
reservoir.res
file.This updated fixes issue #38 where simulations hang up on Windows. The reason is a major update for the readr
package that introduced lazy reading with version 2.0. Lazy reading causes issues on Win systems and locks files that cannot be deleted and rewritten. This causes simulations to run dead. Please also update the readr
package with this updated of SWATplusR
.
unit
, hsg
, texture
, landuse
, plant
, or slope
, among others.layer
for SWAT2012 parameter conditioning. Fixes issue #32processx
instead of system
for running executables. This fixes issues with running on Unix Systems> Warning: Missing column names filled in: 'X6' [6]
case_when
in SWAT2012 parameter modification routinedefine_output()
. This was critical to speed up the output reading routine with a large number of output variables.revision
in run_swatplus()
as workaround for failing revision check.
-minor updates in the function help files.Tested release that includes all previous crucial fixes
Development version that includes crucial fixes: - Fixed issue with shifts in table headers that appear in SWAT+ rev59.3
Development version that includes crucial fixes: - Fixed issue with reading outputs from SWAT2012 rev670. - Fixed minor issue with table headers
Tested release that includes fixes from the development branch: - Fixed issue with expressions in parameter constraints in SWAT2012 - Fixed issues with loading and saving in SWAT2012
substr()
in R3.6.0run_swat2012()
run_swatplus()
SWATdata
This is the first tested release version of SWATplusR. The major functionality of running SWAT2012 and SWAT+ is available on win and unix platforms. Some functionality is still under development and/or depends on future developments of SWAT+. Functionality that is not available but will be implemented in future releases are:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.