R/metnorenal3.R
reanalysis3_swatinput.Rd
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
)
path to daily data provided by reanalysis3_daily()
path to your SWAT+ setup. (Required!)
path to directory where files will be written. If left blank, this will be your normal path
calculate and write the weather generator? defaults to true. (for now just based on station #1 (bottom left))
optional parameter to define start date oftimeseries
optional parameter to define end date of timeseries
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)
print status?
path to generated files.
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