Skip to contents

This function reads SWAT+ weather input files from a specified folder into R, organizing the data into a nested list structure for easy access and analysis.

Usage

load_swat_weather(input_folder)

Arguments

input_folder

character, path to folder with SWAT+ weather input files (e.g., "my_model").

Value

A 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).

Examples

if (FALSE) {
  met_lst <- load_swat_weather("my_folder")
}