Skip to contents

This function takes the output from metnordic_extract_grid() and applies it to a SWAT+ setup, with the help of SWATprepR.

Usage

swatplus_metnordic(
  directory,
  swat_setup,
  write_wgn = TRUE,
  start = NA,
  end = NA,
  sqlite_path = NULL,
  verbose
)

Arguments

directory

path to weather data as created by metnordic_extract_grid()

swat_setup

path to SWAT+ setup

write_wgn

should the weather generator be written?

start

optional parameter to define start date of time series

end

optional parameter to define end date of time series4

sqlite_path

path to your SWAT+ sqlite file (only needed if you wish to update your database). Warning: start and end parameters will be ignored in this case (SWATprepR limitation)

verbose

print to console?

Value

path to SWAT+ setup