Skip to contents

Extract climate data into nested list of lists

Usage

load_climate_lst(dir_path, location)

Arguments

dir_path

character, path to CORDEX-BC folder (example climate/CORDEX-BC").

location

character or list. In case of character, path should be provided to catchment boundary file (example GIS/basin.shp). In case of list, nested list of lists with dataframes. Nested structure meteo_lst -> data -> Station ID -> Parameter -> Dataframe (DATE, PARAMETER). List of list could be obtained using load_template() with prepared excel template.

Value

Nested lists of lists. First nesting level is for RCP, second for RCM model numbers, the rest is the same as in meteo_lst. This part could be used with other package functions (example plot_weather(result$rcp26$1), "PCP", "month", "sum").

Examples

if (FALSE) {
basin_path <- system.file("extdata", "GIS/basin.shp", package = "svatools") 
data_path <- "climate/CORDEX-BC"
result <- load_climate_lst(data_path, basin_path)
}