Opens the downloaded .zip files and returns the CMIP6 climate projections for specified locations .
extract_cmip6_data(
stations,
variable = c("Tmin", "Tmax"),
download_path = "cmip6_downloaded",
keep_downloaded = TRUE
)
named list of data.frames. Element names follow the syntax 'SSP'_'GCM', where SSP is the shared socioeconomic pathway and GCM is the global climate model that generated the weather data. The data.frames contain the extracted values for the requested locations.
data.frame with the locations of interest, for which the CMIP6 data should be extracted. Needs to contain the columns 'longitude', 'latitude' and 'station_name'.
character, decides which variables from the downloaded files get read. Currently, valid options are "Tmin", "Tmax" and "Prec". The value is usually the same as in download_cmip6_ecmwfr function.
character, sets the path for the download of the CMIP6 file. If not already present, then a new folder will be created. The path is relative to working directory.
Boolean, by default set to TRUE. If TRUE, the function will not delete the downloaded .nc files. This makes sense when the user may want to use the climate change data for other locations.
Lars Caspersen