Takes data gathered by get_metno_reanalysis3() and downscaled by reanalysis3_daily() and creates SWAT+ meteo input files and weather generators for your SWAT+ input with help from SWATprepR.

reanalysis3_swatinput(
  path,
  swat_setup,
  outpath = NULL,
  write_wgn = TRUE,
  start = NA,
  end = NA,
  sqlite_path = NULL,
  verbose = FALSE
)

Arguments

path

path to daily data provided by reanalysis3_daily()

swat_setup

path to your SWAT+ setup. (Required!)

outpath

path to directory where files will be written. If left blank, this will be your normal path

write_wgn

calculate and write the weather generator? defaults to true. (for now just based on station #1 (bottom left))

start

optional parameter to define start date oftimeseries

end

optional parameter to define end date of timeseries

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 status?

Value

path to generated files.

Details

NOTE package SWATprepR is required for this function

NOTE: the SWAT+ input files must be in your specified 'outpath' for the function to complete successfully when not writing to the SQL database

Author

Moritz Shore, Svajunas Plunge