Prepare or Update Climate Data Text Input Files in SWAT+ Model
Source:R/preparing.R
prepare_climate.Rd
This function prepares or updates climate data text input files in a SWAT+ model based on the provided meteo_lst.
Arguments
- meteo_lst
Nested list with dataframes. Nested structure:
meteo_lst -> data -> Station ID -> Parameter -> Dataframe (DATE, PARAMETER)
,meteo_lst -> stations -> Dataframe (ID, Name, Elevation, Source, geometry, Long, Lat)
.
meteo_lst can be created usingload_template
function using 'xlsx' template file or it could to be created withload_swat_weather
function loading information from SWAT+ model setup weather files.- write_path
Character, path to the SWAT+ txtinout folder (example "my_model").
- period_starts
(optional) Character, date string (example '1991-01-01'). Default
period_starts = NA
, stands for all available in data.- period_ends
(optional) Character, date string (example '2020-12-31'). Default
period_ends = NA
, stands for all available in data.