Skip to contents

Function to prepare or update climate data text input files in SWAT+ model

Usage

prepare_climate(meteo_lst, write_path, period_starts = NA, period_ends = NA)

Arguments

meteo_lst

meteo_lst nested list of lists with dataframes. Nested structure meteo_lst -> data -> Station ID -> Parameter -> Dataframe (DATE, PARAMETER). Nested meteo_lst -> stations Dataframe (ID, Name, Elevation, Source, geometry, Long, Lat).

write_path

character, path to SWAT+ txtinout folder (example "my_model").

period_starts

character, date string (example '1991-01-01'). Optional (default = NA, stands for all available in data).

period_ends

character, date string (example '2020-12-31'). Optional (default = NA, stands for all available in data).

Value

Fill or update multiple weather related weather text files.

Examples

if (FALSE) {
prepare_climate(meteo_lst, "output", "1991-01-01", "2020-12-31")
}