You can install sdc from github with:
# Install remotes if not available
if (!"remotes" %in% installed.packages()[, "Package"]) install.packages("remotes")
# Install sdc package from Github
remotes::install_github("RS-eco/sdc", build_vignettes = T)
If package installation with install_github()
fails, try this as an
alternative:
tmp_zip <- tempfile(fileext = ".zip")
source_url <- "https://api.github.com/repos/RS-eco/bavDC/zipball/main"
utils::download.file(source_url, destfile = tmp_zip, method = "wget")
file.exists(tmp_zip)
remotes::install_local(tmp_zip)
After installation, simply load the sdc package:
library(sdc)
If you encounter a bug or if you have any problems, please file an issue on Github.
Shapefiles of Canton Glarus and Switzerland can be accessed by:
data("glarus")
data("che")
The CH2018 climate data for Switzerland can be accessed by:
data("ch2018_bioclim_che")
The bioclimatic Euro-Cordex data can be accessed by:
# Euro-Cordex data for Switzerland
data("cordex_bioclim_che")
Note: Please also have a look at the corresponding vignette for detailed information about the dataset and the related variables.
# Corine data for Switzerland
data("corine_lc_che")
Note: Please also have a look at the corresponding vignette for detailed information about the dataset and the related variables.
The SRTM elevation data can be accessed by:
# SRTM data for Glarus
data("srtm3_glarus_1arc")
# SRTM data for Switzerland
data("srtm_csi_che_3arc")
data("srtm3_che_3arc")
# High resolution SRTM data for whole of Switzerland
load(system.file("extdata", "srtm3_che_1arc.rda", package = "sdc"))
Note: Please also have a look at the corresponding vignette for detailed information about the dataset and the related variables.