diff --git a/DESCRIPTION b/DESCRIPTION
index 8354f1668af1014f1a79ddb6cb285f01ce26eb16..91808e713465fdf7cc36adee3846e2da781ef527 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,22 +1,25 @@
 Package: ClimDatDownloadR
 Type: Package
 Title: Downloads Climate Data from Chelsa and WorldClim
-Version: 0.1.6
+Version: 0.1.7
 Authors@R: c(person("Helge", "Jentsch", 
   email = "helge.marc.ole.jentsch@uni-hamburg.de", 
-  role = c("aut", "cre")),
+  role = c("aut", "cre"),
+  comment = c(ORCID = "0000-0003-4955-8358")),
   person("Maria", "Bobrowski", 
   email = "maria.bobrowski@uni-hamburg.de", 
-  role = c("aut")),
+  role = c("aut"),
+  comment = c(ORCID = "0000-0002-9660-1614")),
   person("Johannes", "Weidinger", 
   email = "johannes.weidinger@uni-hamburg.de", 
-  role = c("aut")), 
+  role = c("aut"),
+  comment = c(ORCID = "0000-0003-4354-7711")), 
   person("Nadine", "Kaul", 
-  email = "nadine.kaul@studium.uni-hamburg.de", 
+  email = "nadine.kaul@uni-hamburg.de", 
   role = c("ctb")))
 Maintainer: Helge Jentsch <helge.marc.ole.jentsch@uni-hamburg.de>
 Description: This package `ClimDatDownloadR` provides functions to download, pre-process and 
-    manage CHELSA and Worldclim climate data sets in respective available 
+    manage CHELSA and WorldClim climate data sets in respective available 
     spatial and temporal resolutions. The output is provided as GEOTIFF, 
     ASCII, or netCDF format. The package's main purpose is to simplify and 
     automate the downloading and pre-processing workflows. 
@@ -27,20 +30,19 @@ Description: This package `ClimDatDownloadR` provides functions to download, pre
     and Fick and Hijmans (2017) <doi:10.1002/joc.5086> (WorldClim 2.1). 
     A applied comparison of the two data sets is given by 
     Bobrowski & Schickhoff 2017 <doi:10.1016/j.ecolmodel.2017.05.021>.
-YEAR: 2021
+YEAR: 2021-2023
 License: MIT + file LICENSE
 Encoding: UTF-8
-Depends: R (>= 3.6), raster (>= 3.1-5)
-Imports: curl (>= 4.3.2), gdalUtils(>= 2.0.3.2), httr (>= 1.4.1), ncdf4
-        (>= 1.17), qpdf (>= 1.1), RCurl (>= 1.98), RefManageR (>=
-        1.2.12), rgdal (>= 1.5-10), stringr (>= 1.4.0), sf (>= 0.9-4),
-        sp (>= 1.4-1), svMisc (>= 1.1.0), utils
-RoxygenNote: 7.1.2
+Depends: R (>= 3.6), terra (>= 1.7-18)
+Imports: curl (>= 4.3.2), httr (>= 1.4.1), ncdf4 (>= 1.17), RCurl (>=
+        1.98), raster (>= 3.1-5), RefManageR (>= 1.2.12), stringr (>=
+        1.4.0), sf (>= 0.9-4), sp (>= 1.4-1), utils
+RoxygenNote: 7.2.3
 Suggests: knitr, testthat, usethis, rmarkdown
 VignetteBuilder: knitr
 SystemRequirements: Tested with at least 4 GB RAM.
 NeedsCompilation: no
-Packaged: 2021-11-03 12:10:35 UTC; helge
+Packaged: 2023-05-04 08:24:48 UTC; helge
 Author: Helge Jentsch [aut, cre],
   Maria Bobrowski [aut],
   Johannes Weidinger [aut],
diff --git a/NAMESPACE b/NAMESPACE
index 5c92083de81ab450d454c1aa9d3b1dc7bc0fd76b..6753522662b39ada7c5efa2c2581bacb8bab2bab 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -1,6 +1,7 @@
 # Generated by roxygen2: do not edit by hand
 
 export(Chelsa.CMIP_5.download)
+export(Chelsa.CMIP_6.download)
 export(Chelsa.CRUts.download)
 export(Chelsa.Clim.download)
 export(Chelsa.Clim.download.deprecated)
@@ -13,6 +14,8 @@ export(clipping.tif)
 export(combine.raw.in.zip)
 export(convert.to.asc)
 export(getDownloadSize)
+export(process.raster.int.doub)
+export(process.raster.offset)
 export(save.citation)
 export(stacking.downloaded.data)
 import(RCurl)
@@ -22,6 +25,7 @@ import(raster)
 import(sf)
 import(sp)
 import(stringr)
+import(terra)
 importFrom(RefManageR,ReadBib)
 importFrom(RefManageR,ReadCrossRef)
 importFrom(RefManageR,WriteBib)
@@ -31,4 +35,5 @@ importFrom(utils,sessionInfo)
 importFrom(utils,setTxtProgressBar)
 importFrom(utils,txtProgressBar)
 importFrom(utils,unzip)
+importFrom(utils,write.table)
 importFrom(utils,zip)
diff --git a/R/Chelsa_Download_functions.R b/R/Chelsa_Download_functions.R
index 0a279c9c9be265c05b594e1977bca5c1fca15282..65863267f0b1e0f9aecd7eed3c819c5fab5f6b20 100644
--- a/R/Chelsa_Download_functions.R
+++ b/R/Chelsa_Download_functions.R
@@ -758,6 +758,8 @@ Chelsa.CMIP_5.download <- function(save.location = "./",
   if(save.bib.file == TRUE) save.citation(save.location = save.location, dataSetName = "CHELSA")
 }
 
+
+
 #'@title Function for downloading CHELSA Last Glacial Maximum datasets
 #'@author Helge Jentsch
 #'@description This function supports a download of the CHELSA Last Glacial Maximum Climate datasets (21.000 BP). This includes monthly precipitation sums in mm, monthly temperature (average, maximum, minimum) in degree Celsius, annual characteristics (19 bioclimatic parameters), and a global digital elevation model. For further information, please regard \url{http://chelsa-climate.org/last-glacial-maximum-climate/}.\cr To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.\cr Optional an output of a .bib-file of the cited literature can be retrieved.\cr For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.
@@ -1589,7 +1591,7 @@ Chelsa.CRUts.download <- function(save.location = "./",
                                                           winslash = "/",
                                                           mustWork = T),
                                             "/temp_gdalwarped.tif")
-            gdalUtils::gdalwarp(dest.temp, raster.temp.file.dest)
+            # gdalUtils::gdalwarp(dest.temp, raster.temp.file.dest)
             raster.temp <- raster(raster.temp.file.dest)
             raster.temp <- clamp(raster.temp, lower = -1000, useValues = FALSE)
             gain(raster.temp) <- 0.1
diff --git a/R/Chelsa_new_download_functions.R b/R/Chelsa_new_download_functions.R
index 7aeaac1e2a05d9f259de4e38cbcffe60f4823d79..8ec635c3ff0a80b92b7e705aec31d88b2970144b 100644
--- a/R/Chelsa_new_download_functions.R
+++ b/R/Chelsa_new_download_functions.R
@@ -20,8 +20,9 @@
 #'
 #'@note Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.
 #'
-#'@references D. N. Karger, O. Conrad, J. B{\"o}hner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. <URL: https://doi.org/10.1038/sdata.2017.122>.
+#'@references D. N. Karger, O. Conrad, J. B{\"o}hner , et al. _Climatologies at high resolution for the earth's land surface areas_. In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. <URL: https://doi.org/10.1038/sdata.2017.122>.
 #'@references D. N. Karger, O. Conrad, J. B{\"o}hner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. <URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4>.
+#'@references D. N. Karger, O. Conrad, J. B{\"o}hner , et al. _Climatologies at high resolution for the earth’s land surface areas_ EnviDat. (2021) DOI: 10.16904/envidat.228. <URL: https://www.doi.org/10.16904/envidat.228>.
 #'
 #'@examples
 #' \dontrun{
@@ -34,8 +35,8 @@
 #'@import stringr
 #'@import RCurl
 #'@import ncdf4
-#'@import raster
-#'@importFrom utils unzip download.file
+#'@import terra
+#'@importFrom utils unzip download.file txtProgressBar write.table
 #'
 #'
 #'@export
@@ -43,7 +44,7 @@ Chelsa.Clim.download <- function(save.location = "./",
                                  parameter = c("prec", "temp", "tmax", "tmin", "bio"),
                                  bio.var = c(1:19),
                                  month.var = c(1:12),
-                                 version.var = c("1.2"),
+                                 version.var = c("1.2", "2.1"),
                                  clipping = FALSE,
                                  clip.shapefile = NULL,
                                  clip.extent = c(-180, 180, -90, 90),
@@ -65,8 +66,8 @@ Chelsa.Clim.download <- function(save.location = "./",
   save.location <- normalizePath(save.location, winslash = "/")
   # Check which parameters are put in and if the connected
   # month/bio-variables are correctly input
-  if(is.element("prec", parameter)|is.element("temp", parameter)|
-     is.element("tmax", parameter)|is.element("tmin", parameter)){
+  if(base::is.element("prec", parameter)|base::is.element("temp", parameter)|
+     base::is.element("tmax", parameter)|base::is.element("tmin", parameter)){
     # if month.var is just a single numeric input it is here casted into
     # a vector for comparabilities
     month.var <- c(month.var)
@@ -77,70 +78,151 @@ Chelsa.Clim.download <- function(save.location = "./",
   }
   
   # analog to the if-clause before - here the parameter bio.var is checked.
-  if(is.element("bio", parameter)){
+  if(base::is.element("bio", parameter)){
     bio.var <- c(bio.var)
     if(!is.numeric(bio.var)) stop()
     bio.var <- stringr::str_pad(bio.var, 2, 'left', pad = "0")
   }
+  
+  # Preparations ------------------------------------------------------------
   # parameter
-  parameter <- sort(parameter)
-  DLTparameter <- c(rep(parameter[parameter!="bio"], length(month.var)), rep(parameter[parameter=="bio"], length(bio.var)))
-  DLTparameter <- sort(DLTparameter)
+  parameter <- base::sort(parameter)
+  DLTparameter <- c(base::rep(parameter[parameter!="bio"], 
+                              base::length(month.var)), 
+                    base::rep(parameter[parameter=="bio"], 
+                              base::length(bio.var)))
+  DLTparameter <- base::sort(DLTparameter)
   # variables 
   DLTvariable <- NULL
   for(parm in parameter){
-    DLTvariable <- c(DLTvariable, switch(parm, 
-                                         "prec" = month.var,
-                                         "tmax" = month.var,
-                                         "temp" = month.var,
-                                         "tmin" = month.var, 
-                                         bio.var)
+    DLTvariable <- c(DLTvariable, 
+                     switch(parm, 
+                            "prec" = month.var,
+                            "tmax" = month.var,
+                            "temp" = month.var,
+                            "tmin" = month.var, 
+                            bio.var
+                     )
     )
+    
   }
   
-  # print(length(DLTvariable));print(length(DLTparameter))
-  dataDF <- data.frame("parameter" = DLTparameter, 
-                       "variable" = DLTvariable, 
-                       "version" = rep(version.var, length(DLTvariable)))
+  # Combine search into large dataframe -------------------------------------
+  dataDF <- data.frame("parameter" = sort(DLTparameter), 
+                       "variable" = DLTvariable
+  )
+  if(length(version.var)==1){
+    dataDF$version <- base::rep(version.var, length(DLTvariable))
+  }else{
+    dataDF <- data.frame("parameter" = rep(dataDF$parameter,2) , 
+                         "variable" = rep(dataDF$variable, 2) ,  
+                         "version" = NA)
+    temp_version <- c()
+    for(i_version in version.var){
+      temp_version <- c(temp_version,base::rep(i_version, length(DLTvariable)))
+    }
+    dataDF$version <- temp_version
+    rm(temp_version)
+  }
   
-  dataDF$parmLong <- paste0(dataDF$parameter,"10")
-  dataDF$parmLong[dataDF$parameter == "prec"] <- paste0("prec")
-  dataDF$parameter[dataDF$parameter == "temp"] <- paste0("tmean")
+  # v1.2
+  if(is.element("1.2", dataDF$version)){  
+    dataDF$parmLong[dataDF$version == "1.2"] <- base::paste0(dataDF$parameter[dataDF$version == "1.2"],"10")
+    dataDF$parmLong[dataDF$version == "1.2" & 
+                      dataDF$parameter == "prec"] <- base::paste0("prec")
+    dataDF$parameter[dataDF$version == "1.2" &
+                       dataDF$parameter == "temp"] <- base::paste0("tmean")
+    dataDF$parmLong[dataDF$version == "1.2" &
+                      dataDF$parameter == "tmean"] <- base::paste0("temp10")
+    dataDF$years[dataDF$version =="1.2"] <- "_1979-2013"
+    dataDF$years[dataDF$version == "1.2" & 
+                   (dataDF$parameter == "prec" | dataDF$parameter == "bio")] <- base::paste0("")
+    # Adding the URL stings
+    dataDF$URL[dataDF$version == "1.2" & dataDF$parameter != "bio"]  <-  
+      paste0("https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/climatologies/",
+             dataDF$parameter[dataDF$version == "1.2" & dataDF$parameter != "bio"], 
+             "/CHELSA_", dataDF$parmLong[dataDF$version == "1.2" & dataDF$parameter != "bio"] , 
+             "_", dataDF$variable[dataDF$version == "1.2" & dataDF$parameter != "bio"], 
+             dataDF$years[dataDF$version == "1.2" & dataDF$parameter != "bio"],
+             "_V1.2_land.tif")
+    
+    dataDF$URL[dataDF$version == "1.2" & dataDF$parameter == "bio"]  <- 
+      paste0("https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/climatologies/",
+             dataDF$parameter[dataDF$version == "1.2" & dataDF$parameter == "bio"], 
+             "/CHELSA_",
+             dataDF$parmLong[dataDF$version == "1.2" & dataDF$parameter == "bio"] ,
+             "_", 
+             dataDF$variable[dataDF$version == "1.2" & dataDF$parameter == "bio"], 
+             dataDF$years[dataDF$version == "1.2" & dataDF$parameter == "bio"],
+             ".tif")
+  }
   
-  dataDF$years <- paste0("_1979-2013")
-  dataDF$years[dataDF$parameter == "prec" | dataDF$parameter == "bio"] <- paste0("")
+  # v2.1
+  if(is.element("2.1", dataDF$version)){ 
+    dataDF$parmLong[dataDF$version == "2.1" & 
+                      dataDF$parameter == "prec"] <- base::paste0("pr")
+    dataDF$parmLong[dataDF$version == "2.1" & 
+                      dataDF$parameter == "temp"] <- base::paste0("tas")
+    dataDF$parmLong[dataDF$version == "2.1" & 
+                      dataDF$parameter == "tmin"] <- base::paste0("tasmin")
+    dataDF$parmLong[dataDF$version == "2.1" & 
+                      dataDF$parameter == "tmax"] <- base::paste0("tasmax")
+    dataDF$parmLong[dataDF$version == "2.1" & 
+                      dataDF$parameter == "bio"] <- base::paste0("bio")
+    
+    dataDF$years[dataDF$version =="2.1"] <- "_1981-2010"
+    
+    print(dataDF[dataDF$version == "2.1" & dataDF$parameter != "bio", ])
+    
+    dataDF$URL[dataDF$version == "2.1" & dataDF$parameter != "bio"]  <-
+      paste0("https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/",
+             dataDF$parmLong[dataDF$version == "2.1" & dataDF$parameter != "bio"],
+             "/CHELSA_", 
+             dataDF$parmLong[dataDF$version == "2.1" & dataDF$parameter != "bio"] ,
+             "_", dataDF$variable[dataDF$version == "2.1" & dataDF$parameter != "bio"] , 
+             dataDF$years[dataDF$version == "2.1" & dataDF$parameter != "bio"] ,
+             "_V.2.1.tif")
+    
+    dataDF$URL[dataDF$version == "2.1" & dataDF$parameter == "bio"]  <- 
+      paste0("https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/1981-2010/",
+             dataDF$parameter[dataDF$version == "2.1" & dataDF$parameter == "bio"], 
+             "/CHELSA_",
+             dataDF$parameter[dataDF$version == "2.1" & dataDF$parameter == "bio"] ,
+             "", 
+             as.integer(dataDF$variable[dataDF$version == "2.1" & dataDF$parameter == "bio"]), 
+             dataDF$years[dataDF$version == "2.1" & dataDF$parameter == "bio"],
+             "_V.2.1.tif")
+  }
   
-  dataDF$URL[dataDF$version == "1.2"]  <- 
-    paste0("https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/climatologies/",
-           dataDF$parameter, 
-           "/CHELSA_", dataDF$parmLong , "_", dataDF$variable, dataDF$years,
-           "_V1.2_land.tif")
-  dataDF$URL[dataDF$version == "1.2" & dataDF$parameter == "bio"]  <- 
-    paste0("https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V1/climatologies/",
-           dataDF$parameter[dataDF$version == "1.2" & dataDF$parameter == "bio"], 
-           "/CHELSA_",
-           dataDF$parmLong[dataDF$version == "1.2" & dataDF$parameter == "bio"] ,
-           "_", 
-           dataDF$variable[dataDF$version == "1.2" & dataDF$parameter == "bio"], 
-           dataDF$years[dataDF$version == "1.2" & dataDF$parameter == "bio"],
-           ".tif")
-  # print(dataDF$URL)
-  for(urlexists in dataDF$URL){
-    if(!url.exists(urlexists)){
+  write.table(x = dataDF, 
+              file = normalizePath(paste0(save.location, "/", call.time, "_downloadDataframe.csv"), winslash = "/"), 
+              sep = ";", 
+              dec = ".", 
+              row.names = F, 
+              append = F)
+  # Check if URL exists!
+  for(urlexists in dataDF$URL){ # loop through all URLs
+    if(!RCurl::url.exists(urlexists)){ # if not, print warning!
       cat(paste(urlexists, 
-                " does not exist, please check the website of Chelsa.",
-                "\n We would greatly apprecheate feedback on this at helge.marc.ole.jentsch@uni-hamburg.de")
+                " does not exist, please check the website of Chelsa. \n")
       )
-      next # stop()
+      if(urlexists == dataDF$URL[1]){
+        cat(paste("\t If any of these download warnings was prompted incorrectly, we apprecheate a feedback on this at helge.marc.ole.jentsch@uni-hamburg.de\n")
+        )}
+      next 
     }
   }
+  
+  # print the amount of data to be downloaded and processed.
   print(paste0(getDownloadSize(dataDF$URL), " MB will be downloaded."))
   # Progressbar setup
   PGBsum <- nrow(dataDF) + length(unique(dataDF$parameter)) + 1
-  PGB <- txtProgressBar(min = 0, max = PGBsum, style = 3)
+  PGB <- utils::txtProgressBar(min = 0, max = PGBsum, style = 3)
   PGBstate <- 0
-  
+  # Preparation of save location stack 
   locationSack <- NULL
+  # loop through every instance and save the location. 
+  # HINT FOR RUNTIME IMPROVEMENT!!!
   for(parm in dataDF$parameter){
     if (!dir.exists(paste0(save.location, "/", parm))){
       dir.create(paste0(save.location, "/", parm))
@@ -151,6 +233,12 @@ Chelsa.Clim.download <- function(save.location = "./",
       }
       locationSack <- c(locationSack, paste0(save.location, "/", parm, "/ChelsaV1.2Climatologies/"))
     }
+    if("2.1" %in% dataDF$version){
+      if (!dir.exists(paste0(save.location, "/", parm, "/ChelsaV2.1Climatologies"))){
+        dir.create(paste0(save.location, "/", parm, "/ChelsaV2.1Climatologies"))
+      }
+      locationSack <- c(locationSack, paste0(save.location, "/", parm, "/ChelsaV2.1Climatologies/"))
+    }
   }
   # print(locationSack)
   dataDF$filepath[dataDF$version == "1.2"]  <- 
@@ -158,6 +246,13 @@ Chelsa.Clim.download <- function(save.location = "./",
            dataDF$parameter, "/ChelsaV1.2Climatologies", 
            "/CHELSA_", dataDF$parmLong , "_", dataDF$variable, dataDF$years,
            "_V1.2.tif")
+  dataDF$filepath[dataDF$version == "2.1"]  <- 
+    paste0(save.location,"/",
+           dataDF$parameter, "/ChelsaV2.1Climatologies", 
+           "/CHELSA_", dataDF$parmLong , "_", dataDF$variable, dataDF$years,
+           "_V2.1.tif")
+  
+  # check for file existance - if not already present - download file 
   for(fileexists in dataDF$filepath){
     if(!file.exists(fileexists)){
       unlink(list.files(tempdir(), recursive = TRUE, full.names = TRUE))
@@ -179,28 +274,94 @@ Chelsa.Clim.download <- function(save.location = "./",
     setTxtProgressBar(PGB, PGBstate+1)
     PGBstate <- PGBstate+1
   }
-  rescaleDF <- dataDF[dataDF$parameter != "prec",]
-  rescaleDF <- rescaleDF[!(rescaleDF$parameter == "bio" & as.numeric(rescaleDF$variable) > 12),]
-  # for(prepro in dataDF$filepath){
-  #   gc()
-  #   preproRaster <- raster(prepro)
-  #   gc()
-  #   preproRaster <- clamp(preproRaster, lower = -1000,
-  #                        useValues = FALSE)
-  #   if(prepro %in% rescaleDF$filepath){
-  #     print(Sys.time())
-  #     gain(preproRaster) <- 0.1
-  #     print(Sys.time())
-  #   }
-  #   gc()
-  #   writeRaster(x = preproRaster, filename = prepro, overwrite = T)
-  # }
+  
+  # processing of raster into double conversion! 
+  #        1.2       2.1
+  #  prec  -         x
+  #  temp  x         x (K)
+  #  tmax  x         x (K)
+  #  tmin  x         x (K)
+  #  bio   (<12)x    x (K e c(1,5,6, 8:11))
+  if(is.element("1.2", dataDF$version)){ 
+    # https://chelsa-climate.org/wp-admin/download-page/CHELSA_tech_specification.pdf
+    rescaleDF_V12 <- dataDF[dataDF$version == "1.2" & 
+                              dataDF$parameter != "prec"
+                            ,]
+    rescaleDF_V12 <- rescaleDF_V12[!(rescaleDF_V12$parameter == "bio" & 
+                                       as.numeric(rescaleDF_V12$variable) > 12)
+                                   ,]
+    
+    if(nrow(rescaleDF_V12)>0){
+      for(rescale_i in 1:nrow(rescaleDF_V12)){
+        gc()
+        tempRast <- terra::rast(rescaleDF_V12$filepath[rescale_i])
+        tempRast <- process.raster.int.doub(tempRast)
+        tempFilePath <- tempfile(tmpdir = tempdir(), fileext = ".tif")
+        terra::writeRaster(x = tempRast,
+                           filename = tempFilePath
+        )
+        terra::writeRaster(x = terra::rast(x = tempFilePath),
+                           filename = rescaleDF_V12$filepath[rescale_i], 
+                           overwrite = TRUE)
+        rm(tempFilePath)
+        gc()
+      }
+      rm(rescale_i)
+      unlink(list.files(tempdir(), recursive = T, full.names =T))
+    }
+  }
+  if(is.element("2.1", dataDF$version)){ 
+    # https://chelsa-climate.org/wp-admin/download-page/CHELSA_tech_specification_V2.pdf
+    rescaleDF_V21 <- dataDF[dataDF$version == "2.1",]
+    if(nrow(rescaleDF_V21)>0){
+      for(rescale_i in 1:nrow(rescaleDF_V21)){
+        gc()
+        tempRast <- terra::rast(rescaleDF_V21$filepath[rescale_i])
+        tempRast <- process.raster.int.doub(tempRast)
+        tempFilePath <- tempfile(tmpdir = tempdir(), fileext = ".tif")
+        terra::writeRaster(x = tempRast,
+                           filename = tempFilePath
+        )
+        terra::writeRaster(x = terra::rast(x = tempFilePath),
+                           filename = rescaleDF_V21$filepath[rescale_i], 
+                           overwrite = TRUE)
+        rm(tempFilePath)
+        gc()
+      }
+      rm(rescale_i)
+      unlink(list.files(tempdir(), recursive = T, full.names =T))
+    }
+    offsetDF_V21 <- dataDF[dataDF$version == "2.1" & 
+                             dataDF$parameter != "prec"]
+    offsetDF_V21 <- offsetDF_V21[
+      !(offsetDF_V21$parameter == "bio" &
+          is.element(set = c(2:4,7,12:19), 
+                     el = as.numeric(offsetDF_V21$variable))
+      )
+      ,]
+    if(nrow(offsetDF_V21)>0){
+      for(rescale_i in 1:nrow(offsetDF_V21)){
+        gc()
+        tempRast <- terra::rast(offsetDF_V21$filepath[rescale_i])
+        tempRast <- process.raster.offset(tempRast)
+        tempFilePath <- tempfile(tmpdir = tempdir(), fileext = ".tif")
+        terra::writeRaster(x = tempRast,
+                           filename = tempFilePath
+        )
+        terra::writeRaster(x = terra::rast(x = tempFilePath),
+                           filename = offsetDF_V21$filepath[rescale_i], 
+                           overwrite = TRUE)
+        rm(tempFilePath)
+        gc()
+      }
+      rm(rescale_i)
+      unlink(list.files(tempdir(), recursive = T, full.names =T))
+    }
+  }
   locationSack <- unique(locationSack)
   for (temp.temp.save.location in locationSack) {
     run <- grep(temp.temp.save.location, locationSack)
     for(i in run){
-      # print(i)
-      # print(parameter[i])
       variable.numbers <- switch(parameter[i],
                                  "bio" = bio.var,
                                  month.var)
@@ -251,6 +412,7 @@ Chelsa.Clim.download <- function(save.location = "./",
           stacking.downloaded.data(stack.save.location = temp.temp.save.location,
                                    parameter.var = parameter[i],
                                    variable.numbers = variable.numbers,
+                                   stack.clipped = FALSE,
                                    time.stamp.var = call.time)
         }
       }
@@ -288,9 +450,6 @@ Chelsa.Clim.download <- function(save.location = "./",
   close(PGB)
   # delete all temporary files
   unlink(list.files(tempdir(), recursive = T, full.names =T))
-  # print(dataDF)
-  
-  # print(getDownloadSize(dataDF$URL))
 }
 # Chelsa.Clim.download(save.location = "../Daten/")
 # Chelsa.Clim.download(parameter = c("tmin", "prec", "bio"), month.var = c(1,4,7), bio.var = c(1,13,14,17))
@@ -301,4 +460,418 @@ Chelsa.Clim.download <- function(save.location = "./",
 # Chelsa.Clim.download("../testing/", parameter = c("prec", "temp", "bio"),
 #                      bio.var = c(1,12), month.var = c(1,12),
 #                      clipping = T, clip.extent = c(8,10,50,56),
-#                      combine.raw.zip = T)
\ No newline at end of file
+#                      combine.raw.zip = T)
+
+
+#'@title Function for downloading CHELSA CMIP 6 future climatologies for the years 2011-2040, 2041-2070, and 2071-2100
+#'@author Helge Jentsch
+#'@description This function supports the download of CHELSA CMIP6 future climate scenarios comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables).\cr To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.\cr Optional an output of a .bib-file of the cited literature can be retrieved.\cr For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.
+#'
+#'@details "The downscaled data has been produced using climatological aided interpolation based on the 1979-2013 reference climatologies from CHELSA." (CHELSA Climate 2020: \url{http://chelsa-climate.org/future/})
+#'
+#'@note Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.\cr For some of the datasets not all models and rcps are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. See parameter \code{model.var} for more information or check the website of CHELSA Climate (\url{http://chelsa-climate.org/future/}). Please note, that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.
+#'
+#'@param save.location string. Input where the datasets should be saved. \cr Default: Working Directory.
+#'@param parameter string (vector). Input of parameters which should be downloaded. \cr Default: \code{c("prec", "temp", "tmax", "tmin", "bio")}
+#'@param bio.var integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: \url{http://chelsa-climate.org/bioclim/}. \cr Default: \code{c(1:19)}
+#'@param month.var integer (vector). Input which monthly data should be downloaded. Only applicable to Precipitation and Temperature (average, maximum, minimum). \cr Default: \code{c(1:12)}
+#'@param emission.scenario.var string (vector). Input which SSP (Shared Socioeconomic Pathways) scenario dataset should be downloaded. Provided are the SSP scenarios 1 (SSP126), 3 (SSP370), and 5 (SSP585). \cr Default: \code{c("ssp126","ssp370","ssp585")}
+#'@param time.interval.var string (vector). Input for which time interval data should be downloaded. CHELSA provides downscaled CMIP6 climatologies for 2050 and 2070. Multiple inputs possible.\cr Default: \code{c("2041-2060", "2061-2080")}
+#'@param model.var string (vector). Input which future model dataset should be downloaded. For more information see: \url{http://chelsa-climate.org/future/}.\cr For some of the datasets not all downloads are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. For an overview please try "warnings()" after execution. \cr Default: \code{c("gfdl-esm4", "ukesm1-0-ll", "mpi-esm1-2-hr", "ipsl-cm6a-lr", "mri-esm2-0")}
+#'@param clipping logical. Input whether the downloaded data should be clipped.\cr If \code{FALSE} \code{clip.shapefile}, buffer, clip.extent will be ignored. \cr Default: \code{FALSE}
+#'@param clip.shapefile string. Input which shapefile should be used for clipping.  \cr Default: \code{NULL}
+#'@param clip.extent numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").\cr Default: \code{c(-180, 180, -90, 90)}
+#'@param buffer numeric. Input of decimal degrees of buffer around the shapefile and/or extent. \cr Default: \code{0}
+#'@param convert.files.to.asc logical. Input whether files should be converted into the ASCII format.\cr If \code{TRUE}: a new subdirectory is created and the rawdata is saved there. If \code{clipping} is \code{TRUE}: the clipped raster files are also saved as ASCII grids.  \cr Default: \code{FALSE}
+#'@param stacking.data logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. \cr  Default: \code{FALSE}
+#'@param combine.raw.zip logical. Should the downloaded raw-data be "zipped". \cr  Default: \code{FALSE}
+#'@param delete.raw.data  logical. Should the downloaded raw-data be deleted. If the \code{combine.raw.zip} is \code{TRUE}: raw-data is still available in the zipped file. \cr Default: \code{FALSE}
+#'@param save.bib.file logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. \cr Default: \code{TRUE}
+#'
+#'@return CHELSA CMIP6 climatology datasets.
+#'
+#'@references D. N. Karger, O. Conrad, J. B{\"o}hner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. <URL: https://doi.org/10.1038/sdata.2017.122>.
+#'@references D. N. Karger, O. Conrad, J. B{\"o}hner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. <URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4>.
+#'
+#'@note Specifications: <URL: https://chelsa-climate.org/wp-admin/download-page/CHELSA_tech_specification_V2.pdf>
+#'@note More information on Shared Socioeconomic Pathways under <URL: https://www.dkrz.de/en/communication/climate-simulations/cmip6-en/the-ssp-scenarios?set_language=en>
+#'
+#'@examples
+#' \dontrun{
+#' # Bioclim
+#' Chelsa.CMIP_6.download(parameter = "bio",
+#'                         bio.var = c(1,19),
+#'                         emission.scenario.var = "ssp126",
+#'                         time.interval.var = "2011-2040",
+#'                         model.var = "mpi-esm1-2-hr")
+#' # Precipitation
+#' Chelsa.CMIP_6.download(parameter = "prec",
+#'                         month.var = c(1,7),
+#'                         emission.scenario.var = "ssp585",
+#'                         time.interval.var = "2071-2100",
+#'                         model.var = "gfdl-esm4")
+#' }
+#'
+#'@import stringr
+#'@import RCurl
+#'@import ncdf4
+#'@import terra
+#'@import httr
+#'@importFrom utils unzip download.file setTxtProgressBar txtProgressBar
+#'
+#'
+#'@export
+Chelsa.CMIP_6.download <- function(save.location = "./",
+                                   parameter = c("prec", "temp", "tmax", "tmin", "bio"),
+                                   bio.var = c(1:19),
+                                   month.var = c(1:12),
+                                   emission.scenario.var = c("ssp126","ssp370","ssp585"),
+                                   time.interval.var = c("2011-2040", "2041-2070", "2071-2100"),
+                                   model.var = c("gfdl-esm4", 
+                                                 "ukesm1-0-ll",
+                                                 "mpi-esm1-2-hr",
+                                                 "ipsl-cm6a-lr",
+                                                 "mri-esm2-0"),
+                                   clipping = FALSE,
+                                   clip.shapefile = NULL,
+                                   clip.extent = c(-180, 180, -90, 90),
+                                   buffer = 0,
+                                   convert.files.to.asc = FALSE,
+                                   stacking.data = FALSE,
+                                   combine.raw.zip = FALSE,
+                                   delete.raw.data  = FALSE,
+                                   save.bib.file = TRUE
+){
+  gc()
+  call.time <- stringr::str_replace_all(
+    stringr::str_replace_all(as.character(Sys.time()), 
+                             pattern = ":",
+                             replacement = "-"), 
+    pattern = " ", 
+    replacement = "_")
+  
+  # initial check ----------------------------------------------------------  
+  
+  save.location <- normalizePath(save.location, winslash = "/")
+  # the build of this function is very similar to the Chelsa.Clim.download function.
+  if(base::is.element("prec", parameter)|base::is.element("temp", parameter)|
+     base::is.element("tmax", parameter)|base::is.element("tmin", parameter)){
+    
+    month.var <- c(month.var)
+    if(!is.numeric(month.var)) stop()
+    # !!!
+    month.var <- stringr::str_pad(month.var, 2, 'left', pad = "0")
+  }
+  if(base::is.element("bio", parameter)){
+    bio.var <- c(bio.var)
+    if(!is.numeric(bio.var)) stop()
+    bio.var <- stringr::str_pad(bio.var, 2, 'left', pad = "0")
+  }
+  
+  # Preparations ------------------------------------------------------------
+  # parameter
+  parameter <- base::sort(parameter)
+  DLTparameter <- c(base::rep(parameter[parameter!="bio"], 
+                              base::length(month.var)), 
+                    base::rep(parameter[parameter=="bio"], 
+                              base::length(bio.var)))
+  DLTparameter <- base::sort(DLTparameter)
+  # variables 
+  DLTvariable <- NULL
+  for(parm in parameter){
+    DLTvariable <- c(DLTvariable, 
+                     switch(parm, 
+                            "prec" = month.var,
+                            "tmax" = month.var,
+                            "temp" = month.var,
+                            "tmin" = month.var, 
+                            bio.var
+                     )
+    )
+    
+  }
+  
+  # Combine search into large dataframe -------------------------------------
+  dataDF <- data.frame("parameter" = sort(DLTparameter), # parameter = shortname (pt1)
+                       "variable" = DLTvariable # variable = shortname (pt2)
+  )
+  lengthTemp <- nrow(dataDF)
+  # Collection of Scenario 
+  if(length(emission.scenario.var)==1){
+    dataDF$ssp <- base::rep(emission.scenario.var, lengthTemp)
+  }else{
+    dataDF <- data.frame("parameter" = rep(dataDF$parameter, length(emission.scenario.var)) , 
+                         "variable" = rep(dataDF$variable, length(emission.scenario.var)) ,  
+                         "ssp" = NA)
+    temp_version <- c()
+    for(i_ssp in emission.scenario.var){
+      temp_version <- c(temp_version,base::rep(i_ssp, lengthTemp))
+    }
+    dataDF$ssp <- temp_version
+    rm(temp_version, i_ssp)
+  }
+  
+  lengthTemp <- nrow(dataDF)
+  # Collection of timeperiod 
+  if(length(time.interval.var)==1){
+    dataDF$timeperiod <- base::rep(time.interval.var, lengthTemp)
+  }else{
+    dataDF <- data.frame("parameter" = rep(dataDF$parameter, length(time.interval.var)) , 
+                         "variable" = rep(dataDF$variable, length(time.interval.var)) ,  
+                         "ssp" = rep(dataDF$ssp, length(time.interval.var)) ,  
+                         "timeperiod" = NA)
+    temp_timeperiod <- c()
+    for(i_timeperiod in time.interval.var){
+      temp_timeperiod <- c(temp_timeperiod, base::rep(i_timeperiod, lengthTemp))
+    }
+    dataDF$timeperiod <- temp_timeperiod
+    rm(temp_timeperiod, i_timeperiod)
+  }
+  
+  lengthTemp <- nrow(dataDF)
+  # Collection of models 
+  if(length(model.var)==1){
+    dataDF$model <- base::rep(model.var, lengthTemp)
+  }else{
+    dataDF <- data.frame("parameter" = rep(dataDF$parameter, length(model.var)) , 
+                         "variable" = rep(dataDF$variable, length(model.var)) ,  
+                         "ssp" = rep(dataDF$ssp, length(model.var)) ,  
+                         "timeperiod" = rep(dataDF$timeperiod, length(model.var)) ,  
+                         "model" = NA)
+    temp_model <- c()
+    for(i_model in model.var){
+      temp_model <- c(temp_model, base::rep(i_model, lengthTemp))
+    }
+    dataDF$model <- temp_model
+    rm(temp_model, i_model)
+  }
+  rm(lengthTemp)
+  
+  # switch?
+  dataDF$parm[dataDF$parameter == "prec"] <- base::paste0("pr")
+  dataDF$parm[dataDF$parameter == "temp"] <- base::paste0("tas")
+  dataDF$parm[dataDF$parameter == "tmin"] <- base::paste0("tasmin")
+  dataDF$parm[dataDF$parameter == "tmax"] <- base::paste0("tasmax")
+  dataDF$parm[dataDF$parameter == "bio"] <- base::paste0("bio")
+  
+  dataDF$variableNumeric <- as.numeric(dataDF$variable)
+  # naming convention: 
+  # CHELSA_[short_name]_[timeperiod]_[model] _[ssp] _[Version].tif
+  
+  dataDF$URL[dataDF$parameter != "bio"]  <-
+    paste0("https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/",
+           dataDF$timeperiod[dataDF$parameter != "bio"],
+           "/",
+           base::toupper(dataDF$model[dataDF$parameter != "bio"]),
+           "/",
+           dataDF$ssp[dataDF$parameter != "bio"],
+           "/",
+           dataDF$parm[dataDF$parameter != "bio"],
+           "/",
+           "CHELSA",
+           "_",
+           dataDF$model[dataDF$parameter != "bio"],"_r1i1p1f1_w5e5",
+           "_",
+           dataDF$ssp[dataDF$parameter != "bio"],
+           "_",
+           dataDF$parm[dataDF$parameter != "bio"] ,
+           "_", 
+           dataDF$variable[dataDF$parameter != "bio"] , 
+           "_", 
+           stringr::str_replace(dataDF$timeperiod[dataDF$parameter != "bio"], pattern = "-", replacement = "_"),
+           "_", 
+           "norm.tif")
+  
+  dataDF$URL[dataDF$parameter == "bio"]  <-
+    paste0("https://os.zhdk.cloud.switch.ch/envicloud/chelsa/chelsa_V2/GLOBAL/climatologies/",
+           dataDF$timeperiod[dataDF$parameter == "bio"],
+           "/",
+           base::toupper(dataDF$model[dataDF$parameter == "bio"]),
+           "/",
+           dataDF$ssp[dataDF$parameter == "bio"],
+           "/",
+           dataDF$parm[dataDF$parameter == "bio"],
+           "/",
+           "CHELSA",
+           "_",
+           dataDF$parm[dataDF$parameter == "bio"],
+           dataDF$variableNumeric[dataDF$parameter == "bio"], 
+           "_", 
+           dataDF$timeperiod[dataDF$parameter == "bio"] ,
+           "_",
+           dataDF$model[dataDF$parameter == "bio"],
+           "_",
+           dataDF$ssp[dataDF$parameter == "bio"],
+           "_", 
+           "V.2.1.tif")
+  
+  # Check if URL exists!
+  for(urlexists in dataDF$URL){ # loop through all URLs
+    if(!RCurl::url.exists(urlexists)){ # if not, print warning!
+      cat(paste(urlexists, 
+                " does not exist, please check the website of Chelsa. \n")
+      )
+      if(urlexists == dataDF$URL[1]){
+        cat(paste("\t If any of these download warnings was prompted incorrectly, we apprecheate a feedback on this at helge.marc.ole.jentsch@uni-hamburg.de\n")
+        )}
+      next 
+    }
+  }
+  
+  # print the amount of data to be downloaded and processed.
+  print(paste0(getDownloadSize(dataDF$URL), " MB will be downloaded."))
+  # Progressbar setup
+  PGBsum <- nrow(dataDF) + length(unique(dataDF$parameter)) + 1
+  PGB <- utils::txtProgressBar(min = 0, max = PGBsum, style = 3)
+  PGBstate <- 0
+  # Preparation of save location stack 
+  locationSack <- NULL
+  # loop through every instance and save the location. 
+  # HINT FOR RUNTIME IMPROVEMENT!!!
+  # !!! Parm oder Parameter?!
+  for(parm in dataDF$parameter){
+    if (!dir.exists(paste0(save.location, "/", parm))){
+      dir.create(paste0(save.location, "/", parm))
+    }
+    if (!dir.exists(paste0(save.location, "/", parm, "/ChelsaCMIP6Climatologies"))){
+      dir.create(paste0(save.location, "/", parm, "/ChelsaCMIP6Climatologies"))
+    }
+    locationSack <- c(locationSack, paste0(save.location, "/", parm, "/ChelsaCMIP6Climatologies/"))
+  }
+  
+  # CHELSA_[short_name]_[timeperiod]_[model]_[ssp]_[Version].tif
+  dataDF$filepath  <- 
+    paste0(save.location,"/", dataDF$parameter, "/ChelsaCMIP6Climatologies", 
+           "/",
+           "CHELSA",
+           "_", 
+           dataDF$parm, "_", dataDF$variable, 
+           "_", 
+           dataDF$timeperiod,
+           "_", 
+           dataDF$model,
+           "_", 
+           dataDF$ssp,
+           "_", 
+           "V2.1.tif")
+  
+  #!!! Value Preprocessing - postponed for now
+  
+  # check for file existance - if not already present - download file 
+  for(fileexists in dataDF$filepath){
+    if(!file.exists(fileexists)){
+      unlink(list.files(tempdir(), recursive = TRUE, full.names = TRUE))
+      # cat("\n",paste0(dataDF$URL[dataDF$filepath == fileexists]),"\n")
+      download.file(url = dataDF$URL[dataDF$filepath == fileexists],
+                    destfile = fileexists,
+                    # overwrite is TRUE otherwise a error is caused
+                    overwrite = TRUE,
+                    # From the description file:
+                    # The choice of binary transfer (mode = "wb" or "ab")
+                    # is important on Windows, since unlike Unix-alikes
+                    # it does distinguish between text and binary files and
+                    # for text transfers changes
+                    # \n line endings to \r\n (aka ‘CRLF’).
+                    # method = 'wget',
+                    mode = 'wb',
+                    # to show progression bar
+                    quiet = TRUE,
+                    cacheOK = FALSE)
+    }
+    setTxtProgressBar(PGB, PGBstate+1)
+    PGBstate <- PGBstate+1
+  }
+  
+  locationSack <- unique(locationSack)
+  for (temp.temp.save.location in locationSack) {
+    run <- grep(temp.temp.save.location, locationSack)
+    for(i in run){
+      variable.numbers <- switch(parameter[i],
+                                 "bio" = bio.var,
+                                 month.var)
+      # if clipping is TRUE ...
+      if(clipping == TRUE){
+        # the function "clipping.tif" (found in the auxiliary.R-File)
+        # is executed. The clip.save.location is the same location as the
+        # "current" save location
+        clipping.tif(clip.save.location = temp.temp.save.location,
+                     # the clip-shapefile is passed
+                     # default "NULL" does not produce error
+                     clip.shapefile = clip.shapefile,
+                     # Clip.extent is passed
+                     # default "c(-180, 180, -90, 90)" does not produce errors
+                     # simply clips the whole world.
+                     clip.extent = clip.extent,
+                     # buffer is passed
+                     # default: 0. Unit is arc-degrees
+                     buffer = buffer,
+                     # conversion to ASCII format here integrated into the
+                     # clipping function. Since it can be assumed that
+                     # they should be converted lateron anyway.
+                     convert.files.to.asc = convert.files.to.asc,
+                     time.stamp.var = call.time)
+      }
+      # if converting.files.to.asc is TRUE ...
+      if(convert.files.to.asc == TRUE){
+        # the function "convert.to.asc" (found in the auxiliary.R-File)
+        # is executed. The save.location is the same location as the
+        # "current" save location. Also another new subdirectory will
+        # be created with the name "ASCII" .
+        convert.to.asc(save.location = temp.temp.save.location,
+                       time.stamp.var = call.time)
+      }
+      # if stacking.data is TRUE ...
+      if(stacking.data == TRUE){
+        # the function "stacking.downloaded.data"
+        # (found in the auxiliary.R-File) is executed.
+        # The save.location is the same location as the
+        # "current" save location.
+        if(clipping==TRUE){
+          stacking.downloaded.data(stack.save.location = temp.temp.save.location,
+                                   parameter.var = parameter[i],
+                                   variable.numbers = variable.numbers,
+                                   stack.clipped = TRUE,
+                                   time.stamp.var = call.time)
+        }else{
+          stacking.downloaded.data(stack.save.location = temp.temp.save.location,
+                                   parameter.var = parameter[i],
+                                   variable.numbers = variable.numbers,
+                                   stack.clipped = FALSE,
+                                   time.stamp.var = call.time)
+        }
+      }
+      # if combine.raw.zip is TRUE ...
+      if(combine.raw.zip == TRUE){
+        # the function "combine.raw.in.zip"
+        # (found in the auxiliary.R-File) is executed.
+        # The save.location is the same location as the
+        # "current" save location. The name of the zip-file is also
+        # passed with the current parameter in it.
+        combine.raw.in.zip(save.location = temp.temp.save.location,
+                           zip.name = paste0("CHELSAClim_", parameter[i], ""),
+                           time.stamp.var = call.time)
+      }
+      # if delete.raw.data is TRUE ...
+      if(delete.raw.data == TRUE){
+        # All .tif raster files in the current 2nd order subdirectory are
+        # unlinked (deleted).
+        unlink(list.files(temp.temp.save.location,
+                          pattern = ".tif",
+                          include.dirs = FALSE,
+                          full.names = T),
+               force = TRUE)
+      }
+    }
+    # delete all temporary files
+    unlink(list.files(tempdir(), recursive = T, full.names =T))
+    setTxtProgressBar(PGB, PGBstate+1)
+    PGBstate <- PGBstate+1
+  }
+  if(save.bib.file == TRUE) {
+    save.citation(save.location = save.location, dataSetName = "CHELSA")
+  }
+  setTxtProgressBar(PGB, PGBstate+1)
+  close(PGB)
+  # delete all temporary files
+  unlink(list.files(tempdir(), recursive = T, full.names =T))
+}
\ No newline at end of file
diff --git a/R/WorldClim_download_functions.R b/R/WorldClim_download_functions.R
index 649f67f3d9918b3d6a5873c8e3a976ff4616f5c1..cf436fa40f17f15529177ea0c0d4985935c3199f 100644
--- a/R/WorldClim_download_functions.R
+++ b/R/WorldClim_download_functions.R
@@ -45,7 +45,7 @@
 #'@importFrom curl curl_fetch_memory
 #'@import RCurl
 #'@import ncdf4
-#'@import raster
+#'@import terra
 #'@importFrom utils unzip download.file setTxtProgressBar txtProgressBar
 #'
 #'@export
@@ -66,21 +66,26 @@ WorldClim.HistClim.download <- function(save.location = "./",
                                         keep.raw.zip = FALSE,
                                         delete.raw.data  = FALSE,
                                         save.bib.file = TRUE){
-  requireNamespace("stringr")
-  requireNamespace("RCurl")
-  requireNamespace("ncdf4")
-  requireNamespace("raster")
+  # requireNamespace("stringr")
+  # requireNamespace("RCurl")
+  # requireNamespace("ncdf4")
+  # requireNamespace("raster")
   gc()
-  call.time <- str_replace_all(str_replace_all(paste0(Sys.time()), pattern = ":", replacement = "-"), pattern = " ", replacement = "_")
+  call.time <- stringr::str_replace_all(
+    stringr::str_replace_all(paste0(Sys.time()), 
+                             pattern = ":", 
+                             replacement = "-"), 
+    pattern = " ", 
+    replacement = "_")
   # initial check -----------------------------------------------------------
   # normalize Path for easier application later
-  save.location <- normalizePath(save.location, winslash = "/")
+  save.location <- base::normalizePath(save.location, winslash = "/")
   # Check which parameters are put in and if the connected
   # month/bio-variables are correctly input
-  if(is.element("prec", parameter)|is.element("temp", parameter)|
-     is.element("tmax", parameter)|is.element("tmin", parameter)|
-     is.element("srad", parameter)|is.element("wind", parameter)|
-     is.element("vapr", parameter)
+  if(base::is.element("prec", parameter)| base::is.element("temp", parameter)|
+     base::is.element("tmax", parameter)| base::is.element("tmin", parameter)|
+     base::is.element("srad", parameter)| base::is.element("wind", parameter)|
+     base::is.element("vapr", parameter)
   ){
     # if month.var is just a single numeric input it is here casted into
     # a vector for comparabilities
@@ -106,19 +111,19 @@ WorldClim.HistClim.download <- function(save.location = "./",
   for(vers in version.var){
     URL.1 <- switch (vers,
                      "1.4" = "https://biogeo.ucdavis.edu/data/climate/worldclim/1_4/grid/cur/",
-                     "2.1" = "https://biogeo.ucdavis.edu/data/worldclim/v2.1/base/wc2.1_",
+                     "2.1" = "https://geodata.ucdavis.edu/climate/worldclim/2_1/base/wc2.1_",
                      stop()
     )
 
     # Second: Work through paramters ------------------------------------------
     for(parm in parameter){
       # if not already created, create new directory
-      if (!dir.exists(paste0(save.location, "/", parm))){
-        dir.create(paste0(save.location, "/", parm))
+      if (!base::dir.exists(base::paste0(save.location, "/", parm))){
+        base::dir.create(base::paste0(save.location, "/", parm))
       }
       # set the 1. order temporal save location to this directory
       # 1. Order -> parameter!
-      temp.save.location <- paste0(save.location, "/", parm, "/")
+      temp.save.location <- base::paste0(save.location, "/", parm, "/")
 
       # Version Control
       if(vers == "1.4"){
@@ -159,7 +164,7 @@ WorldClim.HistClim.download <- function(save.location = "./",
                                  stop())
       # Thrid: Through resolution -----------------------------------------------
       for (res in resolution) {
-        temp.temp.save.location <- paste0(temp.save.location,"/WorldClim_",
+        temp.temp.save.location <- base::paste0(temp.save.location,"/WorldClim_",
                                           vers, "_", parm.temp, "_", res, "/")
         # if not already created, create new directory
         if(!dir.exists(temp.temp.save.location)){
@@ -193,10 +198,9 @@ WorldClim.HistClim.download <- function(save.location = "./",
               # create a variable for the later requested Download-URL to avoid
               # requireing multiple changes, if the link changes.
               URL.temp <- paste0(URL.1 , parm.temp, "_", res.temp, "_bil.zip")
-              urlCheck <- curl_fetch_memory(url = URL.temp)$status_code
               # check if URL is available
               # if(url.exists(URL.temp)){
-              if(urlCheck == 200){
+              if(RCurl::url.exists(url = URL.temp)){
                 # clear up the temporary directory
                 unlink(list.files(tempdir(), recursive = T, full.names=T))
                 # download file to save location
@@ -212,7 +216,8 @@ WorldClim.HistClim.download <- function(save.location = "./",
                               # \n line endings to \r\n (aka ‘CRLF’).
                               mode = 'wb',
                               # to show progression bar
-                              quiet = FALSE)
+                              quiet = TRUE,
+                              cacheOK = FALSE)
               }else{
                 # Error message if file is not available
                 warning(paste0("File does not exist. Did not download: \n",
@@ -384,7 +389,7 @@ WorldClim.HistClim.download <- function(save.location = "./",
             # create a variable for the later requested Download-URL to avoid
             # requireing multiple changes, if the link changes.
             URL.temp <- paste0(URL.1, res.temp, "_", parm.temp, ".zip")
-            urlCheck <- curl_fetch_memory(url = URL.temp)$status_code
+            urlCheck <- curl::curl_fetch_memory(url = URL.temp)$status_code
             # check if URL is available
             # if(url.exists(URL.temp)){
             if(urlCheck == 200){
@@ -564,7 +569,7 @@ WorldClim.HistClim.download <- function(save.location = "./",
       }
     }
   }
-}
+ }
 
 
 #'@title Function for downloading the WorldClim v1.4 CMIP5 future climate dataset
@@ -655,7 +660,13 @@ WorldClim.CMIP_5.download <- function(save.location = "./",
   # requireNamespace("ncdf4")
   # requireNamespace("raster")
   gc()
-  call.time <- str_replace_all(str_replace_all(paste0(Sys.time()), pattern = ":", replacement = "-"), pattern = " ", replacement = "_")  # initial check -----------------------------------------------------------
+  call.time <- stringr::str_replace_all(stringr::str_replace_all(
+    paste0(Sys.time()), 
+    pattern = ":",
+    replacement = "-"), 
+    pattern = " ", 
+    replacement = "_")  
+  # initial check -----------------------------------------------------------
   # normalize Path for easier application later
   save.location <- normalizePath(save.location, winslash = "/")
   # Check which parameters are put in and if the connected
@@ -684,10 +695,10 @@ WorldClim.CMIP_5.download <- function(save.location = "./",
 
   # First: Set URL Root --------------------------------------------------------
 
-  URL.1 <- "https://biogeo.ucdavis.edu/data/climate/cmip5/"
+  URL.1 <- "http://biogeo.ucdavis.edu/data/climate/cmip5/"
 
   # Second: Parameters ---------------------------------------------------------
-  for(parm in parameter){
+  for(parm in parameter){ #parm <- parameter[1]
     # if not already created, create new directory
     if (!dir.exists(paste0(save.location, "/", parm))){
       dir.create(paste0(save.location, "/", parm))
@@ -709,7 +720,7 @@ WorldClim.CMIP_5.download <- function(save.location = "./",
                                "prec" = month.var,
                                stop())
     # Third: Through resolution ------------------------------------------------
-    for (res in resolution) {
+    for (res in resolution) { # res <- resolution[4]
       res.temp <- switch (res,
                           "10min" = "10m",
                           "5min" = "5m",
@@ -717,7 +728,7 @@ WorldClim.CMIP_5.download <- function(save.location = "./",
                           "30s" = "30s",
                           "10m" = "10m",
                           "5m" = "5m",
-                          "2.5m" = "2.5m",
+                          "2.5m" = "2_5m",
                           "30s" = "30s",
                           next
       )
@@ -729,7 +740,7 @@ WorldClim.CMIP_5.download <- function(save.location = "./",
       }
       URL.2 <- paste0(res.temp, "/")
       # Forth: Global Circulation Model --------------------------------------
-      for(gcm in model.var){
+      for(gcm in model.var){ # gcm = model.var[1]
         # GCM;OnlyNonCommercialUse
         # AC;TRUE
         # BC;FALSE
@@ -780,10 +791,10 @@ WorldClim.CMIP_5.download <- function(save.location = "./",
                   call. = TRUE,
                   immediate. = TRUE)
         }
-        URL.3 <- str_to_lower(gcm.temp)
+        URL.3 <- stringr::str_to_lower(gcm.temp)
 
         # Fifth: Relative Concentration Pathways ---------------------------------
-        for(rcp in emission.scenario.var){
+        for(rcp in emission.scenario.var){ # rcp = "rcp45"
           rcp.temp <- switch (rcp,
                               "rcp26" = "26",
                               "rcp45" = "45",
@@ -793,13 +804,13 @@ WorldClim.CMIP_5.download <- function(save.location = "./",
           )
           URL.4 <- paste0(URL.3, rcp.temp)
           # Sixth: Time interval -----------------------------------------------
-          for(year in time.interval.var) {
+          for(year in time.interval.var) { #year <- time.interval.var[1]
             year.temp <- switch (year,
                                  "2050" = "50",
                                  "2070" = "70",
                                  next
             )
-            temp.temp.save.location <- paste0(temp.save.location,"/WorldClim_CMIP5_",
+            temp.temp.save.location <- paste0(temp.save.location,"WorldClim_CMIP5_",
                                               parm.temp, "_", res,"_",
                                               gcm, "_", rcp, "_",year,"/")
             # if not already created, create new directory
@@ -816,10 +827,8 @@ WorldClim.CMIP_5.download <- function(save.location = "./",
               # create a variable for the later requested Download-URL to avoid
               # requireing multiple changes, if the link changes.
               URL.temp <- paste0(URL.1, URL.2, URL.4, parm.temp, year.temp, ".zip")
-              urlCheck <- curl_fetch_memory(url = URL.temp)$status_code
               # check if URL is available
-              # if(url.exists(URL.temp)){
-              if(urlCheck == 200){
+              if(RCurl::url.exists(url = URL.temp)){
                 # clear up the temporary directory
                 unlink(list.files(tempdir(), recursive = T, full.names=T))
                 # download file to save location
@@ -1153,7 +1162,7 @@ WorldClim.CMIP_6.download <- function(save.location = "./",
   # requireNamespace("ncdf4")
   # requireNamespace("raster")
   gc()
-  call.time <- str_replace_all(str_replace_all(paste0(Sys.time()), pattern = ":", replacement = "-"), pattern = " ", replacement = "_")
+  call.time <- stringr::str_replace_all(stringr::str_replace_all(as.character(Sys.time()), pattern = ":", replacement = "-"), pattern = " ", replacement = "_")
   # initial check -----------------------------------------------------------
   # normalize Path for easier application later
   save.location <- normalizePath(save.location, winslash = "/")
@@ -1222,14 +1231,14 @@ WorldClim.CMIP_6.download <- function(save.location = "./",
                           "30s" = "30s",
                           next
       )
-      if(res.temp == "30s") {
-        warning(
-          # "Processing might take a while since 30s resolution is downloaded for the whole world",
-          "30 second data is not yet available. Please check WorldClim website. Skipping 30s data!",
-          call. = TRUE,
-          immediate. = TRUE)
-        next
-      }
+      # if(res.temp == "30s") {
+      #   warning(
+      #     # "Processing might take a while since 30s resolution is downloaded for the whole world",
+      #     "30 second data is not yet available. Please check WorldClim website. Skipping 30s data!",
+      #     call. = TRUE,
+      #     immediate. = TRUE)
+      #   next
+      # }
       URL.2 <- paste0(res.temp, "/")
       # Forth: Global Circulation Model --------------------------------------
       for(gcm in model.var){
@@ -1258,10 +1267,9 @@ WorldClim.CMIP_6.download <- function(save.location = "./",
               # create a variable for the later requested Download-URL to avoid
               # requireing multiple changes, if the link changes.
               URL.temp <- paste0(URL.1, URL.2,URL.3, ".zip")
-              urlCheck <- curl_fetch_memory(url = URL.temp)$status_code
               # check if URL is available
               # if(url.exists(URL.temp)){
-              if(urlCheck == 200){
+              if(RCurl::url.exists(url = URL.temp)){
                 # clear up the temporary directory
                 unlink(list.files(tempdir(), recursive = T, full.names=T))
                 # download file to save location
@@ -1293,9 +1301,9 @@ WorldClim.CMIP_6.download <- function(save.location = "./",
                                      full.names = T)
             for (file in files.list) {
               unzip(file,
-                    exdir = str_sub(temp.temp.save.location,
+                    exdir = stringr::str_sub(temp.temp.save.location,
                                     start = 0,
-                                    end = str_length(temp.temp.save.location)-1)
+                                    end = stringr::str_length(temp.temp.save.location)-1)
               )
               file.copy(from = paste0(list.files(temp.temp.save.location,
                                                  pattern = paste0(URL.3, ".tif"),
@@ -1429,9 +1437,9 @@ WorldClim.CMIP_6.download <- function(save.location = "./",
             if(length(list.files(temp.temp.save.location,
                                  include.dirs = TRUE)) == 0){
 
-              unlink(str_sub(temp.temp.save.location,
+              unlink(stringr::str_sub(temp.temp.save.location,
                              start = 0,
-                             end = str_length(temp.temp.save.location)-1),
+                             end = stringr::str_length(temp.temp.save.location)-1),
                      force = TRUE, recursive = TRUE)
             }
             # Saving BIB File ---------------------------------------------------------
diff --git a/R/auxiliary.R b/R/auxiliary.R
index 2de7b29743ecaec6461a2a1d2783248dfd63cc0d..2ffa22a1172c982cf6606367a5fd7d2822fcb8e4 100644
--- a/R/auxiliary.R
+++ b/R/auxiliary.R
@@ -11,13 +11,20 @@
 #'
 #'@return This function returns, depending on the parameter \code{convert.files.to.asc} whether it is ASCII or tif format, clipped raster files to a new directory. This directory is automatically created.
 #'
-#'@import raster
 #'@import stringr
-#'@import sp
 #'@import sf
+#'@import terra
 #'
 #' @examples
-#' clipping.tif(clip.save.location = system.file("pictures/", package = "rgdal"))
+#' \dontrun{
+#' clipping.tif(clip.save.location = terra::rast(
+#'                                           paste(
+#'                                               system.file("ex/meuse.tif", 
+#'                                               package = "terra")
+#'                                               )
+#'                                               )
+#'                                               )
+#'}
 #'
 #'@export
 clipping.tif  <- function(clip.save.location = "./",
@@ -28,85 +35,82 @@ clipping.tif  <- function(clip.save.location = "./",
                           time.stamp.var = str_replace_all(str_replace_all(paste0(Sys.time()), pattern = ":", replacement = "-"), pattern = " ", replacement = "_")
 ){
   gc()
-  # requireNamespace("raster")
-  # requireNamespace("stringr")
-  # requireNamespace("sp")
-  global.crs <- raster::crs(
-    raster::projection("+proj=longlat +datum=WGS84 +no_defs")
-  )
+  
+  # global.crs <- raster::crs(
+  #   raster::projection("+proj=longlat +datum=WGS84 +no_defs")
+  # )
+  # global.crs<- terra::crs("+proj=longlat +datum=WGS84 +no_defs")
+  global.crs <- "+proj=longlat +datum=WGS84 +no_defs"
+  
   if((length(clip.extent) != 4) & !is.null(clip.extent)) stop("Please enter a extent as shown in the help! E.g. c(0, 30, 25, 80)")
   if((is.null(clip.shapefile) & is.null(clip.extent))) stop("Please provide a valid extent or shapefile to which the files should be clipped!")
+  
   temp.list.files <- list.files(clip.save.location,
                                 full.names = TRUE,
                                 recursive = FALSE,
                                 pattern = ".tif")
+  
   if(length(temp.list.files) == 0) stop(paste0("No files found at location: ", clip.save.location))
   # print(temp.list.files)
+  
   temp.list.file.names <- list.files(clip.save.location,
                                      full.names = FALSE,
                                      recursive = FALSE,
                                      pattern = ".tif")
-  temp.list.file.names <- str_remove(temp.list.file.names,
-                                     pattern = ".tif")
+  
+  temp.list.file.names <- stringr::str_remove(temp.list.file.names,
+                                              pattern = ".tif")
+  
   dir.create(paste0(clip.save.location,"/clipped_",time.stamp.var),
              showWarnings = FALSE)
+  
   if(!is.null(clip.shapefile)){
-    temp.shp <- st_read(clip.shapefile, quiet = TRUE)
-    temp.shp.crs <- as.character(st_crs(temp.shp$geometry)[[1]])
-    if(is.na(temp.shp.crs)){
-      # print(temp.shp)
+    # temp.shp <- st_read(clip.shapefile, quiet = TRUE)
+    temp.shp <- terra::vect(clip.shapefile)
+    # temp.shp.crs <- as.character(st_crs(temp.shp$geometry)[[1]])
+    if(is.na(terra::is.lonlat(temp.shp))){
       stop(paste0("No spatial reference was found. \n",
                   "Please set the spatial reference of the shapefile and restart!"), )
     }
-    if(temp.shp.crs != "GCS"){
+    if(!terra::is.lonlat(temp.shp)){
       warning("Shapefile is not in GCS! It will be transformed in the next step.",
               immediate. = T)
-      crs_wgs84 <- sp::CRS("+proj=longlat +datum=WGS84 +no_defs")
-      new.extent <- as.numeric(st_bbox(obj = st_transform(x = temp.shp,
-                                                          crs = crs_wgs84))[c(1,3,2,4)])
-      temp.clip.extent <- raster::extent(x = new.extent)
+      temp.clip.extent <- terra::ext(x = terra::project(temp.shp, global.crs))
     }else{
-      temp.clip.extent <- raster::extent(as.numeric(st_bbox(temp.shp)[c(1,3,2,4)]))
+      temp.clip.extent <- terra::ext(x = temp.shp)
     }
-    rm(temp.shp.crs, temp.shp)
+    rm(temp.shp)
     gc()
   }else{
-    temp.clip.extent <- extent(clip.extent)
+    temp.clip.extent <- terra::ext(clip.extent)
   }
-  # print(temp.clip.extent)
   for (temp.file in 1:length(temp.list.files)) {
     gc()
-    temp.raster <- raster(temp.list.files[temp.file])
-    # print(crs(temp.raster))
-    # reproject raster if it is not in GCS
-    # if(as.character(crs(temp.raster)) != as.character(global.crs)){
-    #   # warning("Raster is not in GCS! It will be transformed in the next step.",
-    #   # call. = TRUE,
-    #   # immediate. = TRUE)
-    #   temp.raster <- projectRaster(from = temp.raster, crs = global.crs)
-    # }
-    if(!is.null(intersect(x = extent(temp.raster),y = temp.clip.extent+buffer))){
+    temp.raster <- terra::rast(temp.list.files[temp.file])
+    if(!is.null(terra::intersect(x = terra::ext(temp.raster), 
+                                 y = temp.clip.extent+buffer))){
       # if there is a buffer
       if(buffer > 0){
-        temp.raster.extent <- extent(temp.clip.extent)+buffer
-        if(temp.raster.extent > extent(temp.raster)){
-          temp.raster.extent <- extent(temp.raster)
-          warning("New extent was bigger than the original. So the max extent was used",
+        temp.raster.extent <- temp.clip.extent+buffer
+        if(temp.raster.extent > terra::ext(temp.raster)){
+          temp.raster.extent <- terra::ext(temp.raster)
+          warning("New extent was bigger than the original. So the max extent was used.",
                   call. = TRUE,
                   immediate. = TRUE)
         }
-        temp.raster <- crop(temp.raster, temp.raster.extent)
+        temp.raster <- terra::crop(temp.raster, temp.raster.extent)
       }else{
         if(buffer == 0){
-          if(temp.clip.extent > extent(temp.raster)){
-            temp.clip.extent <- extent(temp.raster)
-            warning("New extent was bigger than the original. So the max extent was used",
+          if(temp.clip.extent > terra::ext(temp.raster)){
+            temp.clip.extent <- terra::ext(temp.raster)
+            warning("New extent was bigger than the original. So the max extent was used.",
                     call. = TRUE,
                     immediate. = TRUE)
           }
-          temp.raster <- crop(temp.raster, temp.clip.extent)
+          temp.raster <- terra::crop(temp.raster, temp.clip.extent)
         }else{
-          warning("Buffer is negative. Please consider adjusting the extent",
+          warning(paste0("Buffer is negative. Please consider adjusting the extent. The current clipping extent was: ", 
+                         stringr::str_c(as.list(temp.clip.extent), collapse =  " ")),
                   call. = TRUE,
                   immediate. = TRUE)
         }
@@ -127,15 +131,17 @@ clipping.tif  <- function(clip.save.location = "./",
                                      "/clipped_",time.stamp.var,"/",
                                      temp.list.file.names[temp.file],
                                      "_clipped.tif")
-      writeRaster(temp.raster, raster.save.location,
-                  overwrite = TRUE)
+      terra::writeRaster(x = temp.raster, 
+                         filename = raster.save.location,
+                         overwrite = TRUE)
     }else{
       raster.save.location <- paste0(clip.save.location,
                                      "/clipped_",time.stamp.var,"/",
                                      temp.list.file.names[temp.file],
                                      "_clipped.asc")
-      writeRaster(temp.raster, raster.save.location,
-                  format = "ascii", overwrite = TRUE)
+      terra::writeRaster(x = temp.raster, 
+                         filename = raster.save.location,
+                         overwrite = TRUE)
     }
     gc()
   }
@@ -150,39 +156,41 @@ clipping.tif  <- function(clip.save.location = "./",
 #'
 #'@return This function returns ASCII-format raster files to a new directory. This directory is dynamically created.
 #'
-#'@import raster
 #'@import stringr
+#'@import terra
 #'
 #'@examples
+#'\dontrun{
 #'convert.to.asc(save.location = system.file("pictures/", package = "rgdal"))
+#'}
 #'@export
 convert.to.asc <- function(save.location = "./",
                            time.stamp.var = str_replace_all(str_replace_all(paste0(Sys.time()), pattern = ":", replacement = "-"), pattern = " ", replacement = "_")
 ){
   gc()
-  # requireNamespace("raster")
-  # requireNamespace("stringr")
   temp.save.location <- normalizePath(save.location, winslash = "/")
   file.path.list <- list.files(temp.save.location, pattern=".tif", full.names = T)
-  temp.save.location <- paste0(temp.save.location, "/")
-
-  if(!dir.exists(paste0(temp.save.location, "ASCII_files_",time.stamp.var))){
-    dir.create(paste0(temp.save.location, "ASCII_files_",time.stamp.var))
+  temp.save.location <- base::paste0(temp.save.location, "/")
+  
+  if(!base::dir.exists(base::paste0(temp.save.location, "ASCII_files_",time.stamp.var))){
+    base::dir.create(base::paste0(temp.save.location, "ASCII_files_",time.stamp.var))
   }
-  temp.save.location <- paste0(temp.save.location, "ASCII_files_",time.stamp.var,"/")
+  temp.save.location <- base::paste0(temp.save.location, "ASCII_files_",time.stamp.var,"/")
   # print(file.path.list)
-  file.list <- str_remove(file.path.list,
-                          pattern = paste0(
-                            normalizePath(save.location, winslash = "/"), "/"))
-  file.list <- str_remove(file.list, pattern = ".tif")
+  file.list <- stringr::str_remove(file.path.list,
+                                   pattern = base::paste0(
+                                     base::normalizePath(save.location, winslash = "/"), "/"))
+  file.list <- stringr::str_remove(file.list, pattern = ".tif")
   if(length(file.list) >= 1){
     for (layer in 1:length(file.list)) {
       # print(file.list[layer])
       # print(file.path.list[layer])
-      temp.raster <- raster(file.path.list[layer])
+      temp.raster <- terra::rast(file.path.list[layer])
       # temp.raster <- crop(temp.raster, extent(c(5,20,40,55)))
-      writeRaster(temp.raster,paste0(temp.save.location, file.list[layer], ".asc"),
-                  format = "ascii", overwrite = TRUE)
+      terra::writeRaster(x = temp.raster,
+                         filename = paste0(temp.save.location, file.list[layer], ".asc"),
+                         # format = "ascii", 
+                         overwrite = TRUE)
       gc()
     }
   }else{
@@ -202,9 +210,9 @@ convert.to.asc <- function(save.location = "./",
 #'@param time.series string (vector). String input of timeseries vector. \cr Default: \code{NULL}
 #'@param time.stamp.var string. Timestamp to create unique directories for multiple run outputs.\cr Default: \code{stringr::str_replace_all(stringr::str_replace_all(paste0(} \cr \code{Sys.time()),pattern = ":",replacement = "-"))}
 #'
-#'@import raster
-#'@import stringr
 #'@import ncdf4
+#'@import stringr
+#'@import terra
 #'
 #'@export
 stacking.downloaded.data <- function(stack.save.location = "./",
@@ -221,15 +229,15 @@ stacking.downloaded.data <- function(stack.save.location = "./",
        is.element("tmax", parameter.var)|is.element("tmin", parameter.var)|
        is.element("srad", parameter.var)|is.element("wind", parameter.var)|
        is.element("vapr", parameter.var)|is.element("bio10", parameter.var)|
-       is.element("bio", parameter.var))|
+       base::is.element("bio", parameter.var))|
      !(length(c(parameter.var))==1)){
     print(parameter.var)
   }
-
+  
   if(stack.time.series == TRUE & is.null(time.series)){
     stop("A timeseries should be stacked but no timeseries vector is given.")
   }
-
+  
   # units
   var.units <- NULL
   if(parameter.var == "bio"){
@@ -237,23 +245,23 @@ stacking.downloaded.data <- function(stack.save.location = "./",
   }else{
     var.units <- "Month"
   }
-
+  
   temp.list.files <- list.files(stack.save.location,
                                 full.names = TRUE,
                                 recursive = FALSE,
                                 pattern = ".tif")
-  if(length(temp.list.files)==0) stop()
+  if(length(temp.list.files)==0) stop("No Data found!")
   temp.list.file.names <- list.files(stack.save.location,
                                      full.names = FALSE,
                                      recursive = FALSE,
                                      pattern = ".tif")
-  temp.list.file.names <- str_remove(temp.list.file.names,
-                                     pattern = ".tif")
-
+  temp.list.file.names <- stringr::str_remove(temp.list.file.names,
+                                              pattern = ".tif")
+  
   if(stack.clipped == TRUE){
     if(dir.exists(paste0(stack.save.location,"/clipped_", time.stamp.var))){
-      stack.save.location <- c( paste0(stack.save.location,"/clipped_",time.stamp.var)
-                                # , stack.save.location
+      stack.save.location <- c(base::paste0(stack.save.location,
+                                            "/clipped_",time.stamp.var)
       )
     }else{
       stop(paste0("No clipped data found at: '",
@@ -263,10 +271,7 @@ stacking.downloaded.data <- function(stack.save.location = "./",
                   "' and set the parameter 'stack.clipped' to FALSE."))
     }
   }
-  # print(stack.save.location)
   for (directory in stack.save.location) {
-    # print(directory)
-
     temp.stack.files <- list.files(path = directory, full.names = TRUE,
                                    recursive = FALSE,
                                    pattern = ".tif")
@@ -280,8 +285,8 @@ stacking.downloaded.data <- function(stack.save.location = "./",
                                         full.names = FALSE,
                                         recursive = FALSE,
                                         pattern = ".tif")
-    temp.stack.file.names <- str_remove(temp.stack.file.names,
-                                        pattern = ".tif")
+    temp.stack.file.names <- stringr::str_remove(temp.stack.file.names,
+                                                 pattern = ".tif")
     if(length(temp.stack.files)==0){
       temp.stack.file.names <- list.files(path = directory,
                                           full.names = FALSE,
@@ -290,81 +295,54 @@ stacking.downloaded.data <- function(stack.save.location = "./",
       temp.stack.file.names <- str_remove(temp.stack.file.names,
                                           pattern = ".asc")
     }
-
+    
     if(length(temp.stack.files)!=length(time.series)){
       file.name <- basename(temp.stack.files)
-      file.name <- str_sub(file.name, end = str_length(file.name)-4)
+      file.name <- stringr::str_sub(file.name, end = stringr::str_length(file.name)-4)
       time.series <- gsub(".*([0-9]{4}.[0-9]{2}).*",replacement = "\\1", x = file.name)
+      # print(time.series)
     }
-
     if(stack.time.series==FALSE){
-      for (layer in 1:length(temp.stack.files)){
-
-        if(layer != 1){
-          gc()
-          temp.raster <- raster(x = temp.stack.files[layer])
-          temp.raster.stack <- addLayer(temp.raster.stack, temp.raster)
-          rm(temp.raster)
-          gc()
-
-        }else{
-          gc()
-          temp.raster <- raster(x = temp.stack.files[layer])
-          temp.raster.stack <- stack(temp.raster)
-          rm(temp.raster)
-          gc()
-        }
-        if(layer == length(temp.stack.files)){
-
-          ncfname <-  paste0(directory,"/stacked", time.stamp.var, ".nc")
-          gc()
-          writeRaster(x = temp.raster.stack,
+      temp.raster <- lapply(temp.stack.files, terra::rast)
+      temp.raster.stack <- terra::rast(temp.raster)
+      rm(temp.raster)
+      gc()
+      ncfname <-  paste0(directory,"/stacked", time.stamp.var, ".nc")
+      gc()
+      terra::writeCDF(x = temp.raster.stack,
                       filename = ncfname,
                       varname = as.character(parameter.var),
-                      xname = "Longitude",
-                      yname = "Latitude",
                       zname = as.character(var.units),
+                      compression = 5,
                       overwrite = TRUE
-          )
-          gc()
-          nc <- nc_open(ncfname, write = TRUE)
-          ncvar_put(nc = nc, varid = as.character(var.units), vals = as.integer(variable.numbers))
-          nc_close(nc)
-        }
-      }
+                      
+      )
+      gc()
+      nc <- ncdf4::nc_open(ncfname, write = TRUE)
+      ncdf4::ncvar_put(nc = nc, varid = as.character(var.units), vals = as.integer(variable.numbers))
+      ncdf4::nc_close(nc)
+      rm(nc)
+      gc()
     }else{
-      for (layer in 1:length(temp.stack.files)){
-        if(layer != 1){
-          gc()
-          temp.raster <- raster(x = temp.stack.files[layer])
-          temp.raster.stack <- addLayer(temp.raster.stack, temp.raster)
-          rm(temp.raster)
-          gc()
-
-        }else{
-          gc()
-          temp.raster <- raster(x = temp.stack.files[layer])
-          temp.raster.stack <- stack(temp.raster)
-          rm(temp.raster)
-          gc()
-        }
-        if(layer == length(temp.stack.files)){
-          ncfname <-  paste0(directory,"/stacked", time.stamp.var, ".nc")
-          gc()
-          writeRaster(x = temp.raster.stack,
+      temp.raster <- lapply(temp.stack.files, terra::rast)
+      temp.raster.stack <- terra::rast(temp.raster)
+      rm(temp.raster)
+      gc()
+      ncfname <-  paste0(directory,"/stacked", time.stamp.var, ".nc")
+      gc()
+      terra::writeCDF(x = temp.raster.stack,
                       filename = ncfname,
                       varname = as.character(parameter.var),
-                      xname = "Longitude",
-                      yname = "Latitude",
                       zname = as.character(var.units),
+                      compression = 5,
                       overwrite = TRUE
-          )
-          gc()
-          nc <- nc_open(ncfname, write = TRUE)
-          ncvar_put(nc, as.character(var.units), as.integer(str_remove_all(time.series, pattern = "_")))
-          nc_close(nc)
-        }
-      }
+      )
+      gc()
+      nc <- ncdf4::nc_open(ncfname, write = TRUE)
+      ncdf4::ncvar_put(nc, as.character(var.units), as.integer(str_remove_all(time.series, pattern = "_")))
+      ncdf4::nc_close(nc)
+      rm(nc)
+      gc()
     }
   }
 }
@@ -399,35 +377,62 @@ save.citation <- function(save.location = "./",
   gc()
   # requireNamespace("RefManageR")
   save.location <- paste0(normalizePath(save.location, winslash = "/"), "/")
-
+  
   if(dataSetName == "CHELSA"){
+    print(cat("\n"))
     print("Please regard 'https://chelsa-climate.org/downloads/' for correct citations.")
     if(!file.exists(paste0(save.location, "chelsa_citation.bib"))){
       # citation_  <- RefManageR::ReadCrossRef("")
-
+      
       citation_paper <- RefManageR::ReadCrossRef("10.1038/sdata.2017.122")
+      
       citation_CHELSA_cmip5_ts <- RefManageR::ReadCrossRef("10.1038/s41597-020-00587-y")
       citation_PBCOR <- RefManageR::ReadCrossRef("10.1175/JCLI-D-19-0332.1")
+      
+      # citation_envidat.332  <- RefManageR::ReadCrossRef("10.16904/envidat.332") #doi.org/10.16904/envidat.332
+      utils::download.file("https://www.envidat.ch/dataset/bioclim_plus/export/bibtex.bib",
+                           destfile = paste0(tempdir(),"/bib_chelsa.bib"), quiet = T)
+      citation_envidat.332 <- RefManageR::ReadBib(paste0(tempdir(),"/bib_chelsa.bib"))
+      unlink(x = paste0(tempdir(),"/bib_chelsa.bib"))
+      
+      # citation_envidat.228.v2.1  <- RefManageR::ReadCrossRef("10.16904/envidat.228.v2.1") # doi.org/10.16904/envidat.228.v2.1
+      utils::download.file("https://www.envidat.ch/dataset/chelsa-climatologies/export/bibtex.bib",
+                           destfile = paste0(tempdir(),"/bib_chelsa.bib"), quiet = T)
+      citation_envidat.228.v2.1 <- RefManageR::ReadBib(paste0(tempdir(),"/bib_chelsa.bib"))
+      unlink(x = paste0(tempdir(),"/bib_chelsa.bib"))
+      
+      # citation_essd2022212  <- RefManageR::ReadCrossRef("10.5194/essd-2022-212") #doi.org/10.5194/essd-2022-212
+      utils::download.file("https://essd.copernicus.org/articles/14/5573/2022/essd-14-5573-2022.bib",
+                           destfile = paste0(tempdir(),"/bib_chelsa.bib"), quiet = T)
+      citation_essd2022212 <- RefManageR::ReadBib(paste0(tempdir(),"/bib_chelsa.bib"))
+      unlink(x = paste0(tempdir(),"/bib_chelsa.bib"))
+      
 
+      citation_sdata.2017.122 <- RefManageR::ReadCrossRef("10.1038/sdata.2017.122") # 10.1038/sdata.2017.122
       # Data
       citation_data <- RefManageR::ReadCrossRef("10.5061/dryad.kd1d4")
+      
       utils::download.file("https://www.envidat.ch/dataset/eur11/export/bibtex.bib",
                            destfile = paste0(tempdir(),"/bib_chelsa.bib"), quiet = T)
       citation_EUR11 <- RefManageR::ReadBib(paste0(tempdir(),"/bib_chelsa.bib"))
       unlink(x = paste0(tempdir(),"/bib_chelsa.bib"))
+      
       utils::download.file("https://www.envidat.ch/dataset/chelsacruts/export/bibtex.bib",
                            destfile = paste0(tempdir(),"/bib_chelsa.bib"), quiet = T)
       citation_CHELSAcruts_data   <- RefManageR::ReadBib(paste0(tempdir(),"/bib_chelsa.bib"))
       unlink(x = paste0(tempdir(),"/bib_chelsa.bib"))
+      
       utils::download.file("https://www.envidat.ch/dataset/chelsa_cmip5_ts/export/bibtex.bib",
                            destfile = paste0(tempdir(),"/bib_chelsa.bib"), quiet = T)
       citation_CHELSA_cmip5_ts_data  <-  RefManageR::ReadBib(paste0(tempdir(),"/bib_chelsa.bib"))
       unlink(x = paste0(tempdir(),"/bib_chelsa.bib"))
-
+      
+      
+      
       # Old versions
       citation_Version1.0  <- RefManageR::ReadCrossRef("10.1594/WDCC/CHELSA_v1")
       citation_Version1.1  <- RefManageR::ReadCrossRef("10.1594/WDCC/CHELSA_v1_1")
-
+      
       eval(parse(text = paste0("print(c(", paste(ls(pattern = "citation_"), collapse = ","),"))")))
       eval(parse(text = paste0("RefManageR::WriteBib(bib = c(",
                                paste(ls(pattern = "citation_"), collapse = ","),
@@ -435,6 +440,7 @@ save.citation <- function(save.location = "./",
     }
   }
   if (dataSetName == "WorldClim1.4") {
+    print(cat("\n"))
     print("Please regard 'www.worldclim.org' for correct citations.")
     if(!file.exists(paste0(save.location, "Worldclim14_citation.bib"))){
       citation_WC14 <- RefManageR::ReadCrossRef("10.1002/joc.1276")
@@ -444,11 +450,12 @@ save.citation <- function(save.location = "./",
     }
   }
   if (dataSetName == "WorldClim2.1") {
+    print(cat("\n"))
     print("Please regard 'www.worldclim.org' for correct citations.")
     if(!file.exists(paste0(save.location, "WorldClim21_citation.bib"))){
       citation_WC21_hist_Clim_Monthly <- RefManageR::ReadCrossRef("10.1002/joc.5086")
       citation_WC21_CRUTS403 <- RefManageR::ReadCrossRef("10.1002/joc.3711")
-
+      
       print(c(citation_WC21_hist_Clim_Monthly, citation_WC21_CRUTS403))
       RefManageR::WriteBib(bib = c(citation_WC21_hist_Clim_Monthly, citation_WC21_CRUTS403),
                            file = paste0(save.location, "WorldClim21_citation.bib"))
@@ -465,9 +472,10 @@ save.citation <- function(save.location = "./",
 #'@param unique.name logical. Should the .zip-file be named uniquely? If TRUE the current system time is added as a timestamp to create unique directories for multiple run outputs. \cr Default: \code{TRUE}
 #'@param time.stamp.var string. Input of current system time or, if called within another function the initial time of the execution. \cr Default: \code{stringr::str_replace_all(stringr::str_replace_all(paste0(} \cr \code{Sys.time()),pattern = ":",replacement = "-"))}
 #'
-#'@importFrom utils zip
-#'@importFrom utils sessionInfo
 #'@import stringr
+#'@importFrom utils sessionInfo
+#'@importFrom utils zip
+#'
 #'@export
 combine.raw.in.zip <- function(save.location = "./",
                                zip.name = "RAWDATA",
@@ -485,12 +493,12 @@ combine.raw.in.zip <- function(save.location = "./",
       stop("'unique.name' must be logical", call. = TRUE)
     }
   }
-  reset.wd <- getwd()
-  temp.save.location <- paste0(normalizePath(save.location, winslash = "/"), "/")
-  setwd(temp.save.location)
-  file.path.list <- list.files(temp.save.location, pattern=".tif", full.names = T)
+  reset.wd <- base::getwd()
+  temp.save.location <- base::paste0(normalizePath(save.location, winslash = "/"), "/")
+  base::setwd(temp.save.location)
+  file.path.list <- base::list.files(temp.save.location, pattern=".tif", full.names = T)
   file.path.list <- stringr::str_replace(file.path.list, pattern = getwd(), replacement = ".")
-
+  
   if(!str_detect(utils::sessionInfo()$platform, pattern = "linux")){
     if(length(file.path.list) >= 1){
       utils::zip(paste0(zip.name, temp.time.stamp.var,".zip"), file.path.list)
@@ -510,73 +518,58 @@ combine.raw.in.zip <- function(save.location = "./",
 
 #'@title Preprocessing data to get real values
 #'@author Helge Jentsch
-#'@description Takes input RasterLayer, crops it, processes the integer values into double values, mosaiks the cropped and processed data, and returns the mosaiked Rasterfile
+#'@description Takes input SpatRaster, processes the integer values into double values, and returns the SpatRaster.
+#'
+#'@param raster.layer SpatRaster to be processed
+#'
+#'@return SpatRaster
+#'
+#'@import sp
+#'@import terra
+#'
+#'@export
+process.raster.int.doub <- function(raster.layer = NULL){
+  gc()
+  if(is.null(raster.layer)){
+    stop("raster.layer is NULL")
+  }
+  if(class(raster.layer)[1] != "SpatRaster"){
+    stop("raster.layer is not a 'SpatRaster'")
+  }
+  terra::scoff(raster.layer)[[1]] <- 0.1
+  gc()
+  return(raster.layer)
+}
+
+
+#'@title Preprocessing data to undo offsetting values
+#'@author Helge Jentsch
+#'@description Takes input SpatRaster, deletes offset, and returns the SpatRaster.
 #'
-#'@param raster.layer RasterLayer to be processed
+#'@param raster.layer SpatRaster to be processed.
+#'@param offset Numerical value to be offsetted. Default: -273.15.
 #'
-#'@return RasterLayer
+#'@return SpatRaster
 #'
-#'@import raster
 #'@import sp
+#'@import terra
 #'
-process.raster.int.doub <- function(raster.layer = NULL)
-{
+#'@export
+process.raster.offset <- function(raster.layer = NULL, offset = -273.15){
   gc()
   if(is.null(raster.layer)){
     stop("raster.layer is NULL")
   }
-  if(class(raster.layer)[1] != "RasterLayer"){
-    stop("raster.layer is not a 'RasterLayer'")
+  if(class(raster.layer)[1] != "SpatRaster"){
+    stop("raster.layer is not a 'SpatRaster'")
   }
-  # extent_rasterfile <- extent(raster.layer)
-  # # crop
-  # tl <- crop(raster.layer, extent(extent_rasterfile@xmin,
-  #                                (extent_rasterfile@xmin+extent_rasterfile@xmax)/2,
-  #                                (extent_rasterfile@ymin+extent_rasterfile@ymax)/2,
-  #                                extent_rasterfile@ymax)
-  # )
-  # bl <- crop(raster.layer, extent(extent_rasterfile@xmin,
-  #                                (extent_rasterfile@xmin+extent_rasterfile@xmax)/2,
-  #                                extent_rasterfile@ymin,
-  #                                (extent_rasterfile@ymin+extent_rasterfile@ymax)/2)
-  # )
-  # tr <- crop(raster.layer, extent((extent_rasterfile@xmin+extent_rasterfile@xmax)/2,
-  #                                extent_rasterfile@xmax,
-  #                                (extent_rasterfile@ymin+extent_rasterfile@ymax)/2,
-  #                                extent_rasterfile@ymax)
-  # )
-  # br <- crop(raster.layer, extent((extent_rasterfile@xmin+extent_rasterfile@xmax)/2,
-  #                                extent_rasterfile@xmax,
-  #                                extent_rasterfile@ymin,
-  #                                (extent_rasterfile@ymin+extent_rasterfile@ymax)/2)
-  # )
-  # # recalculate like:
-  # # values(raster.temp) <- as.numeric(values(raster.temp)/10)
-  # # values(tl) <- as.numeric(values(tl)/10)
-  # tl <- tl/10
-  # # values(tr) <- as.numeric(values(tr)/10)
-  # tr <- tr/10
-  # # values(bl) <- as.numeric(values(bl)/10)
-  # bl <- bl/10
-  # # values(br) <- as.numeric(values(br)/10)
-  # br <- br/10
-  # # and mosaic:
-  # gc()
-  # top <- mosaic(tl,tr, fun = "mean")
-  # rm(tl, tr)
-  # gc()
-  # bottom <- mosaic(bl,br, fun = "mean")
-  # rm(bl, br)
-  # gc()
-  # raster.layer <- mosaic(top, bottom, fun = "mean")
-  
-  raster.temp <- raster.layer
-  gain(raster.temp) <- 0.1
+  terra::scoff(raster.layer)[[2]] <- offset
   gc()
-  return(raster.temp)
+  return(raster.layer)
 }
 
 
+
 #' @title Get Download Size
 #' @author Helge Jentsch
 #' @description Helper function that returns the download size of a vector of URLs
@@ -601,12 +594,12 @@ getDownloadSize <- function(URLVector){
   }
   return(round(filesizes*0.000001, 2))
   # Download size in MB
-
+  
   # get duration by calculating with https:\/\/gitlab.com\/hrbrmstr\/speedtest
-    # config <- spd_config()
-    # servers <- spd_servers(config=config)
-    # closest_servers <- spd_closest_servers(servers, config=config)
-    # speed <- spd_download_test(close_servers[1,], config=config)
-    # medspeed <- speed$median
-    # cat("Download-Zeit: \n", downloadSize/medspeed, "s \n")
+  # config <- spd_config()
+  # servers <- spd_servers(config=config)
+  # closest_servers <- spd_closest_servers(servers, config=config)
+  # speed <- spd_download_test(close_servers[1,], config=config)
+  # medspeed <- speed$median
+  # cat("Download-Zeit: \n", downloadSize/medspeed, "s \n")
 }
diff --git a/README.md b/README.md
index 69a1c2cab5bab69d2bc1ac3fad8622509a021bef..283c663b7fd08f570aaad9a9664e5c7f696cc85a 100644
--- a/README.md
+++ b/README.md
@@ -5,16 +5,16 @@ To get started please proceed further down under the update section.
 
 _This R-package was developed as a student project for the masters programm Geography at the Universität Hamburg, Germany._
 
-## Update 09.03.2021
+## Update 04.05.2023
 
-As of today a new alpha version is released. 
+As of today a new version of the ClimDatDownloadR is released. 
 If you want to test the ClimDatDownloadR-package please feel free to install the package via
 
 `install.packages("https://gitlab.rrz.uni-hamburg.de/helgejentsch/climdatdownloadr/-/archive/master/climdatdownloadr-master.tar.gz", repos = NULL, type = "source")`
 
 and if you need the dependencies via 
 
-`install.packages(c("gdalUtils", "httr", "ncdf4", "qpdf", "raster", "RCurl", "RefManageR", "rgdal", "stringr", "sf", "sp", "svMisc", "utils"), dependencies = TRUE)`
+`install.packages(c("gdalUtils", "httr", "ncdf4", "qpdf", "raster", "RCurl", "RefManageR", "rgdal", "stringr", "sf", "sp", "svMisc", "terra", "utils"), dependencies = TRUE)`
 
 
 I would appreciate your feedback and possible bug reports. 
@@ -29,7 +29,7 @@ Hello and welcome to the ClimDatDownloadR R-package.
 With this package **cli**mate **dat**asets provided by [Chelsa](http://chelsa-climate.org/) and [WorldClim](https://www.worldclim.org/) can be automatically **download**ed, clipped, and converted with **R**.  
 To start, you'll have to install the package and it's dependencies first, if not already done. Then you can activate the package with the `library`-function.  
 ```{r setup}
-# install.packages(c("gdalUtils", "httr", "ncdf4", "qpdf", "raster", "RCurl", "RefManageR", "rgdal", "stringr", "sf", "sp", "svMisc", "utils"), dependencies = TRUE)
+# install.packages(c("gdalUtils", "httr", "ncdf4", "qpdf", "raster", "RCurl", "RefManageR", "rgdal", "stringr", "sf", "sp", "svMisc", "terra", "utils"), dependencies = TRUE)
 # install.packages("https://gitlab.rrz.uni-hamburg.de/helgejentsch/climdatdownloadr/-/archive/master/climdatdownloadr-master.tar.gz", repos = NULL, type = "source")
 library(ClimDatDownloadR)
 ```
@@ -114,3 +114,5 @@ WorldClim.HistClim.download(
   save.bib.file = TRUE
 )
 ```
+
+To get more information, please proceed [here](./articles/ClimDatDownloadR.html). 
diff --git a/build/vignette.rds b/build/vignette.rds
index 65cd7cfaa06d4d584dd6d8d7eeacbaf13312acc0..d21735aa51ea825212c5d138535de4e413ab1afa 100644
Binary files a/build/vignette.rds and b/build/vignette.rds differ
diff --git a/docs/404.html b/docs/404.html
new file mode 100644
index 0000000000000000000000000000000000000000..99fbfe54e364d7251998c1f2111cc8a69d1c2315
--- /dev/null
+++ b/docs/404.html
@@ -0,0 +1,96 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<meta charset="utf-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>Page not found (404) • ClimDatDownloadR</title>
+<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous">
+<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="bootstrap-toc.css">
+<script src="bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
+<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet">
+<script src="pkgdown.js"></script><meta property="og:title" content="Page not found (404)">
+<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]-->
+</head>
+<body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-title-body">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav">
+<li>
+  <a href="articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="reference/index.html">Reference</a>
+</li>
+      </ul>
+<ul class="nav navbar-nav navbar-right"></ul>
+</div>
+<!--/.nav-collapse -->
+  </div>
+<!--/.container -->
+</div>
+<!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="contents col-md-9">
+    <div class="page-header">
+      <h1>Page not found (404)</h1>
+    </div>
+
+Content not found. Please use links in the navbar.
+
+  </div>
+
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav>
+</div>
+
+</div>
+
+
+
+      <footer><div class="copyright">
+  <p></p>
+<p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p>
+<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer>
+</div>
+
+  
+
+
+  
+
+  </body>
+</html>
diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html
new file mode 100644
index 0000000000000000000000000000000000000000..2250134cfea75133d90f1c223af47a7be930bce2
--- /dev/null
+++ b/docs/LICENSE-text.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>License • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="bootstrap-toc.css"><script src="bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet"><script src="pkgdown.js"></script><meta property="og:title" content="License"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-title-body">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="contents col-md-9">
+    <div class="page-header">
+      <h1>License</h1>
+    </div>
+
+<pre>YEAR: 2020
+COPYRIGHT HOLDER: Helge Jentsch
+
+MIT License
+Copyright (c) 2020 Helge Jentsch
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+</pre>
+
+  </div>
+
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+
+</div>
+
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/articles/ClimDatDownloadR.html b/docs/articles/ClimDatDownloadR.html
new file mode 100644
index 0000000000000000000000000000000000000000..b41502ef3e80fe555fc8fd6e995b106448c8a813
--- /dev/null
+++ b/docs/articles/ClimDatDownloadR.html
@@ -0,0 +1,197 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<meta charset="utf-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>ClimDatDownloadR • ClimDatDownloadR</title>
+<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous">
+<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css">
+<script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
+<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet">
+<script src="../pkgdown.js"></script><meta property="og:title" content="ClimDatDownloadR">
+<meta property="og:description" content="ClimDatDownloadR">
+<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]-->
+</head>
+<body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-article">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav">
+<li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul>
+<ul class="nav navbar-nav navbar-right"></ul>
+</div>
+<!--/.nav-collapse -->
+  </div>
+<!--/.container -->
+</div>
+<!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header toc-ignore">
+      <h1 data-toc-skip>ClimDatDownloadR</h1>
+            
+      
+      
+      <div class="hidden name"><code>ClimDatDownloadR.Rmd</code></div>
+
+    </div>
+
+    
+    
+<div class="section level2">
+<h2 id="a-warm-welcome">A warm welcome<a class="anchor" aria-label="anchor" href="#a-warm-welcome"></a>
+</h2>
+<p>Hello and welcome to the ClimDatDownloadR R-package.</p>
+<p>With this package <strong>cli</strong>mate <strong>dat</strong>asets
+provided by <a href="http://chelsa-climate.org/" class="external-link">Chelsa</a> and <a href="https://www.worldclim.org/" class="external-link">WorldClim</a> can be automatically
+<strong>download</strong>ed, clipped, and converted with
+<strong>R</strong>.</p>
+<p>To start, you’ll have to install the package and it’s dependencies
+first, if not already done. Then you can activate the package with the
+<code>library</code>-function.</p>
+<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r">
+<code class="sourceCode R"><span><span class="co"># install.packages("ClimDatDownloadR", dependencies = TRUE)</span></span>
+<span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va">ClimDatDownloadR</span><span class="op">)</span></span>
+<span><span class="co">#&gt; Loading required package: terra</span></span>
+<span><span class="co">#&gt; terra 1.7.18</span></span></code></pre></div>
+<p>Very well, now that you have the package installed and attached,
+let’s start with the data sets of the climatologies of Chelsa and
+WorldClim.</p>
+</div>
+<div class="section level2">
+<h2 id="download-climatologies">Download Climatologies<a class="anchor" aria-label="anchor" href="#download-climatologies"></a>
+</h2>
+<p>These climatologies are among the most frequently requested data sets
+used mostly for xxx and yyy. In the help pages of <a href="../reference/Chelsa.Clim.download.html">Chelsa.Clim.download()</a>
+and <a href="../reference/WorldClim.HistClim.download.html">WorldClim.HistClim.download()</a>
+you can find further information about the handling of these functions.
+In fact running the functions all by itself bulk-downloads all the
+climatology data sets from the servers.</p>
+<p>Let’s start with a example of the Chelsa climatologies:</p>
+<pre><code><span><span class="fu"><a href="../reference/Chelsa.Clim.download.html">Chelsa.Clim.download</a></span><span class="op">(</span></span>
+<span>  <span class="co"># first you'll have to choose your working directory</span></span>
+<span>  <span class="co"># don't worry about having a directory for every parameter you want to download</span></span>
+<span>  <span class="co"># ClimDatDownloadR sorts this out for you</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>, </span>
+<span>  <span class="co"># now you'll have to choose parameters. </span></span>
+<span>  <span class="co"># since there is the possibility to download more than one data set</span></span>
+<span>  <span class="co"># the parameters must be a string-vector input. </span></span>
+<span>  <span class="co"># Single parameters, however, can be just put in as a string. </span></span>
+<span>  <span class="co"># the valid parameter inputs can be found in the help (linked s.o.)</span></span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"temp"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  <span class="co"># Now, since you chose "temp" and "bio" as input parameters, </span></span>
+<span>  <span class="co"># you can specify the months and bioclim-variables to download. </span></span>
+<span>  <span class="co"># If you want all of them, just leave the default values.</span></span>
+<span>  <span class="co"># It is crutial, however, that the inputs are integer number values.</span></span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">)</span>, <span class="co"># Here January was chosen to be downloaded for demonstration purposes</span></span>
+<span>  bio.var <span class="op">=</span>  <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">)</span>, <span class="co"># Here the first bioclim-variable was chosen to be downloaded for demonstration purposes</span></span>
+<span>  <span class="co"># For Chelsa a newer Version of their climatologies was published in 2019.</span></span>
+<span>  <span class="co"># They still got their old version still hosted on their website. </span></span>
+<span>  <span class="co"># So you can download it as well, if you want to reproduce some research you base your studies on. </span></span>
+<span>  version.var <span class="op">=</span> <span class="st">"1.2"</span>, <span class="co"># Here the newer version is chosen</span></span>
+<span>  <span class="co"># Now you can choose whether you want the data set clipped</span></span>
+<span>  clipping <span class="op">=</span> <span class="cn">TRUE</span>, <span class="co"># Here TRUE was chosen to show a basic introduction to the function</span></span>
+<span>  <span class="co"># Since "clipping" is enganged now you can specify the extent you want to have for your analysis</span></span>
+<span>  <span class="co"># This is possible via the parameters "clip.shapefile", "clip.extent", and "buffer"</span></span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">9</span>,<span class="fl">20</span>,<span class="fl">35</span>,<span class="fl">80</span><span class="op">)</span>, <span class="co"># Here the extent for Europe was used ... </span></span>
+<span>  buffer <span class="op">=</span> <span class="fl">5</span>, <span class="co"># ... with a 5 arc-degree buffer.</span></span>
+<span>  <span class="co"># Now, since some might prefer older file formats there is a possibility to convert </span></span>
+<span>  <span class="co"># clipped files and raw data into ESRI-ASCII format</span></span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>, </span>
+<span>  <span class="co"># now you can stack the data ...</span></span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>, </span>
+<span>  <span class="co"># ... and choose if you want to combine the raw data in a .zip-file ...</span></span>
+<span>  combine.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  <span class="co"># and whether raw data should be deleted.</span></span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  <span class="co"># Finally you are presented with the option to save a bibliography file at the save location. </span></span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre>
+<hr>
+<p>With this showing the basic principle of these functions, here is a
+example of a WorldClim climatology download:</p>
+<pre><code><span><span class="fu"><a href="../reference/WorldClim.HistClim.download.html">WorldClim.HistClim.download</a></span><span class="op">(</span></span>
+<span>  <span class="co"># As you can see, the structure of this function is very similar to the Chelsa-function</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"temp"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">)</span>,</span>
+<span>  <span class="co"># Here the resolution of the downloaded data set must be added</span></span>
+<span>  <span class="co"># If no input is given all resolutions will be downloaded</span></span>
+<span>  resolution <span class="op">=</span> <span class="st">"10m"</span>, <span class="co"># here 10 arc-minutes are chosen</span></span>
+<span>  <span class="co"># WorldClim also recently had an update to version 2.1</span></span>
+<span>  version.var <span class="op">=</span> <span class="st">"2.1"</span>, <span class="co"># Here the newer version is chosen</span></span>
+<span>  clipping <span class="op">=</span> <span class="cn">TRUE</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">9</span>,<span class="fl">20</span>,<span class="fl">35</span>,<span class="fl">80</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">5</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  <span class="co"># here you can choose if you want to keep the downloaded zip-file</span></span>
+<span>  keep.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre>
+</div>
+  </div>
+
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+
+        <nav id="toc" data-toggle="toc"><h2 data-toc-skip>Contents</h2>
+    </nav>
+</div>
+
+</div>
+
+
+
+      <footer><div class="copyright">
+  <p></p>
+<p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p>
+<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer>
+</div>
+
+  
+
+
+  
+
+  </body>
+</html>
diff --git a/docs/articles/index.html b/docs/articles/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..f9199898be81f65f2a6502f7bd91a4dd482b4d83
--- /dev/null
+++ b/docs/articles/index.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Articles • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Articles"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-article-index">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+      <h1>Articles</h1>
+    </div>
+
+    <div class="section ">
+      <h3>All vignettes</h3>
+      <p class="section-desc"></p>
+
+      <dl><dt><a href="ClimDatDownloadR.html">ClimDatDownloadR</a></dt>
+        <dd>
+      </dd></dl></div>
+  </div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/authors.html b/docs/authors.html
new file mode 100644
index 0000000000000000000000000000000000000000..75080e54b2ec6d9586d65ebc2cbc77d3d4dfe3f8
--- /dev/null
+++ b/docs/authors.html
@@ -0,0 +1,103 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Authors and Citation • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="bootstrap-toc.css"><script src="bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet"><script src="pkgdown.js"></script><meta property="og:title" content="Authors and Citation"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-citation-authors">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="contents col-md-9">
+    <div class="section level2 authors-section">
+      <div class="page-header">
+        <h1>Authors</h1>
+      </div>
+
+      
+      <ul class="list-unstyled"><li>
+          <p><strong>Helge Jentsch</strong>. Author, maintainer. <a href="https://orcid.org/0000-0003-4955-8358" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a>
+          </p>
+        </li>
+        <li>
+          <p><strong>Maria Bobrowski</strong>. Author. <a href="https://orcid.org/0000-0002-9660-1614" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a>
+          </p>
+        </li>
+        <li>
+          <p><strong>Johannes Weidinger</strong>. Author. <a href="https://orcid.org/0000-0003-4354-7711" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a>
+          </p>
+        </li>
+        <li>
+          <p><strong>Nadine Kaul</strong>. Contributor. 
+          </p>
+        </li>
+      </ul></div>
+    <div class="section level2 citation-section">
+    <div>
+      <h1 id="citation">Citation</h1>
+      
+    </div>
+    </div>
+
+
+    <p>Jentsch H, Bobrowski M, Weidinger J (2023).
+<em>ClimDatDownloadR: Downloads Climate Data from Chelsa and WorldClim</em>.
+R package version 0.1.7. 
+</p>
+    <pre>@Manual{,
+  title = {ClimDatDownloadR: Downloads Climate Data from Chelsa and WorldClim},
+  author = {Helge Jentsch and Maria Bobrowski and Johannes Weidinger},
+  year = {2023},
+  note = {R package version 0.1.7},
+}</pre>
+
+  </div>
+
+</div>
+
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/bootstrap-toc.css b/docs/bootstrap-toc.css
new file mode 100644
index 0000000000000000000000000000000000000000..5a859415c1f7eacfd94920968bc910e2f1f1427e
--- /dev/null
+++ b/docs/bootstrap-toc.css
@@ -0,0 +1,60 @@
+/*!
+ * Bootstrap Table of Contents v0.4.1 (http://afeld.github.io/bootstrap-toc/)
+ * Copyright 2015 Aidan Feldman
+ * Licensed under MIT (https://github.com/afeld/bootstrap-toc/blob/gh-pages/LICENSE.md) */
+
+/* modified from https://github.com/twbs/bootstrap/blob/94b4076dd2efba9af71f0b18d4ee4b163aa9e0dd/docs/assets/css/src/docs.css#L548-L601 */
+
+/* All levels of nav */
+nav[data-toggle='toc'] .nav > li > a {
+  display: block;
+  padding: 4px 20px;
+  font-size: 13px;
+  font-weight: 500;
+  color: #767676;
+}
+nav[data-toggle='toc'] .nav > li > a:hover,
+nav[data-toggle='toc'] .nav > li > a:focus {
+  padding-left: 19px;
+  color: #563d7c;
+  text-decoration: none;
+  background-color: transparent;
+  border-left: 1px solid #563d7c;
+}
+nav[data-toggle='toc'] .nav > .active > a,
+nav[data-toggle='toc'] .nav > .active:hover > a,
+nav[data-toggle='toc'] .nav > .active:focus > a {
+  padding-left: 18px;
+  font-weight: bold;
+  color: #563d7c;
+  background-color: transparent;
+  border-left: 2px solid #563d7c;
+}
+
+/* Nav: second level (shown on .active) */
+nav[data-toggle='toc'] .nav .nav {
+  display: none; /* Hide by default, but at >768px, show it */
+  padding-bottom: 10px;
+}
+nav[data-toggle='toc'] .nav .nav > li > a {
+  padding-top: 1px;
+  padding-bottom: 1px;
+  padding-left: 30px;
+  font-size: 12px;
+  font-weight: normal;
+}
+nav[data-toggle='toc'] .nav .nav > li > a:hover,
+nav[data-toggle='toc'] .nav .nav > li > a:focus {
+  padding-left: 29px;
+}
+nav[data-toggle='toc'] .nav .nav > .active > a,
+nav[data-toggle='toc'] .nav .nav > .active:hover > a,
+nav[data-toggle='toc'] .nav .nav > .active:focus > a {
+  padding-left: 28px;
+  font-weight: 500;
+}
+
+/* from https://github.com/twbs/bootstrap/blob/e38f066d8c203c3e032da0ff23cd2d6098ee2dd6/docs/assets/css/src/docs.css#L631-L634 */
+nav[data-toggle='toc'] .nav > .active > ul {
+  display: block;
+}
diff --git a/docs/bootstrap-toc.js b/docs/bootstrap-toc.js
new file mode 100644
index 0000000000000000000000000000000000000000..1cdd573b20f53b3ebe31c021e154c4338ca456af
--- /dev/null
+++ b/docs/bootstrap-toc.js
@@ -0,0 +1,159 @@
+/*!
+ * Bootstrap Table of Contents v0.4.1 (http://afeld.github.io/bootstrap-toc/)
+ * Copyright 2015 Aidan Feldman
+ * Licensed under MIT (https://github.com/afeld/bootstrap-toc/blob/gh-pages/LICENSE.md) */
+(function() {
+  'use strict';
+
+  window.Toc = {
+    helpers: {
+      // return all matching elements in the set, or their descendants
+      findOrFilter: function($el, selector) {
+        // http://danielnouri.org/notes/2011/03/14/a-jquery-find-that-also-finds-the-root-element/
+        // http://stackoverflow.com/a/12731439/358804
+        var $descendants = $el.find(selector);
+        return $el.filter(selector).add($descendants).filter(':not([data-toc-skip])');
+      },
+
+      generateUniqueIdBase: function(el) {
+        var text = $(el).text();
+        var anchor = text.trim().toLowerCase().replace(/[^A-Za-z0-9]+/g, '-');
+        return anchor || el.tagName.toLowerCase();
+      },
+
+      generateUniqueId: function(el) {
+        var anchorBase = this.generateUniqueIdBase(el);
+        for (var i = 0; ; i++) {
+          var anchor = anchorBase;
+          if (i > 0) {
+            // add suffix
+            anchor += '-' + i;
+          }
+          // check if ID already exists
+          if (!document.getElementById(anchor)) {
+            return anchor;
+          }
+        }
+      },
+
+      generateAnchor: function(el) {
+        if (el.id) {
+          return el.id;
+        } else {
+          var anchor = this.generateUniqueId(el);
+          el.id = anchor;
+          return anchor;
+        }
+      },
+
+      createNavList: function() {
+        return $('<ul class="nav"></ul>');
+      },
+
+      createChildNavList: function($parent) {
+        var $childList = this.createNavList();
+        $parent.append($childList);
+        return $childList;
+      },
+
+      generateNavEl: function(anchor, text) {
+        var $a = $('<a></a>');
+        $a.attr('href', '#' + anchor);
+        $a.text(text);
+        var $li = $('<li></li>');
+        $li.append($a);
+        return $li;
+      },
+
+      generateNavItem: function(headingEl) {
+        var anchor = this.generateAnchor(headingEl);
+        var $heading = $(headingEl);
+        var text = $heading.data('toc-text') || $heading.text();
+        return this.generateNavEl(anchor, text);
+      },
+
+      // Find the first heading level (`<h1>`, then `<h2>`, etc.) that has more than one element. Defaults to 1 (for `<h1>`).
+      getTopLevel: function($scope) {
+        for (var i = 1; i <= 6; i++) {
+          var $headings = this.findOrFilter($scope, 'h' + i);
+          if ($headings.length > 1) {
+            return i;
+          }
+        }
+
+        return 1;
+      },
+
+      // returns the elements for the top level, and the next below it
+      getHeadings: function($scope, topLevel) {
+        var topSelector = 'h' + topLevel;
+
+        var secondaryLevel = topLevel + 1;
+        var secondarySelector = 'h' + secondaryLevel;
+
+        return this.findOrFilter($scope, topSelector + ',' + secondarySelector);
+      },
+
+      getNavLevel: function(el) {
+        return parseInt(el.tagName.charAt(1), 10);
+      },
+
+      populateNav: function($topContext, topLevel, $headings) {
+        var $context = $topContext;
+        var $prevNav;
+
+        var helpers = this;
+        $headings.each(function(i, el) {
+          var $newNav = helpers.generateNavItem(el);
+          var navLevel = helpers.getNavLevel(el);
+
+          // determine the proper $context
+          if (navLevel === topLevel) {
+            // use top level
+            $context = $topContext;
+          } else if ($prevNav && $context === $topContext) {
+            // create a new level of the tree and switch to it
+            $context = helpers.createChildNavList($prevNav);
+          } // else use the current $context
+
+          $context.append($newNav);
+
+          $prevNav = $newNav;
+        });
+      },
+
+      parseOps: function(arg) {
+        var opts;
+        if (arg.jquery) {
+          opts = {
+            $nav: arg
+          };
+        } else {
+          opts = arg;
+        }
+        opts.$scope = opts.$scope || $(document.body);
+        return opts;
+      }
+    },
+
+    // accepts a jQuery object, or an options object
+    init: function(opts) {
+      opts = this.helpers.parseOps(opts);
+
+      // ensure that the data attribute is in place for styling
+      opts.$nav.attr('data-toggle', 'toc');
+
+      var $topContext = this.helpers.createChildNavList(opts.$nav);
+      var topLevel = this.helpers.getTopLevel(opts.$scope);
+      var $headings = this.helpers.getHeadings(opts.$scope, topLevel);
+      this.helpers.populateNav($topContext, topLevel, $headings);
+    }
+  };
+
+  $(function() {
+    $('nav[data-toggle="toc"]').each(function(i, el) {
+      var $nav = $(el);
+      Toc.init($nav);
+    });
+  });
+})();
diff --git a/docs/docsearch.css b/docs/docsearch.css
new file mode 100644
index 0000000000000000000000000000000000000000..e5f1fe1dfa2c34c51fe941829b511acd8c763301
--- /dev/null
+++ b/docs/docsearch.css
@@ -0,0 +1,148 @@
+/* Docsearch -------------------------------------------------------------- */
+/*
+  Source: https://github.com/algolia/docsearch/
+  License: MIT
+*/
+
+.algolia-autocomplete {
+  display: block;
+  -webkit-box-flex: 1;
+  -ms-flex: 1;
+  flex: 1
+}
+
+.algolia-autocomplete .ds-dropdown-menu {
+  width: 100%;
+  min-width: none;
+  max-width: none;
+  padding: .75rem 0;
+  background-color: #fff;
+  background-clip: padding-box;
+  border: 1px solid rgba(0, 0, 0, .1);
+  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .175);
+}
+
+@media (min-width:768px) {
+  .algolia-autocomplete .ds-dropdown-menu {
+      width: 175%
+  }
+}
+
+.algolia-autocomplete .ds-dropdown-menu::before {
+  display: none
+}
+
+.algolia-autocomplete .ds-dropdown-menu [class^=ds-dataset-] {
+  padding: 0;
+  background-color: rgb(255,255,255);
+  border: 0;
+  max-height: 80vh;
+}
+
+.algolia-autocomplete .ds-dropdown-menu .ds-suggestions {
+  margin-top: 0
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion {
+  padding: 0;
+  overflow: visible
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion--category-header {
+  padding: .125rem 1rem;
+  margin-top: 0;
+  font-size: 1.3em;
+  font-weight: 500;
+  color: #00008B;
+  border-bottom: 0
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion--wrapper {
+    float: none;
+    padding-top: 0
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
+  float: none;
+  width: auto;
+  padding: 0;
+  text-align: left
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion--content {
+  float: none;
+  width: auto;
+  padding: 0
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion--content::before {
+  display: none
+}
+
+.algolia-autocomplete .ds-suggestion:not(:first-child) .algolia-docsearch-suggestion--category-header {
+  padding-top: .75rem;
+  margin-top: .75rem;
+  border-top: 1px solid rgba(0, 0, 0, .1)
+}
+
+.algolia-autocomplete .ds-suggestion .algolia-docsearch-suggestion--subcategory-column {
+  display: block;
+  padding: .1rem 1rem;
+  margin-bottom: 0.1;
+  font-size: 1.0em;
+  font-weight: 400
+  /* display: none */
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion--title {
+  display: block;
+  padding: .25rem 1rem;
+  margin-bottom: 0;
+  font-size: 0.9em;
+  font-weight: 400
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion--text {
+  padding: 0 1rem .5rem;
+  margin-top: -.25rem;
+  font-size: 0.8em;
+  font-weight: 400;
+  line-height: 1.25
+}
+
+.algolia-autocomplete .algolia-docsearch-footer {
+  width: 110px;
+  height: 20px;
+  z-index: 3;
+  margin-top: 10.66667px;
+  float: right;
+  font-size: 0;
+  line-height: 0;
+}
+
+.algolia-autocomplete .algolia-docsearch-footer--logo {
+  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 130 18' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient x1='-36.868%' y1='134.936%' x2='129.432%' y2='-27.7%' id='a'><stop stop-color='%2300AEFF' offset='0%'/><stop stop-color='%233369E7' offset='100%'/></linearGradient></defs><g fill='none' fill-rule='evenodd'><path d='M59.399.022h13.299a2.372 2.372 0 0 1 2.377 2.364V15.62a2.372 2.372 0 0 1-2.377 2.364H59.399a2.372 2.372 0 0 1-2.377-2.364V2.381A2.368 2.368 0 0 1 59.399.022z' fill='url(%23a)'/><path d='M66.257 4.56c-2.815 0-5.1 2.272-5.1 5.078 0 2.806 2.284 5.072 5.1 5.072 2.815 0 5.1-2.272 5.1-5.078 0-2.806-2.279-5.072-5.1-5.072zm0 8.652c-1.983 0-3.593-1.602-3.593-3.574 0-1.972 1.61-3.574 3.593-3.574 1.983 0 3.593 1.602 3.593 3.574a3.582 3.582 0 0 1-3.593 3.574zm0-6.418v2.664c0 .076.082.131.153.093l2.377-1.226c.055-.027.071-.093.044-.147a2.96 2.96 0 0 0-2.465-1.487c-.055 0-.11.044-.11.104l.001-.001zm-3.33-1.956l-.312-.311a.783.783 0 0 0-1.106 0l-.372.37a.773.773 0 0 0 0 1.101l.307.305c.049.049.121.038.164-.011.181-.245.378-.479.597-.697.225-.223.455-.42.707-.599.055-.033.06-.109.016-.158h-.001zm5.001-.806v-.616a.781.781 0 0 0-.783-.779h-1.824a.78.78 0 0 0-.783.779v.632c0 .071.066.12.137.104a5.736 5.736 0 0 1 1.588-.223c.52 0 1.035.071 1.534.207a.106.106 0 0 0 .131-.104z' fill='%23FFF'/><path d='M102.162 13.762c0 1.455-.372 2.517-1.123 3.193-.75.676-1.895 1.013-3.44 1.013-.564 0-1.736-.109-2.673-.316l.345-1.689c.783.163 1.819.207 2.361.207.86 0 1.473-.174 1.84-.523.367-.349.548-.866.548-1.553v-.349a6.374 6.374 0 0 1-.838.316 4.151 4.151 0 0 1-1.194.158 4.515 4.515 0 0 1-1.616-.278 3.385 3.385 0 0 1-1.254-.817 3.744 3.744 0 0 1-.811-1.351c-.192-.539-.29-1.504-.29-2.212 0-.665.104-1.498.307-2.054a3.925 3.925 0 0 1 .904-1.433 4.124 4.124 0 0 1 1.441-.926 5.31 5.31 0 0 1 1.945-.365c.696 0 1.337.087 1.961.191a15.86 15.86 0 0 1 1.588.332v8.456h-.001zm-5.954-4.206c0 .893.197 1.885.592 2.299.394.414.904.621 1.528.621.34 0 .663-.049.964-.142a2.75 2.75 0 0 0 .734-.332v-5.29a8.531 8.531 0 0 0-1.413-.18c-.778-.022-1.369.294-1.786.801-.411.507-.619 1.395-.619 2.223zm16.12 0c0 .719-.104 1.264-.318 1.858a4.389 4.389 0 0 1-.904 1.52c-.389.42-.854.746-1.402.975-.548.229-1.391.36-1.813.36-.422-.005-1.26-.125-1.802-.36a4.088 4.088 0 0 1-1.397-.975 4.486 4.486 0 0 1-.909-1.52 5.037 5.037 0 0 1-.329-1.858c0-.719.099-1.411.318-1.999.219-.588.526-1.09.92-1.509.394-.42.865-.741 1.402-.97a4.547 4.547 0 0 1 1.786-.338 4.69 4.69 0 0 1 1.791.338c.548.229 1.019.55 1.402.97.389.42.69.921.909 1.509.23.588.345 1.28.345 1.999h.001zm-2.191.005c0-.921-.203-1.689-.597-2.223-.394-.539-.948-.806-1.654-.806-.707 0-1.26.267-1.654.806-.394.539-.586 1.302-.586 2.223 0 .932.197 1.558.592 2.098.394.545.948.812 1.654.812.707 0 1.26-.272 1.654-.812.394-.545.592-1.166.592-2.098h-.001zm6.962 4.707c-3.511.016-3.511-2.822-3.511-3.274L113.583.926l2.142-.338v10.003c0 .256 0 1.88 1.375 1.885v1.792h-.001zm3.774 0h-2.153V5.072l2.153-.338v9.534zm-1.079-10.542c.718 0 1.304-.578 1.304-1.291 0-.714-.581-1.291-1.304-1.291-.723 0-1.304.578-1.304 1.291 0 .714.586 1.291 1.304 1.291zm6.431 1.013c.707 0 1.304.087 1.786.262.482.174.871.42 1.156.73.285.311.488.735.608 1.182.126.447.186.937.186 1.476v5.481a25.24 25.24 0 0 1-1.495.251c-.668.098-1.419.147-2.251.147a6.829 6.829 0 0 1-1.517-.158 3.213 3.213 0 0 1-1.178-.507 2.455 2.455 0 0 1-.761-.904c-.181-.37-.274-.893-.274-1.438 0-.523.104-.855.307-1.215.208-.36.487-.654.838-.883a3.609 3.609 0 0 1 1.227-.49 7.073 7.073 0 0 1 2.202-.103c.263.027.537.076.833.147v-.349c0-.245-.027-.479-.088-.697a1.486 1.486 0 0 0-.307-.583c-.148-.169-.34-.3-.581-.392a2.536 2.536 0 0 0-.915-.163c-.493 0-.942.06-1.353.131-.411.071-.75.153-1.008.245l-.257-1.749c.268-.093.668-.185 1.183-.278a9.335 9.335 0 0 1 1.66-.142l-.001-.001zm.181 7.731c.657 0 1.145-.038 1.484-.104v-2.168a5.097 5.097 0 0 0-1.978-.104c-.241.033-.46.098-.652.191a1.167 1.167 0 0 0-.466.392c-.121.169-.175.267-.175.523 0 .501.175.79.493.981.323.196.75.289 1.293.289h.001zM84.109 4.794c.707 0 1.304.087 1.786.262.482.174.871.42 1.156.73.29.316.487.735.608 1.182.126.447.186.937.186 1.476v5.481a25.24 25.24 0 0 1-1.495.251c-.668.098-1.419.147-2.251.147a6.829 6.829 0 0 1-1.517-.158 3.213 3.213 0 0 1-1.178-.507 2.455 2.455 0 0 1-.761-.904c-.181-.37-.274-.893-.274-1.438 0-.523.104-.855.307-1.215.208-.36.487-.654.838-.883a3.609 3.609 0 0 1 1.227-.49 7.073 7.073 0 0 1 2.202-.103c.257.027.537.076.833.147v-.349c0-.245-.027-.479-.088-.697a1.486 1.486 0 0 0-.307-.583c-.148-.169-.34-.3-.581-.392a2.536 2.536 0 0 0-.915-.163c-.493 0-.942.06-1.353.131-.411.071-.75.153-1.008.245l-.257-1.749c.268-.093.668-.185 1.183-.278a8.89 8.89 0 0 1 1.66-.142l-.001-.001zm.186 7.736c.657 0 1.145-.038 1.484-.104v-2.168a5.097 5.097 0 0 0-1.978-.104c-.241.033-.46.098-.652.191a1.167 1.167 0 0 0-.466.392c-.121.169-.175.267-.175.523 0 .501.175.79.493.981.318.191.75.289 1.293.289h.001zm8.682 1.738c-3.511.016-3.511-2.822-3.511-3.274L89.461.926l2.142-.338v10.003c0 .256 0 1.88 1.375 1.885v1.792h-.001z' fill='%23182359'/><path d='M5.027 11.025c0 .698-.252 1.246-.757 1.644-.505.397-1.201.596-2.089.596-.888 0-1.615-.138-2.181-.414v-1.214c.358.168.739.301 1.141.397.403.097.778.145 1.125.145.508 0 .884-.097 1.125-.29a.945.945 0 0 0 .363-.779.978.978 0 0 0-.333-.747c-.222-.204-.68-.446-1.375-.725-.716-.29-1.221-.621-1.515-.994-.294-.372-.44-.82-.44-1.343 0-.655.233-1.171.698-1.547.466-.376 1.09-.564 1.875-.564.752 0 1.5.165 2.245.494l-.408 1.047c-.698-.294-1.321-.44-1.869-.44-.415 0-.73.09-.945.271a.89.89 0 0 0-.322.717c0 .204.043.379.129.524.086.145.227.282.424.411.197.129.551.299 1.063.51.577.24.999.464 1.268.671.269.208.466.442.591.704.125.261.188.569.188.924l-.001.002zm3.98 2.24c-.924 0-1.646-.269-2.167-.808-.521-.539-.782-1.281-.782-2.226 0-.97.242-1.733.725-2.288.483-.555 1.148-.833 1.993-.833.784 0 1.404.238 1.858.714.455.476.682 1.132.682 1.966v.682H7.357c.018.577.174 1.02.467 1.329.294.31.707.465 1.241.465.351 0 .678-.033.98-.099a5.1 5.1 0 0 0 .975-.33v1.026a3.865 3.865 0 0 1-.935.312 5.723 5.723 0 0 1-1.08.091l.002-.001zm-.231-5.199c-.401 0-.722.127-.964.381s-.386.625-.432 1.112h2.696c-.007-.491-.125-.862-.354-1.115-.229-.252-.544-.379-.945-.379l-.001.001zm7.692 5.092l-.252-.827h-.043c-.286.362-.575.608-.865.739-.29.131-.662.196-1.117.196-.584 0-1.039-.158-1.367-.473-.328-.315-.491-.761-.491-1.337 0-.612.227-1.074.682-1.386.455-.312 1.148-.482 2.079-.51l1.026-.032v-.317c0-.38-.089-.663-.266-.851-.177-.188-.452-.282-.824-.282-.304 0-.596.045-.876.134a6.68 6.68 0 0 0-.806.317l-.408-.902a4.414 4.414 0 0 1 1.058-.384 4.856 4.856 0 0 1 1.085-.132c.756 0 1.326.165 1.711.494.385.329.577.847.577 1.552v4.002h-.902l-.001-.001zm-1.88-.859c.458 0 .826-.128 1.104-.384.278-.256.416-.615.416-1.077v-.516l-.763.032c-.594.021-1.027.121-1.297.298s-.406.448-.406.814c0 .265.079.47.236.615.158.145.394.218.709.218h.001zm7.557-5.189c.254 0 .464.018.628.054l-.124 1.176a2.383 2.383 0 0 0-.559-.064c-.505 0-.914.165-1.227.494-.313.329-.47.757-.47 1.284v3.105h-1.262V7.218h.988l.167 1.047h.064c.197-.354.454-.636.771-.843a1.83 1.83 0 0 1 1.023-.312h.001zm4.125 6.155c-.899 0-1.582-.262-2.049-.787-.467-.525-.701-1.277-.701-2.259 0-.999.244-1.767.733-2.304.489-.537 1.195-.806 2.119-.806.627 0 1.191.116 1.692.349l-.381 1.015c-.534-.208-.974-.312-1.321-.312-1.028 0-1.542.682-1.542 2.046 0 .666.128 1.166.384 1.501.256.335.631.502 1.125.502a3.23 3.23 0 0 0 1.595-.419v1.101a2.53 2.53 0 0 1-.722.285 4.356 4.356 0 0 1-.932.086v.002zm8.277-.107h-1.268V9.506c0-.458-.092-.8-.277-1.026-.184-.226-.477-.338-.878-.338-.53 0-.919.158-1.168.475-.249.317-.373.848-.373 1.593v2.949h-1.262V4.801h1.262v2.122c0 .34-.021.704-.064 1.09h.081a1.76 1.76 0 0 1 .717-.666c.306-.158.663-.236 1.072-.236 1.439 0 2.159.725 2.159 2.175v3.873l-.001-.001zm7.649-6.048c.741 0 1.319.269 1.732.806.414.537.62 1.291.62 2.261 0 .974-.209 1.732-.628 2.275-.419.542-1.001.814-1.746.814-.752 0-1.336-.27-1.751-.811h-.086l-.231.704h-.945V4.801h1.262v1.987l-.021.655-.032.553h.054c.401-.591.992-.886 1.772-.886zm-.328 1.031c-.508 0-.875.149-1.098.448-.224.299-.339.799-.346 1.501v.086c0 .723.115 1.247.344 1.571.229.324.603.486 1.123.486.448 0 .787-.177 1.018-.532.231-.354.346-.867.346-1.536 0-1.35-.462-2.025-1.386-2.025l-.001.001zm3.244-.924h1.375l1.209 3.368c.183.48.304.931.365 1.354h.043c.032-.197.091-.436.177-.717.086-.281.541-1.616 1.364-4.004h1.364l-2.541 6.73c-.462 1.235-1.232 1.853-2.31 1.853-.279 0-.551-.03-.816-.091v-.999c.19.043.406.064.65.064.609 0 1.037-.353 1.284-1.058l.22-.559-2.385-5.941h.001z' fill='%231D3657'/></g></svg>");
+  background-repeat: no-repeat;
+  background-position: 50%;
+  background-size: 100%;
+  overflow: hidden;
+  text-indent: -9000px;
+  width: 100%;
+  height: 100%;
+  display: block;
+  transform: translate(-8px);
+}
+
+.algolia-autocomplete .algolia-docsearch-suggestion--highlight {
+  color: #FF8C00;
+  background: rgba(232, 189, 54, 0.1)
+}
+
+
+.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
+  box-shadow: inset 0 -2px 0 0 rgba(105, 105, 105, .5)
+}
+
+.algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content {
+  background-color: rgba(192, 192, 192, .15)
+}
diff --git a/docs/docsearch.js b/docs/docsearch.js
new file mode 100644
index 0000000000000000000000000000000000000000..b35504cd3a282816130a16881f3ebeead9c1bcb4
--- /dev/null
+++ b/docs/docsearch.js
@@ -0,0 +1,85 @@
+$(function() {
+
+  // register a handler to move the focus to the search bar
+  // upon pressing shift + "/" (i.e. "?")
+  $(document).on('keydown', function(e) {
+    if (e.shiftKey && e.keyCode == 191) {
+      e.preventDefault();
+      $("#search-input").focus();
+    }
+  });
+
+  $(document).ready(function() {
+    // do keyword highlighting
+    /* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */
+    var mark = function() {
+
+      var referrer = document.URL ;
+      var paramKey = "q" ;
+
+      if (referrer.indexOf("?") !== -1) {
+        var qs = referrer.substr(referrer.indexOf('?') + 1);
+        var qs_noanchor = qs.split('#')[0];
+        var qsa = qs_noanchor.split('&');
+        var keyword = "";
+
+        for (var i = 0; i < qsa.length; i++) {
+          var currentParam = qsa[i].split('=');
+
+          if (currentParam.length !== 2) {
+            continue;
+          }
+
+          if (currentParam[0] == paramKey) {
+            keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20"));
+          }
+        }
+
+        if (keyword !== "") {
+          $(".contents").unmark({
+            done: function() {
+              $(".contents").mark(keyword);
+            }
+          });
+        }
+      }
+    };
+
+    mark();
+  });
+});
+
+/* Search term highlighting ------------------------------*/
+
+function matchedWords(hit) {
+  var words = [];
+
+  var hierarchy = hit._highlightResult.hierarchy;
+  // loop to fetch from lvl0, lvl1, etc.
+  for (var idx in hierarchy) {
+    words = words.concat(hierarchy[idx].matchedWords);
+  }
+
+  var content = hit._highlightResult.content;
+  if (content) {
+    words = words.concat(content.matchedWords);
+  }
+
+  // return unique words
+  var words_uniq = [...new Set(words)];
+  return words_uniq;
+}
+
+function updateHitURL(hit) {
+
+  var words = matchedWords(hit);
+  var url = "";
+
+  if (hit.anchor) {
+    url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor;
+  } else {
+    url = hit.url + '?q=' + escape(words.join(" "));
+  }
+
+  return url;
+}
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..d99c3cca50e163e0d3b5796b249718ca5d3f8c34
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,133 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<meta charset="utf-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>Downloads Climate Data from Chelsa and WorldClim • ClimDatDownloadR</title>
+<!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous">
+<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="bootstrap-toc.css">
+<script src="bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous">
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
+<!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="pkgdown.css" rel="stylesheet">
+<script src="pkgdown.js"></script><meta property="og:title" content="Downloads Climate Data from Chelsa and WorldClim">
+<meta property="og:description" content="This package `ClimDatDownloadR` provides functions to download, pre-process and 
+    manage CHELSA and Worldclim climate data sets in respective available 
+    spatial and temporal resolutions. The output is provided as GEOTIFF, 
+    ASCII, or netCDF format. The package's main purpose is to simplify and 
+    automate the downloading and pre-processing workflows. 
+    We are not redistributing the climate data sets.
+    This work is based on work by 
+    Karger et al. (2017) &lt;doi:10.1038/sdata.2017.122&gt; (CHELSA), 
+    Hijmans et al. (2005) &lt;doi:10.1002/joc.1276&gt; (WorldClim 1.4), 
+    and Fick and Hijmans (2017) &lt;doi:10.1002/joc.5086&gt; (WorldClim 2.1). 
+    A applied comparison of the two data sets is given by 
+    Bobrowski &amp; Schickhoff 2017 &lt;doi:10.1016/j.ecolmodel.2017.05.021&gt;.">
+<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]-->
+</head>
+<body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-home">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav">
+<li>
+  <a href="articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="reference/index.html">Reference</a>
+</li>
+      </ul>
+<ul class="nav navbar-nav navbar-right"></ul>
+</div>
+<!--/.nav-collapse -->
+  </div>
+<!--/.container -->
+</div>
+<!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="contents col-md-9">
+<div class="section level2">
+<h2 id="welcome-to-the-help-page-of-climdatdownloadr">Welcome to the help-page of ClimDatDownloadR<a class="anchor" aria-label="anchor" href="#welcome-to-the-help-page-of-climdatdownloadr"></a>
+</h2>
+<p>To get started please proceed <a href="./articles/ClimDatDownloadR.html">here</a>.</p>
+<p><em>This R-package was developed as a student project for the masters programm Geography at the Universität Hamburg, Germany.</em></p>
+</div>
+  </div>
+
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <div class="license">
+<h2 data-toc-skip>License</h2>
+<ul class="list-unstyled">
+<li>
+<a href="https://opensource.org/licenses/mit-license.php" class="external-link">MIT</a> + file <a href="LICENSE-text.html">LICENSE</a>
+</li>
+</ul>
+</div>
+
+
+<div class="citation">
+<h2 data-toc-skip>Citation</h2>
+<ul class="list-unstyled">
+<li><a href="authors.html#citation">Citing ClimDatDownloadR</a></li>
+</ul>
+</div>
+
+<div class="developers">
+<h2 data-toc-skip>Developers</h2>
+<ul class="list-unstyled">
+<li>Helge Jentsch <br><small class="roles"> Author, maintainer </small> <a href="https://orcid.org/0000-0003-4955-8358" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a> </li>
+<li>Maria Bobrowski <br><small class="roles"> Author </small> <a href="https://orcid.org/0000-0002-9660-1614" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a> </li>
+<li>Johannes Weidinger <br><small class="roles"> Author </small> <a href="https://orcid.org/0000-0003-4354-7711" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a> </li>
+<li><a href="authors.html">More about authors...</a></li>
+</ul>
+</div>
+
+
+
+  </div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p>
+<p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p>
+<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer>
+</div>
+
+  
+
+
+  
+
+  </body>
+</html>
diff --git a/docs/link.svg b/docs/link.svg
new file mode 100644
index 0000000000000000000000000000000000000000..88ad82769b87f10725c57dca6fcf41b4bffe462c
--- /dev/null
+++ b/docs/link.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
+<style type="text/css">
+	.st0{fill:#75AADB;}
+</style>
+<path class="st0" d="M4,11.3h1.3v1.3H4c-2,0-4-2.3-4-4.7s2.1-4.7,4-4.7h5.3c1.9,0,4,2.3,4,4.7c0,1.9-1.2,3.6-2.7,4.3v-1.5
+	C11.4,10.2,12,9.1,12,8c0-1.7-1.4-3.3-2.7-3.3H4C2.7,4.7,1.3,6.3,1.3,8S2.7,11.3,4,11.3z M16,7.3h-1.3v1.3H16c1.3,0,2.7,1.6,2.7,3.3
+	s-1.4,3.3-2.7,3.3h-5.3C9.4,15.3,8,13.7,8,12c0-1.1,0.6-2.2,1.3-2.8V7.7C7.9,8.4,6.7,10.1,6.7,12c0,2.4,2.1,4.7,4,4.7H16
+	c1.9,0,4-2.3,4-4.7S18,7.3,16,7.3z"/>
+</svg>
diff --git a/docs/pkgdown.css b/docs/pkgdown.css
new file mode 100644
index 0000000000000000000000000000000000000000..80ea5b838a4d8f24ae023bbf3582a8079aadbf66
--- /dev/null
+++ b/docs/pkgdown.css
@@ -0,0 +1,384 @@
+/* Sticky footer */
+
+/**
+ * Basic idea: https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
+ * Details: https://github.com/philipwalton/solved-by-flexbox/blob/master/assets/css/components/site.css
+ *
+ * .Site -> body > .container
+ * .Site-content -> body > .container .row
+ * .footer -> footer
+ *
+ * Key idea seems to be to ensure that .container and __all its parents__
+ * have height set to 100%
+ *
+ */
+
+html, body {
+  height: 100%;
+}
+
+body {
+  position: relative;
+}
+
+body > .container {
+  display: flex;
+  height: 100%;
+  flex-direction: column;
+}
+
+body > .container .row {
+  flex: 1 0 auto;
+}
+
+footer {
+  margin-top: 45px;
+  padding: 35px 0 36px;
+  border-top: 1px solid #e5e5e5;
+  color: #666;
+  display: flex;
+  flex-shrink: 0;
+}
+footer p {
+  margin-bottom: 0;
+}
+footer div {
+  flex: 1;
+}
+footer .pkgdown {
+  text-align: right;
+}
+footer p {
+  margin-bottom: 0;
+}
+
+img.icon {
+  float: right;
+}
+
+/* Ensure in-page images don't run outside their container */
+.contents img {
+  max-width: 100%;
+  height: auto;
+}
+
+/* Fix bug in bootstrap (only seen in firefox) */
+summary {
+  display: list-item;
+}
+
+/* Typographic tweaking ---------------------------------*/
+
+.contents .page-header {
+  margin-top: calc(-60px + 1em);
+}
+
+dd {
+  margin-left: 3em;
+}
+
+/* Section anchors ---------------------------------*/
+
+a.anchor {
+  display: none;
+  margin-left: 5px;
+  width: 20px;
+  height: 20px;
+
+  background-image: url(./link.svg);
+  background-repeat: no-repeat;
+  background-size: 20px 20px;
+  background-position: center center;
+}
+
+h1:hover .anchor,
+h2:hover .anchor,
+h3:hover .anchor,
+h4:hover .anchor,
+h5:hover .anchor,
+h6:hover .anchor {
+  display: inline-block;
+}
+
+/* Fixes for fixed navbar --------------------------*/
+
+.contents h1, .contents h2, .contents h3, .contents h4 {
+  padding-top: 60px;
+  margin-top: -40px;
+}
+
+/* Navbar submenu --------------------------*/
+
+.dropdown-submenu {
+  position: relative;
+}
+
+.dropdown-submenu>.dropdown-menu {
+  top: 0;
+  left: 100%;
+  margin-top: -6px;
+  margin-left: -1px;
+  border-radius: 0 6px 6px 6px;
+}
+
+.dropdown-submenu:hover>.dropdown-menu {
+  display: block;
+}
+
+.dropdown-submenu>a:after {
+  display: block;
+  content: " ";
+  float: right;
+  width: 0;
+  height: 0;
+  border-color: transparent;
+  border-style: solid;
+  border-width: 5px 0 5px 5px;
+  border-left-color: #cccccc;
+  margin-top: 5px;
+  margin-right: -10px;
+}
+
+.dropdown-submenu:hover>a:after {
+  border-left-color: #ffffff;
+}
+
+.dropdown-submenu.pull-left {
+  float: none;
+}
+
+.dropdown-submenu.pull-left>.dropdown-menu {
+  left: -100%;
+  margin-left: 10px;
+  border-radius: 6px 0 6px 6px;
+}
+
+/* Sidebar --------------------------*/
+
+#pkgdown-sidebar {
+  margin-top: 30px;
+  position: -webkit-sticky;
+  position: sticky;
+  top: 70px;
+}
+
+#pkgdown-sidebar h2 {
+  font-size: 1.5em;
+  margin-top: 1em;
+}
+
+#pkgdown-sidebar h2:first-child {
+  margin-top: 0;
+}
+
+#pkgdown-sidebar .list-unstyled li {
+  margin-bottom: 0.5em;
+}
+
+/* bootstrap-toc tweaks ------------------------------------------------------*/
+
+/* All levels of nav */
+
+nav[data-toggle='toc'] .nav > li > a {
+  padding: 4px 20px 4px 6px;
+  font-size: 1.5rem;
+  font-weight: 400;
+  color: inherit;
+}
+
+nav[data-toggle='toc'] .nav > li > a:hover,
+nav[data-toggle='toc'] .nav > li > a:focus {
+  padding-left: 5px;
+  color: inherit;
+  border-left: 1px solid #878787;
+}
+
+nav[data-toggle='toc'] .nav > .active > a,
+nav[data-toggle='toc'] .nav > .active:hover > a,
+nav[data-toggle='toc'] .nav > .active:focus > a {
+  padding-left: 5px;
+  font-size: 1.5rem;
+  font-weight: 400;
+  color: inherit;
+  border-left: 2px solid #878787;
+}
+
+/* Nav: second level (shown on .active) */
+
+nav[data-toggle='toc'] .nav .nav {
+  display: none; /* Hide by default, but at >768px, show it */
+  padding-bottom: 10px;
+}
+
+nav[data-toggle='toc'] .nav .nav > li > a {
+  padding-left: 16px;
+  font-size: 1.35rem;
+}
+
+nav[data-toggle='toc'] .nav .nav > li > a:hover,
+nav[data-toggle='toc'] .nav .nav > li > a:focus {
+  padding-left: 15px;
+}
+
+nav[data-toggle='toc'] .nav .nav > .active > a,
+nav[data-toggle='toc'] .nav .nav > .active:hover > a,
+nav[data-toggle='toc'] .nav .nav > .active:focus > a {
+  padding-left: 15px;
+  font-weight: 500;
+  font-size: 1.35rem;
+}
+
+/* orcid ------------------------------------------------------------------- */
+
+.orcid {
+  font-size: 16px;
+  color: #A6CE39;
+  /* margins are required by official ORCID trademark and display guidelines */
+  margin-left:4px;
+  margin-right:4px;
+  vertical-align: middle;
+}
+
+/* Reference index & topics ----------------------------------------------- */
+
+.ref-index th {font-weight: normal;}
+
+.ref-index td {vertical-align: top; min-width: 100px}
+.ref-index .icon {width: 40px;}
+.ref-index .alias {width: 40%;}
+.ref-index-icons .alias {width: calc(40% - 40px);}
+.ref-index .title {width: 60%;}
+
+.ref-arguments th {text-align: right; padding-right: 10px;}
+.ref-arguments th, .ref-arguments td {vertical-align: top; min-width: 100px}
+.ref-arguments .name {width: 20%;}
+.ref-arguments .desc {width: 80%;}
+
+/* Nice scrolling for wide elements --------------------------------------- */
+
+table {
+  display: block;
+  overflow: auto;
+}
+
+/* Syntax highlighting ---------------------------------------------------- */
+
+pre, code, pre code {
+  background-color: #f8f8f8;
+  color: #333;
+}
+pre, pre code {
+  white-space: pre-wrap;
+  word-break: break-all;
+  overflow-wrap: break-word;
+}
+
+pre {
+  border: 1px solid #eee;
+}
+
+pre .img, pre .r-plt {
+  margin: 5px 0;
+}
+
+pre .img img, pre .r-plt img {
+  background-color: #fff;
+}
+
+code a, pre a {
+  color: #375f84;
+}
+
+a.sourceLine:hover {
+  text-decoration: none;
+}
+
+.fl      {color: #1514b5;}
+.fu      {color: #000000;} /* function */
+.ch,.st  {color: #036a07;} /* string */
+.kw      {color: #264D66;} /* keyword */
+.co      {color: #888888;} /* comment */
+
+.error   {font-weight: bolder;}
+.warning {font-weight: bolder;}
+
+/* Clipboard --------------------------*/
+
+.hasCopyButton {
+  position: relative;
+}
+
+.btn-copy-ex {
+  position: absolute;
+  right: 0;
+  top: 0;
+  visibility: hidden;
+}
+
+.hasCopyButton:hover button.btn-copy-ex {
+  visibility: visible;
+}
+
+/* headroom.js ------------------------ */
+
+.headroom {
+  will-change: transform;
+  transition: transform 200ms linear;
+}
+.headroom--pinned {
+  transform: translateY(0%);
+}
+.headroom--unpinned {
+  transform: translateY(-100%);
+}
+
+/* mark.js ----------------------------*/
+
+mark {
+  background-color: rgba(255, 255, 51, 0.5);
+  border-bottom: 2px solid rgba(255, 153, 51, 0.3);
+  padding: 1px;
+}
+
+/* vertical spacing after htmlwidgets */
+.html-widget {
+  margin-bottom: 10px;
+}
+
+/* fontawesome ------------------------ */
+
+.fab {
+    font-family: "Font Awesome 5 Brands" !important;
+}
+
+/* don't display links in code chunks when printing */
+/* source: https://stackoverflow.com/a/10781533 */
+@media print {
+  code a:link:after, code a:visited:after {
+    content: "";
+  }
+}
+
+/* Section anchors ---------------------------------
+   Added in pandoc 2.11: https://github.com/jgm/pandoc-templates/commit/9904bf71
+*/
+
+div.csl-bib-body { }
+div.csl-entry {
+  clear: both;
+}
+.hanging-indent div.csl-entry {
+  margin-left:2em;
+  text-indent:-2em;
+}
+div.csl-left-margin {
+  min-width:2em;
+  float:left;
+}
+div.csl-right-inline {
+  margin-left:2em;
+  padding-left:1em;
+}
+div.csl-indent {
+  margin-left: 2em;
+}
diff --git a/docs/pkgdown.js b/docs/pkgdown.js
new file mode 100644
index 0000000000000000000000000000000000000000..6f0eee40bc3c69061d33fbed1bc9644f47c0eb8a
--- /dev/null
+++ b/docs/pkgdown.js
@@ -0,0 +1,108 @@
+/* http://gregfranko.com/blog/jquery-best-practices/ */
+(function($) {
+  $(function() {
+
+    $('.navbar-fixed-top').headroom();
+
+    $('body').css('padding-top', $('.navbar').height() + 10);
+    $(window).resize(function(){
+      $('body').css('padding-top', $('.navbar').height() + 10);
+    });
+
+    $('[data-toggle="tooltip"]').tooltip();
+
+    var cur_path = paths(location.pathname);
+    var links = $("#navbar ul li a");
+    var max_length = -1;
+    var pos = -1;
+    for (var i = 0; i < links.length; i++) {
+      if (links[i].getAttribute("href") === "#")
+        continue;
+      // Ignore external links
+      if (links[i].host !== location.host)
+        continue;
+
+      var nav_path = paths(links[i].pathname);
+
+      var length = prefix_length(nav_path, cur_path);
+      if (length > max_length) {
+        max_length = length;
+        pos = i;
+      }
+    }
+
+    // Add class to parent <li>, and enclosing <li> if in dropdown
+    if (pos >= 0) {
+      var menu_anchor = $(links[pos]);
+      menu_anchor.parent().addClass("active");
+      menu_anchor.closest("li.dropdown").addClass("active");
+    }
+  });
+
+  function paths(pathname) {
+    var pieces = pathname.split("/");
+    pieces.shift(); // always starts with /
+
+    var end = pieces[pieces.length - 1];
+    if (end === "index.html" || end === "")
+      pieces.pop();
+    return(pieces);
+  }
+
+  // Returns -1 if not found
+  function prefix_length(needle, haystack) {
+    if (needle.length > haystack.length)
+      return(-1);
+
+    // Special case for length-0 haystack, since for loop won't run
+    if (haystack.length === 0) {
+      return(needle.length === 0 ? 0 : -1);
+    }
+
+    for (var i = 0; i < haystack.length; i++) {
+      if (needle[i] != haystack[i])
+        return(i);
+    }
+
+    return(haystack.length);
+  }
+
+  /* Clipboard --------------------------*/
+
+  function changeTooltipMessage(element, msg) {
+    var tooltipOriginalTitle=element.getAttribute('data-original-title');
+    element.setAttribute('data-original-title', msg);
+    $(element).tooltip('show');
+    element.setAttribute('data-original-title', tooltipOriginalTitle);
+  }
+
+  if(ClipboardJS.isSupported()) {
+    $(document).ready(function() {
+      var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' type = 'submit' title='Copy to clipboard' aria-label='Copy to clipboard' data-toggle='tooltip' data-placement='left auto' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy'></i></button>";
+
+      $("div.sourceCode").addClass("hasCopyButton");
+
+      // Insert copy buttons:
+      $(copyButton).prependTo(".hasCopyButton");
+
+      // Initialize tooltips:
+      $('.btn-copy-ex').tooltip({container: 'body'});
+
+      // Initialize clipboard:
+      var clipboardBtnCopies = new ClipboardJS('[data-clipboard-copy]', {
+        text: function(trigger) {
+          return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, "");
+        }
+      });
+
+      clipboardBtnCopies.on('success', function(e) {
+        changeTooltipMessage(e.trigger, 'Copied!');
+        e.clearSelection();
+      });
+
+      clipboardBtnCopies.on('error', function() {
+        changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy');
+      });
+    });
+  }
+})(window.jQuery || window.$)
diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml
new file mode 100644
index 0000000000000000000000000000000000000000..587e059f613b61e7cc1d9066ba982a7ff32e46a3
--- /dev/null
+++ b/docs/pkgdown.yml
@@ -0,0 +1,7 @@
+pandoc: 2.19.2
+pkgdown: 2.0.7
+pkgdown_sha: ~
+articles:
+  ClimDatDownloadR: ClimDatDownloadR.html
+last_built: 2023-04-17T14:51Z
+
diff --git a/docs/reference/Chelsa.CMIP_5.download.html b/docs/reference/Chelsa.CMIP_5.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..382531dababf59680635bc8349f60949fade0af4
--- /dev/null
+++ b/docs/reference/Chelsa.CMIP_5.download.html
@@ -0,0 +1,208 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Function for downloading CHELSA CMIP 5 future climatologies for the years 2041-2060 and 2061-2080 — Chelsa.CMIP_5.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Function for downloading CHELSA CMIP 5 future climatologies for the years 2041-2060 and 2061-2080 — Chelsa.CMIP_5.download"><meta property="og:description" content='This function supports the download of CHELSA CMIP5 future climate scenarios comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables). To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Function for downloading CHELSA CMIP 5 future climatologies for the years 2041-2060 and 2061-2080</h1>
+    
+    <div class="hidden name"><code>Chelsa.CMIP_5.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports the download of CHELSA CMIP5 future climate scenarios comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables).<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">Chelsa.CMIP_5.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"temp"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">19</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  emission.scenario.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"rcp26"</span>, <span class="st">"rcp45"</span>, <span class="st">"rcp60"</span>, <span class="st">"rcp85"</span><span class="op">)</span>,</span>
+<span>  time.interval.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"2041-2060"</span>, <span class="st">"2061-2080"</span><span class="op">)</span>,</span>
+<span>  model.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"ACCESS1-0"</span>, <span class="st">"bcc-csm1-1"</span>, <span class="st">"BNU-ESM"</span>, <span class="st">"CanESM2"</span>, <span class="st">"CCSM4"</span>, <span class="st">"CESM1-BGC"</span>,</span>
+<span>    <span class="st">"CESM1-CAM5"</span>, <span class="st">"CMCC-CESM"</span>, <span class="st">"CMCC-CM"</span>, <span class="st">"CMCC-CMS"</span>, <span class="st">"CNRM-CM5"</span>, <span class="st">"CSIRO-Mk3-6-0"</span>,</span>
+<span>    <span class="st">"CSIRO-Mk3L-1-2"</span>, <span class="st">"EC-EARTH"</span>, <span class="st">"FGOALS-g2"</span>, <span class="st">"FIO-ESM"</span>, <span class="st">"GFDL-CM3"</span>, <span class="st">"GFDL-ESM2G"</span>,</span>
+<span>    <span class="st">"GFDL-ESM2M"</span>, <span class="st">"GISS-E2-H"</span>, <span class="st">"GISS-E2-H-CC"</span>, <span class="st">"GISS-E2-R"</span>, <span class="st">"GISS-E2-R-CC"</span>, <span class="st">"HadGEM2-AO"</span>,</span>
+<span>    <span class="st">"HadGEM2-CC"</span>, <span class="st">"HadGEM2-ES"</span>, <span class="st">"inmcm4"</span>, <span class="st">"IPSL-CM5A-LR"</span>, <span class="st">"IPSL-CM5A-MR"</span>, <span class="st">"MIROC-ESM"</span>,</span>
+<span>    <span class="st">"MIROC-ESM-CHEM"</span>, <span class="st">"MIROC5"</span>, <span class="st">"MPI-ESM-LR"</span>, <span class="st">"MPI-ESM-MR"</span>, <span class="st">"MRI-CGCM3"</span>, <span class="st">"MRI-ESM1"</span>,</span>
+<span>    <span class="st">"NorESM1-M"</span>, <span class="st">"NorESM1-ME"</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  combine.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets should be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "temp", "tmax", "tmin", "bio")</code></p></dd>
+
+
+<dt>bio.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: <a href="http://chelsa-climate.org/bioclim/" class="external-link">http://chelsa-climate.org/bioclim/</a>. <br> Default: <code>c(1:19)</code></p></dd>
+
+
+<dt>month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to Precipitation and Temperature (average, maximum, minimum). <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>emission.scenario.var</dt>
+<dd><p>string (vector). Input which emission scenario dataset should be downloaded. Provided are the representative concentration pathways (RCP) 2.6, 4.5, 6.0, and 8.5.<br> Default: <code>c("rcp26", "rcp45", "rcp60", "rcp85")</code></p></dd>
+
+
+<dt>time.interval.var</dt>
+<dd><p>string (vector). Input for which time interval data should be downloaded. CHELSA provides downscaled CMIP5 climatologies for 2050 and 2070. Multiple inputs possible.<br> Default: <code>c("2041-2060", "2061-2080")</code></p></dd>
+
+
+<dt>model.var</dt>
+<dd><p>string (vector). Input which future model dataset should be downloaded. For more information see: <a href="http://chelsa-climate.org/future/" class="external-link">http://chelsa-climate.org/future/</a>.<br> For some of the datasets not all downloads are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. For an overview please try "warnings()" after execution. <br> Default: <code>c("ACCESS1-0", "bcc-csm1-1", "BNU-ESM", "CanESM2", "CCSM4", "CESM1-BGC", </code> <br><code>"CESM1-CAM5", "CMCC-CESM", "CMCC-CM", "CMCC-CMS", "CNRM-CM5", "CSIRO-Mk3-6-0",</code> <br><code> "CSIRO-Mk3L-1-2", "EC-EARTH", "FGOALS-g2", "FIO-ESM", "GFDL-CM3", "GFDL-ESM2G", </code> <br><code>"GFDL-ESM2M","GISS-E2-H", "GISS-E2-H-CC", "GISS-E2-R", "GISS-E2-R-CC", "HadGEM2-AO",</code> <br><code>"HadGEM2-CC", "HadGEM2-ES", "inmcm4", "IPSL-CM5A-LR", "IPSL-CM5A-MR","MIROC-ESM",</code> <br><code>"MIROC-ESM-CHEM","MIROC5", "MPI-ESM-LR", "MPI-ESM-MR", "MRI-CGCM3", "MRI-ESM1",</code> <br><code> "NorESM1-M","NorESM1-ME")</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped.<br> If <code>FALSE</code> <code>clip.shapefile</code>, buffer, clip.extent will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping.  <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format.<br> If <code>TRUE</code>: a new subdirectory is created and the rawdata is saved there. If <code>clipping</code> is <code>TRUE</code>: the clipped raster files are also saved as ASCII grids.  <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>combine.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped". <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted. If the <code>combine.raw.zip</code> is <code>TRUE</code>: raw-data is still available in the zipped file. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>Downscaled CHELSA CMIP5 climatologies for 2050 and 2070.</p>
+    </div>
+    <div id="details">
+    <h2>Details</h2>
+    <p>"The downscaled data has been produced using climatological aided interpolation based on the 1979-2013 reference climatologies from CHELSA." (CHELSA Climate 2020: <a href="http://chelsa-climate.org/future/" class="external-link">http://chelsa-climate.org/future/</a>)</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.<br> For some of the datasets not all models and rcps are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. See parameter <code>model.var</code> for more information or check the website of CHELSA Climate (<a href="http://chelsa-climate.org/future/" class="external-link">http://chelsa-climate.org/future/</a>). Please note, that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>D. N. Karger, O. Conrad, J. B\"ohner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. &lt;URL: https://doi.org/10.1038/sdata.2017.122&gt;.</p>
+<p>D. N. Karger, O. Conrad, J. B\"ohner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. &lt;URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="co"># Bioclim</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.CMIP_5.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"bio"</span>,</span></span>
+<span class="r-in"><span>                        bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">19</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                        emission.scenario.var <span class="op">=</span> <span class="st">"rcp26"</span>,</span></span>
+<span class="r-in"><span>                        time.interval.var <span class="op">=</span> <span class="st">"2041-2060"</span>,</span></span>
+<span class="r-in"><span>                        model.var <span class="op">=</span> <span class="st">"MPI-ESM-LR"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="co"># Precipitation</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.CMIP_5.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>,</span></span>
+<span class="r-in"><span>                        month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                        emission.scenario.var <span class="op">=</span> <span class="st">"rcp26"</span>,</span></span>
+<span class="r-in"><span>                        time.interval.var <span class="op">=</span> <span class="st">"2041-2060"</span>,</span></span>
+<span class="r-in"><span>                        model.var <span class="op">=</span> <span class="st">"MPI-ESM-LR"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/Chelsa.CMIP_6.download.html b/docs/reference/Chelsa.CMIP_6.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..8f8487f546905d9be72fae70f94617462516e421
--- /dev/null
+++ b/docs/reference/Chelsa.CMIP_6.download.html
@@ -0,0 +1,205 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Function for downloading CHELSA CMIP 6 future climatologies for the years 2011-2040, 2041-2070, and 2071-2100 — Chelsa.CMIP_6.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Function for downloading CHELSA CMIP 6 future climatologies for the years 2011-2040, 2041-2070, and 2071-2100 — Chelsa.CMIP_6.download"><meta property="og:description" content='This function supports the download of CHELSA CMIP6 future climate scenarios comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables). To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Function for downloading CHELSA CMIP 6 future climatologies for the years 2011-2040, 2041-2070, and 2071-2100</h1>
+    
+    <div class="hidden name"><code>Chelsa.CMIP_6.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports the download of CHELSA CMIP6 future climate scenarios comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables).<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">Chelsa.CMIP_6.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"temp"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">19</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  emission.scenario.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"ssp126"</span>, <span class="st">"ssp370"</span>, <span class="st">"ssp585"</span><span class="op">)</span>,</span>
+<span>  time.interval.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"2011-2040"</span>, <span class="st">"2041-2070"</span>, <span class="st">"2071-2100"</span><span class="op">)</span>,</span>
+<span>  model.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"gfdl-esm4"</span>, <span class="st">"ukesm1-0-ll"</span>, <span class="st">"mpi-esm1-2-hr"</span>, <span class="st">"ipsl-cm6a-lr"</span>,</span>
+<span>    <span class="st">"mri-esm2-0"</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  combine.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets should be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "temp", "tmax", "tmin", "bio")</code></p></dd>
+
+
+<dt>bio.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: <a href="http://chelsa-climate.org/bioclim/" class="external-link">http://chelsa-climate.org/bioclim/</a>. <br> Default: <code>c(1:19)</code></p></dd>
+
+
+<dt>month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to Precipitation and Temperature (average, maximum, minimum). <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>emission.scenario.var</dt>
+<dd><p>string (vector). Input which SSP (Shared Socioeconomic Pathways) scenario dataset should be downloaded. Provided are the SSP scenarios 1 (SSP126), 3 (SSP370), and 5 (SSP585). <br> Default: <code>c("ssp126","ssp370","ssp585")</code></p></dd>
+
+
+<dt>time.interval.var</dt>
+<dd><p>string (vector). Input for which time interval data should be downloaded. CHELSA provides downscaled CMIP6 climatologies for 2050 and 2070. Multiple inputs possible.<br> Default: <code>c("2041-2060", "2061-2080")</code></p></dd>
+
+
+<dt>model.var</dt>
+<dd><p>string (vector). Input which future model dataset should be downloaded. For more information see: <a href="http://chelsa-climate.org/future/" class="external-link">http://chelsa-climate.org/future/</a>.<br> For some of the datasets not all downloads are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. For an overview please try "warnings()" after execution. <br> Default: <code>c("gfdl-esm4", "ukesm1-0-ll", "mpi-esm1-2-hr", "ipsl-cm6a-lr", "mri-esm2-0")</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped.<br> If <code>FALSE</code> <code>clip.shapefile</code>, buffer, clip.extent will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping.  <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format.<br> If <code>TRUE</code>: a new subdirectory is created and the rawdata is saved there. If <code>clipping</code> is <code>TRUE</code>: the clipped raster files are also saved as ASCII grids.  <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>combine.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped". <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted. If the <code>combine.raw.zip</code> is <code>TRUE</code>: raw-data is still available in the zipped file. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>CHELSA CMIP6 climatology datasets.</p>
+    </div>
+    <div id="details">
+    <h2>Details</h2>
+    <p>"The downscaled data has been produced using climatological aided interpolation based on the 1979-2013 reference climatologies from CHELSA." (CHELSA Climate 2020: <a href="http://chelsa-climate.org/future/" class="external-link">http://chelsa-climate.org/future/</a>)</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.<br> For some of the datasets not all models and rcps are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. See parameter <code>model.var</code> for more information or check the website of CHELSA Climate (<a href="http://chelsa-climate.org/future/" class="external-link">http://chelsa-climate.org/future/</a>). Please note, that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.</p>
+<p>Specifications: &lt;URL: https://chelsa-climate.org/wp-admin/download-page/CHELSA_tech_specification_V2.pdf&gt;</p>
+<p>More information on Shared Socioeconomic Pathways under &lt;URL: https://www.dkrz.de/en/communication/climate-simulations/cmip6-en/the-ssp-scenarios?set_language=en&gt;</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>D. N. Karger, O. Conrad, J. B\"ohner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. &lt;URL: https://doi.org/10.1038/sdata.2017.122&gt;.</p>
+<p>D. N. Karger, O. Conrad, J. B\"ohner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. &lt;URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="co"># Bioclim</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.CMIP_6.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"bio"</span>,</span></span>
+<span class="r-in"><span>                        bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">19</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                        emission.scenario.var <span class="op">=</span> <span class="st">"ssp126"</span>,</span></span>
+<span class="r-in"><span>                        time.interval.var <span class="op">=</span> <span class="st">"2011-2040"</span>,</span></span>
+<span class="r-in"><span>                        model.var <span class="op">=</span> <span class="st">"mpi-esm1-2-hr"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="co"># Precipitation</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.CMIP_6.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>,</span></span>
+<span class="r-in"><span>                        month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">7</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                        emission.scenario.var <span class="op">=</span> <span class="st">"ssp585"</span>,</span></span>
+<span class="r-in"><span>                        time.interval.var <span class="op">=</span> <span class="st">"2071-2100"</span>,</span></span>
+<span class="r-in"><span>                        model.var <span class="op">=</span> <span class="st">"gfdl-esm4"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/Chelsa.CRUts.download.html b/docs/reference/Chelsa.CRUts.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..659e84b508b381e88d73139adf0cad456287f864
--- /dev/null
+++ b/docs/reference/Chelsa.CRUts.download.html
@@ -0,0 +1,193 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>CHELSA CRU Timeseries Download — Chelsa.CRUts.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="CHELSA CRU Timeseries Download — Chelsa.CRUts.download"><meta property="og:description" content='This function supports a download of the CHELSA CRU Timeseries dataset (Jan. 1901 - Dec. 2016). This includes precipitation sums in mm and temperature (maximum, minimum) in degree Celsius. For further information, please regard http://chelsa-climate.org/chelsacruts/. To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>CHELSA CRU Timeseries Download</h1>
+    
+    <div class="hidden name"><code>Chelsa.CRUts.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports a download of the CHELSA CRU Timeseries dataset (Jan. 1901 - Dec. 2016). This includes precipitation sums in mm and temperature (maximum, minimum) in degree Celsius. For further information, please regard <a href="http://chelsa-climate.org/chelsacruts/" class="external-link">http://chelsa-climate.org/chelsacruts/</a>.<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">Chelsa.CRUts.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span><span class="op">)</span>,</span>
+<span>  start.year.var <span class="op">=</span> <span class="fl">1901</span>,</span>
+<span>  start.month.var <span class="op">=</span> <span class="fl">1</span>,</span>
+<span>  end.year.var <span class="op">=</span> <span class="fl">2016</span>,</span>
+<span>  end.month.var <span class="op">=</span> <span class="fl">12</span>,</span>
+<span>  include.month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  combine.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets should be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "tmax", "tmin")</code></p></dd>
+
+
+<dt>start.year.var</dt>
+<dd><p>integer. Input year the download timeseries starts. <br> Default: 1901 (minimum)</p></dd>
+
+
+<dt>start.month.var</dt>
+<dd><p>integer. Input month the download timeseries starts. <br> Default: 1 (minimum)</p></dd>
+
+
+<dt>end.year.var</dt>
+<dd><p>integer. Input year the download timeseries ends. <br> Default: 2016 (maximum)</p></dd>
+
+
+<dt>end.month.var</dt>
+<dd><p>integer. Input month the download timeseries ends. <br> Default: 12 (maximum)</p></dd>
+
+
+<dt>include.month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped.<br> If <code>FALSE</code>: <code>clip.shapefile</code>, <code>buffer</code>, <code>clip.extent</code> will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format.<br> If <code>TRUE</code>: a new subdirectory is created and the rawdata is saved there. <br> If <code>clipping</code> is <code>TRUE</code>: the clipped raster files are also saved as ASCII grids. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>combine.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped". <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted. If <code>combine.raw.zip</code> is <code>TRUE</code>: raw-data is still available in the zipped file. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>Custom dataset of CHELSA CRU Timeseries for a chosen timeseries.</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that the downloaded data for temperature is processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>D. N. Karger, O. Conrad, J. B\"ohner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. &lt;URL: https://doi.org/10.1038/sdata.2017.122&gt;.</p>
+<p>D. N. Karger, O. Conrad, J. B\"ohner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. &lt;URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4&gt;.</p>
+<p>D. N. Karger and N. E. Zimmermann. _CHELSAcruts - High resolution temperature and precipitation timeseries for the 20th century and beyond_. 2018. DOI: http://dx.doi.org/10.16904/envidat.159.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.CRUts.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>,</span></span>
+<span class="r-in"><span>                       start.year.var <span class="op">=</span> <span class="fl">2000</span>,</span></span>
+<span class="r-in"><span>                       start.month.var <span class="op">=</span> <span class="fl">1</span>,</span></span>
+<span class="r-in"><span>                       end.year.var <span class="op">=</span> <span class="fl">2002</span>,</span></span>
+<span class="r-in"><span>                       end.month.var <span class="op">=</span> <span class="fl">12</span>,</span></span>
+<span class="r-in"><span>                       include.month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/Chelsa.Clim.download.deprecated.html b/docs/reference/Chelsa.Clim.download.deprecated.html
new file mode 100644
index 0000000000000000000000000000000000000000..afb29e8a5705f4d7422a3e8ed16b65416983bd78
--- /dev/null
+++ b/docs/reference/Chelsa.Clim.download.deprecated.html
@@ -0,0 +1,180 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Deprecated function for downloading the CHELSA climate dataset (1979-2013) — Chelsa.Clim.download.deprecated • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Deprecated function for downloading the CHELSA climate dataset (1979-2013) — Chelsa.Clim.download.deprecated"><meta property="og:description" content='This function supports the download, pre-processing and management of CHELSA climate data comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables). The spatial resolution of the downloaded data is 30 arc-seconds. To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Deprecated function for downloading the CHELSA climate dataset (1979-2013)</h1>
+    
+    <div class="hidden name"><code>Chelsa.Clim.download.deprecated.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports the download, pre-processing and management of CHELSA climate data comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables). The spatial resolution of the downloaded data is 30 arc-seconds.<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">Chelsa.Clim.download.deprecated</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"temp"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">19</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  version.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"1.2"</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  combine.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets will be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "temp", "tmax", "tmin", "bio")</code></p></dd>
+
+
+<dt>bio.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: <a href="http://chelsa-climate.org/bioclim/" class="external-link">http://chelsa-climate.org/bioclim/</a>. <br> Default: <code>c(1:19)</code></p></dd>
+
+
+<dt>month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to precipitation and temperature (average, maximum, minimum). <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>version.var</dt>
+<dd><p>string (vector). Input which version of the dataset should be downloaded. Multiple selection is possible. <br> Default:  <code>c("1.2")</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped.<br> If <code>FALSE</code>: clip.shapefile, buffer, clip.extent will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop"). <br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format.<br> If <code>TRUE</code>: a new subdirectory is created and the rawdata is saved there. If <code>clipping</code> is <code>TRUE</code>: the clipped raster files are also saved as ASCII grids. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>combine.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped". <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted.<br> If <code>combine.raw.zip</code> is <code>TRUE</code>: raw-data is still available in the zipped file. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>CHELSA climate datasets for the period of 1979 - 2013</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>D. N. Karger, O. Conrad, J. B\"ohner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. &lt;URL: https://doi.org/10.1038/sdata.2017.122&gt;.</p>
+<p>D. N. Karger, O. Conrad, J. B\"ohner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. &lt;URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="co"># Bioclim</span></span></span>
+<span class="r-in"><span><span class="fu"><a href="Chelsa.Clim.download.html">Chelsa.Clim.download</a></span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"bio"</span>, bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">19</span><span class="op">)</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="co"># Precipitation</span></span></span>
+<span class="r-in"><span><span class="fu"><a href="Chelsa.Clim.download.html">Chelsa.Clim.download</a></span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>, month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/Chelsa.Clim.download.html b/docs/reference/Chelsa.Clim.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..18036343eb92f0076ae65ab5ea0634a98b452553
--- /dev/null
+++ b/docs/reference/Chelsa.Clim.download.html
@@ -0,0 +1,180 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Function for downloading the CHELSA climate dataset (1979-2013) — Chelsa.Clim.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Function for downloading the CHELSA climate dataset (1979-2013) — Chelsa.Clim.download"><meta property="og:description" content='This function supports the download, pre-processing and management of CHELSA climate data comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables). The spatial resolution of the downloaded data is 30 arc-seconds. To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Function for downloading the CHELSA climate dataset (1979-2013)</h1>
+    
+    <div class="hidden name"><code>Chelsa.Clim.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports the download, pre-processing and management of CHELSA climate data comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables). The spatial resolution of the downloaded data is 30 arc-seconds.<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">Chelsa.Clim.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"temp"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">19</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  version.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"1.2"</span>, <span class="st">"2.1"</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  combine.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets will be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "temp", "tmax", "tmin", "bio")</code></p></dd>
+
+
+<dt>bio.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: <a href="http://chelsa-climate.org/bioclim/" class="external-link">http://chelsa-climate.org/bioclim/</a>. <br> Default: <code>c(1:19)</code></p></dd>
+
+
+<dt>month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to precipitation and temperature (average, maximum, minimum). <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>version.var</dt>
+<dd><p>string (vector). Input which version of the dataset should be downloaded. Multiple selection is possible. <br> Default:  <code>c("1.2")</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped.<br> If <code>FALSE</code>: clip.shapefile, buffer, clip.extent will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop"). <br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format.<br> If <code>TRUE</code>: a new subdirectory is created and the rawdata is saved there. If <code>clipping</code> is <code>TRUE</code>: the clipped raster files are also saved as ASCII grids. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>combine.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped". <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted.<br> If <code>combine.raw.zip</code> is <code>TRUE</code>: raw-data is still available in the zipped file. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>CHELSA climate datasets for the period of 1979 - 2013</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>D. N. Karger, O. Conrad, J. B\"ohner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. &lt;URL: https://doi.org/10.1038/sdata.2017.122&gt;.</p>
+<p>D. N. Karger, O. Conrad, J. B\"ohner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. &lt;URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="co"># Bioclim</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.Clim.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"bio"</span>, bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">19</span><span class="op">)</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="co"># Precipitation</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.Clim.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>, month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/Chelsa.lgm.download.html b/docs/reference/Chelsa.lgm.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..430eb1dfdad340ffc592578ac37f8004d9604f64
--- /dev/null
+++ b/docs/reference/Chelsa.lgm.download.html
@@ -0,0 +1,195 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Function for downloading CHELSA Last Glacial Maximum datasets — Chelsa.lgm.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Function for downloading CHELSA Last Glacial Maximum datasets — Chelsa.lgm.download"><meta property="og:description" content='This function supports a download of the CHELSA Last Glacial Maximum Climate datasets (21.000 BP). This includes monthly precipitation sums in mm, monthly temperature (average, maximum, minimum) in degree Celsius, annual characteristics (19 bioclimatic parameters), and a global digital elevation model. For further information, please regard http://chelsa-climate.org/last-glacial-maximum-climate/. To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Function for downloading CHELSA Last Glacial Maximum datasets</h1>
+    
+    <div class="hidden name"><code>Chelsa.lgm.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports a download of the CHELSA Last Glacial Maximum Climate datasets (21.000 BP). This includes monthly precipitation sums in mm, monthly temperature (average, maximum, minimum) in degree Celsius, annual characteristics (19 bioclimatic parameters), and a global digital elevation model. For further information, please regard <a href="http://chelsa-climate.org/last-glacial-maximum-climate/" class="external-link">http://chelsa-climate.org/last-glacial-maximum-climate/</a>.<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">Chelsa.lgm.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"temp"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">19</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  model.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"CCSM4"</span>, <span class="st">"MRI-CGCM3"</span>, <span class="st">"CNRM-CM5"</span>, <span class="st">"FGOALS-g2"</span>, <span class="st">"IPSL-CM5A-LR"</span>,</span>
+<span>    <span class="st">"MIROC-ESM"</span>, <span class="st">"MPI-ESM-P"</span><span class="op">)</span>,</span>
+<span>  download.dem <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  combine.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets should be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "temp", "tmax", "tmin", "bio")</code></p></dd>
+
+
+<dt>bio.var</dt>
+<dd><p>integer (vector). Input which bioclim data should be downloaded. Only applicable to BIOCLIM variables. For further information see: <a href="http://chelsa-climate.org/bioclim/" class="external-link">http://chelsa-climate.org/bioclim/</a>. <br> Default: <code>c(1:19)</code></p></dd>
+
+
+<dt>month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to Precipitation and Temperature (average, maximum, minimum). <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>model.var</dt>
+<dd><p>string (vector). Input which future model dataset should be downloaded. For more information see: <a href="http://chelsa-climate.org/last-glacial-maximum-climate/" class="external-link">http://chelsa-climate.org/last-glacial-maximum-climate/</a>. For some of the datasets not all downloads are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. For an overview please try "warnings()" after execution. <br> Default: <code>c("CCSM4", "MRI-CGCM3", "CNRM-CM5", </code> <br><code>"FGOALS-g2", "IPSL-CM5A-LR", "MIROC-ESM", "MPI-ESM-P")</code></p></dd>
+
+
+<dt>download.dem</dt>
+<dd><p>logical. Input whether a LGM digital elevation model should be downloaded. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped.<br> If <code>FALSE</code>; clip.shapefile, buffer, clip.extent will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format. If <code>TRUE</code>: a new subdirectory is created and the rawdata is saved there. <br> If <code>clipping</code> is <code>TRUE</code>: the clipped raster files are also saved as ASCII grids. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>combine.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped". <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted. If the "combine.raw.zip"-option is <code>TRUE</code>, raw-data is still available in the zipped file.<br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the CHELSA dataset should be provided in the Working directory. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>Downscaled global climatological data from the last glacial maximum.</p>
+    </div>
+    <div id="details">
+    <h2>Details</h2>
+    <p>"The CHELSA LGM data is based on a implementation of the CHELSA algorithm on PMIP3 data." (CHELSA Climate 2020: <a href="http://chelsa-climate.org/last-glacial-maximum-climate/" class="external-link">http://chelsa-climate.org/last-glacial-maximum-climate/</a>)</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.<br> For some of the datasets not all models are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. See parameter <code>model.var</code> for more information or check the website of CHELSA Climate (<a href="http://chelsa-climate.org/last-glacial-maximum-climate/" class="external-link">http://chelsa-climate.org/last-glacial-maximum-climate/</a>).</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>D. N. Karger, O. Conrad, J. B\"ohner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. &lt;URL: https://doi.org/10.1038/sdata.2017.122&gt;.</p>
+<p>D. N. Karger, O. Conrad, J. B\"ohner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. &lt;URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="co"># Bioclim</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.lgm.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"bio"</span>,</span></span>
+<span class="r-in"><span>                    bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">19</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                    model.var <span class="op">=</span> <span class="st">"MPI-ESM-P"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="co"># Precipitation</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.lgm.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>,</span></span>
+<span class="r-in"><span>                    month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                    model.var <span class="op">=</span> <span class="st">"MPI-ESM-P"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/Chelsa.timeseries.download.html b/docs/reference/Chelsa.timeseries.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..f076292bb1d706e4cedd36e8b1eea0fc0a3be69d
--- /dev/null
+++ b/docs/reference/Chelsa.timeseries.download.html
@@ -0,0 +1,192 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>CHELSA Timeseries Download — Chelsa.timeseries.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="CHELSA Timeseries Download — Chelsa.timeseries.download"><meta property="og:description" content='This function supports a download of the CHELSA Timeseries dataset (Jan. 1979 - Dec. 2013). This includes precipitation sums (mm) and temperature (average, maximum, minimum; °C) parameters. For further information, please regard http://chelsa-climate.org/timeseries/. To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>CHELSA Timeseries Download</h1>
+    
+    <div class="hidden name"><code>Chelsa.timeseries.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports a download of the CHELSA Timeseries dataset (Jan. 1979 - Dec. 2013). This includes precipitation sums (mm) and temperature (average, maximum, minimum; °C) parameters. For further information, please regard <a href="http://chelsa-climate.org/timeseries/" class="external-link">http://chelsa-climate.org/timeseries/</a>.<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">Chelsa.timeseries.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span><span class="op">)</span>,</span>
+<span>  start.year.var <span class="op">=</span> <span class="fl">1979</span>,</span>
+<span>  start.month.var <span class="op">=</span> <span class="fl">1</span>,</span>
+<span>  end.year.var <span class="op">=</span> <span class="fl">2013</span>,</span>
+<span>  end.month.var <span class="op">=</span> <span class="fl">12</span>,</span>
+<span>  include.month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  combine.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets should be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "tmax", "tmin")</code></p></dd>
+
+
+<dt>start.year.var</dt>
+<dd><p>integer. Input year the download timeseries starts. <br> Default: 1979 (minimum)</p></dd>
+
+
+<dt>start.month.var</dt>
+<dd><p>integer. Input month the download timeseries starts. <br> Default: 1 (minimum)</p></dd>
+
+
+<dt>end.year.var</dt>
+<dd><p>integer. Input year the download timeseries ends. <br> Default: 2013 (maximum)</p></dd>
+
+
+<dt>end.month.var</dt>
+<dd><p>integer. Input month the download timeseries ends. <br> Default: 12 (maximum)</p></dd>
+
+
+<dt>include.month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped.<br> If <code>FALSE</code>: <code>clip.shapefile</code>, <code>buffer</code>, <code>clip.extent</code> will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format.<br> If <code>TRUE</code>: a new subdirectory is created and the rawdata is saved there. <br> If <code>clipping</code> is <code>TRUE</code>: the clipped raster files are also saved as ASCII grids. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>combine.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped". <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted. If <code>combine.raw.zip</code> is <code>TRUE</code>: raw-data is still available in the zipped file. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>Custom dataset of CHELSA Timeseries for a chosen timeseries.</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that the downloaded data for temperature are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>D. N. Karger, O. Conrad, J. B\"ohner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. &lt;URL: https://doi.org/10.1038/sdata.2017.122&gt;.</p>
+<p>D. N. Karger, O. Conrad, J. B\"ohner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. &lt;URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="fu">Chelsa.timeseries.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>,</span></span>
+<span class="r-in"><span>                            start.year.var <span class="op">=</span> <span class="fl">2000</span>,</span></span>
+<span class="r-in"><span>                            start.month.var <span class="op">=</span> <span class="fl">1</span>,</span></span>
+<span class="r-in"><span>                            end.year.var <span class="op">=</span> <span class="fl">2002</span>,</span></span>
+<span class="r-in"><span>                            end.month.var <span class="op">=</span> <span class="fl">12</span>,</span></span>
+<span class="r-in"><span>                            include.month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/Rplot001.png b/docs/reference/Rplot001.png
new file mode 100644
index 0000000000000000000000000000000000000000..17a358060aed2a86950757bbd25c6f92c08c458f
Binary files /dev/null and b/docs/reference/Rplot001.png differ
diff --git a/docs/reference/WorldClim.CMIP_5.download.html b/docs/reference/WorldClim.CMIP_5.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..432e5c20328d576588c1c43d0f47d35154202e49
--- /dev/null
+++ b/docs/reference/WorldClim.CMIP_5.download.html
@@ -0,0 +1,208 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Function for downloading the WorldClim v1.4 CMIP5 future climate dataset — WorldClim.CMIP_5.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Function for downloading the WorldClim v1.4 CMIP5 future climate dataset — WorldClim.CMIP_5.download"><meta property="og:description" content='This function supports the download, pre-processing and management of the WorldClim v1.4 CMIP5 future climate dataset. This comprises of monthly precipitation sums (mm), temperature (maximum, minimum; °C), and annual chracteristics (19 bioclimatic variables). To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Function for downloading the WorldClim v1.4 CMIP5 future climate dataset</h1>
+    
+    <div class="hidden name"><code>WorldClim.CMIP_5.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports the download, pre-processing and management of the WorldClim v1.4 CMIP5 future climate dataset.<br> This comprises of monthly precipitation sums (mm), temperature (maximum, minimum; °C), and annual chracteristics (19 bioclimatic variables).<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">WorldClim.CMIP_5.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">19</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  resolution <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"10min"</span>, <span class="st">"5min"</span>, <span class="st">"2.5min"</span>, <span class="st">"30s"</span><span class="op">)</span>,</span>
+<span>  model.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"ACCESS1-0"</span>, <span class="st">"BCC-CSM1-1"</span>, <span class="st">"CCSM4"</span>, <span class="st">"CESM1-CAM5-1-FV2"</span>, <span class="st">"CNRM-CM5"</span>,</span>
+<span>    <span class="st">"GFDL-CM3"</span>, <span class="st">"GFDL-ESM2G"</span>, <span class="st">"GISS-E2-R"</span>, <span class="st">"HadGEM2-AO"</span>, <span class="st">"HadGEM2-CC"</span>, <span class="st">"HadGEM2-ES"</span>,</span>
+<span>    <span class="st">"INMCM4"</span>, <span class="st">"IPSL-CM5A-LR"</span>, <span class="st">"MIROC-ESM-CHEM"</span>, <span class="st">"MIROC-ESM"</span>, <span class="st">"MIROC5"</span>, <span class="st">"MPI-ESM-LR"</span>,</span>
+<span>    <span class="st">"MRI-CGCM3"</span>, <span class="st">"NorESM1-M"</span><span class="op">)</span>,</span>
+<span>  emission.scenario.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"rcp26"</span>, <span class="st">"rcp45"</span>, <span class="st">"rcp60"</span>, <span class="st">"rcp85"</span><span class="op">)</span>,</span>
+<span>  time.interval.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"2050"</span>, <span class="st">"2070"</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  keep.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets should be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "tmax", "tmin", "bio")</code></p></dd>
+
+
+<dt>bio.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: <a href="https://www.worldclim.org/data/bioclim.html" class="external-link">https://www.worldclim.org/data/bioclim.html</a>. <br> Default: <code>c(1:19)</code></p></dd>
+
+
+<dt>month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to precipitation and temperature (maximum, minimum). <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>resolution</dt>
+<dd><p>string (vector). Ranging from a 10 arc-minute resolution over 5 and 2.5 arc-minute to 30 arc-second resolution.<br> Default: <code>c("10m", "5m", "2.5m", "30s")</code></p></dd>
+
+
+<dt>model.var</dt>
+<dd><p>string (vector). Model used to calculate the dataset.<br> Default: <code>c("ACCESS1-0", "BCC-CSM1-1", "CCSM4", "CESM1-CAM5-1-FV2", "CNRM-CM5", </code><br><code>"GFDL-CM3", "GFDL-ESM2G", "GISS-E2-R", "HadGEM2-AO", "HadGEM2-CC", "HadGEM2-ES",</code> <br><code>"INMCM4", "IPSL-CM5A-LR", "MIROC-ESM-CHEM", "MIROC-ESM", "MIROC5",</code> <br><code>"MPI-ESM-LR","MRI-CGCM3", "NorESM1-M")</code></p></dd>
+
+
+<dt>emission.scenario.var</dt>
+<dd><p>string (vector). Input which emission scenario dataset should be downloaded. Provided are the representative concentration pathways (RCP) 2.6, 4.5, 6.0, and 8.5. <br> Default: <code>c("rcp26", "rcp45", "rcp60", "rcp85")</code></p></dd>
+
+
+<dt>time.interval.var</dt>
+<dd><p>string (vector). Time interval for which the dataset is calculated. The given intervals are 2040-2060 (represented by "2050"), and 2060 to 2080 (represented by "2070"). <br> Default: <code>c("2050", "2070")</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped. <br> If <code>FALSE</code>; clip.shapefile, buffer, clip.extent will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format.<br> If <code>TRUE</code> a new subdirectory is created and the rawdata is saved there.<br> If <code>clipping</code> is <code>TRUE</code> the clipped raster files are also saved as ASCII grids.<br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack.<br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>keep.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped".<br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted.<br> If the <code>combine.raw.zip</code>-option is <code>TRUE</code>, raw-data is still available in the zipped file.<br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory.<br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>WorldClim 1.4 CMIP5 Future climate datasets for the periods of 2041-2060 and/or 2061-2080.</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that this dataset is regarded to as "outdated" by the WorldClim creators. The download of the current dataset "CMIP6" is also provided by this package with the <code><a href="WorldClim.CMIP_6.download.html">WorldClim.CMIP_6.download</a></code> function.</p>
+<p>Please note also that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time depending on the spatial resolution.</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>R. J. Hijmans, S. E. Cameron, J. L. Parra, et al. "Very high resolution interpolated climate surfaces for global land areas". In: _International Journal of Climatology_ 25.15 (2005), pp. 1965-1978. DOI: 10.1002/joc.1276. &lt;URL: https://doi.org/10.1002/joc.1276&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="co"># Bioclim</span></span></span>
+<span class="r-in"><span><span class="fu">WorldClim.CMIP_5.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"bio"</span>,</span></span>
+<span class="r-in"><span>                           bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                           resolution <span class="op">=</span> <span class="st">"10min"</span>,</span></span>
+<span class="r-in"><span>                           model.var <span class="op">=</span> <span class="st">"MPI-ESM-LR"</span>,</span></span>
+<span class="r-in"><span>                           emission.scenario.var <span class="op">=</span> <span class="st">"rcp26"</span>,</span></span>
+<span class="r-in"><span>                           time.interval.var <span class="op">=</span> <span class="st">"2050"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="co"># Precipitation</span></span></span>
+<span class="r-in"><span><span class="fu">WorldClim.CMIP_5.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>,</span></span>
+<span class="r-in"><span>                           month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                           resolution <span class="op">=</span> <span class="st">"10min"</span>,</span></span>
+<span class="r-in"><span>                           model.var <span class="op">=</span> <span class="st">"MPI-ESM-LR"</span>,</span></span>
+<span class="r-in"><span>                           emission.scenario.var <span class="op">=</span> <span class="st">"rcp26"</span>,</span></span>
+<span class="r-in"><span>                           time.interval.var <span class="op">=</span> <span class="st">"2050"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/WorldClim.CMIP_6.download.html b/docs/reference/WorldClim.CMIP_6.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..97d955a3a62df3d6a156cab6ffc6acdde59ac077
--- /dev/null
+++ b/docs/reference/WorldClim.CMIP_6.download.html
@@ -0,0 +1,205 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Function for downloading the WorldClim v2.1 CMIP6 future climate dataset — WorldClim.CMIP_6.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Function for downloading the WorldClim v2.1 CMIP6 future climate dataset — WorldClim.CMIP_6.download"><meta property="og:description" content='This function supports the download, pre-processing and management of the WorldClim v2.1 CMIP6 future climate dataset. This comprises of monthly precipitation sums (mm), temperature (maximum, minimum; °C), and annual chracteristics (19 bioclimatic variables). To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Function for downloading the WorldClim v2.1 CMIP6 future climate dataset</h1>
+    
+    <div class="hidden name"><code>WorldClim.CMIP_6.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports the download, pre-processing and management of the WorldClim v2.1 CMIP6 future climate dataset.<br> This comprises of monthly precipitation sums (mm), temperature (maximum, minimum; °C), and annual chracteristics (19 bioclimatic variables).<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">WorldClim.CMIP_6.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span>, <span class="st">"bio"</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">19</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  resolution <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"10min"</span>, <span class="st">"5min"</span>, <span class="st">"2.5min"</span>, <span class="st">"30s"</span><span class="op">)</span>,</span>
+<span>  model.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"BCC-CSM2-MR"</span>, <span class="st">"CNRM-CM6-1"</span>, <span class="st">"CNRM-ESM2-1"</span>, <span class="st">"CanESM5"</span>, <span class="st">"GFDL-ESM4"</span>,</span>
+<span>    <span class="st">"IPSL-CM6A-LR"</span>, <span class="st">"MIROC-ES2L"</span>, <span class="st">"MIROC6"</span>, <span class="st">"MRI-ESM2-0"</span><span class="op">)</span>,</span>
+<span>  emission.scenario.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"ssp126"</span>, <span class="st">"ssp245"</span>, <span class="st">"ssp370"</span>, <span class="st">"ssp585"</span><span class="op">)</span>,</span>
+<span>  time.interval.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"2021-2040"</span>, <span class="st">"2041-2060"</span>, <span class="st">"2061-2080"</span>, <span class="st">"2081-2100"</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  keep.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets should be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "tmax", "tmin", "bio")</code></p></dd>
+
+
+<dt>bio.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: <a href="https://www.worldclim.org/data/bioclim.html" class="external-link">https://www.worldclim.org/data/bioclim.html</a>. <br> Default: <code>c(1:19)</code></p></dd>
+
+
+<dt>month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to precipitation and temperature (maximum, minimum). <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>resolution</dt>
+<dd><p>string (vector). Ranging from a 10 arc-minute resolution over 5 and 2.5 arc-minute to 30 arc-second resolution.<br> Default: <code>c("10m", "5m", "2.5m", "30s")</code></p></dd>
+
+
+<dt>model.var</dt>
+<dd><p>string (vector). Model used to calculate the dataset.<br> Default: <code>c("BCC-CSM2-MR", "CNRM-CM6-1", "CNRM-ESM2-1", "CanESM5", "GFDL-ESM4", "IPSL-CM6A-LR", "MIROC-ES2L", "MIROC6", "MRI-ESM2-0")</code></p></dd>
+
+
+<dt>emission.scenario.var</dt>
+<dd><p>string (vector). Input which emission scenario dataset should be downloaded. Provided are the shared socio-economic pathways (SSPs) 126, 245, 370, and 585.<br> Further information on SSPs: <a href="https://www.carbonbrief.org/cmip6-the-next-generation-of-climate-models-explained" class="external-link">https://www.carbonbrief.org/cmip6-the-next-generation-of-climate-models-explained</a> and <a href="https://www.carbonbrief.org/explainer-how-shared-socioeconomic-pathways-explore-future-climate-change" class="external-link">https://www.carbonbrief.org/explainer-how-shared-socioeconomic-pathways-explore-future-climate-change</a>.<br> Default: <code>c("ssp126", "ssp245", "ssp370", "ssp585")</code></p></dd>
+
+
+<dt>time.interval.var</dt>
+<dd><p>string (vector). Averaged monthly values over a 20 year period. Periodes availabe are: 2021-2040, 2041-2060, 2061-2080, 2081-2100. <br> Default: <code>c("2021-2040", "2041-2060", "2061-2080", "2081-2100")</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped.<br> If <code>FALSE</code>; clip.shapefile, buffer, clip.extent will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format.<br> If <code>TRUE</code> a new subdirectory is created and the rawdata is saved there. If "clipping" is <code>TRUE</code> the clipped raster files are also saved as ASCII grids. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>keep.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be "zipped". <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted. If the "combine.raw.zip"-option is <code>TRUE</code>, raw-data is still available in the zipped file. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>WorldClim 2.1 CMIP6 Future climate datasets for the periods of 2021-2040, 2041-2060, 2061-2080 and/or 2081-2100.</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time depending on the spatial resolution. <br> **The 30 arc-second resolution is not yet available. It was scheduled to be released by March 2020 but until March 2021 no data was released publicly.**</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>S. E. Fick and R. J. Hijmans. "WorldClim 2: new 1-km spatial resolution climate surfaces for global land areas". In: _International Journal of Climatology_ 37.12 (Okt. 2017), pp. 4302-4315. DOI: 10.1002/joc.5086. &lt;URL:https://doi.org/10.1002/joc.5086&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="co"># Bioclim</span></span></span>
+<span class="r-in"><span><span class="fu">WorldClim.CMIP_6.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"bio"</span>,</span></span>
+<span class="r-in"><span>                           bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                           resolution <span class="op">=</span> <span class="st">"10min"</span>,</span></span>
+<span class="r-in"><span>                           model.var <span class="op">=</span> <span class="st">"MIROC6"</span>,</span></span>
+<span class="r-in"><span>                           emission.scenario.var <span class="op">=</span> <span class="st">"ssp126"</span>,</span></span>
+<span class="r-in"><span>                           time.interval.var <span class="op">=</span> <span class="st">"2021-2040"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="co"># Precipitation</span></span></span>
+<span class="r-in"><span><span class="fu">WorldClim.CMIP_6.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>,</span></span>
+<span class="r-in"><span>                           month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                           resolution <span class="op">=</span> <span class="st">"10min"</span>,</span></span>
+<span class="r-in"><span>                           model.var <span class="op">=</span> <span class="st">"MIROC6"</span>,</span></span>
+<span class="r-in"><span>                           emission.scenario.var <span class="op">=</span> <span class="st">"ssp126"</span>,</span></span>
+<span class="r-in"><span>                           time.interval.var <span class="op">=</span> <span class="st">"2021-2040"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/WorldClim.HistClim.download.html b/docs/reference/WorldClim.HistClim.download.html
new file mode 100644
index 0000000000000000000000000000000000000000..8f8d93ecbfe5177ca03cf27bcb34b0cb78cda21a
--- /dev/null
+++ b/docs/reference/WorldClim.HistClim.download.html
@@ -0,0 +1,193 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Function for downloading the WorldClim historical climate dataset — WorldClim.HistClim.download • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Function for downloading the WorldClim historical climate dataset — WorldClim.HistClim.download"><meta property="og:description" content='This function supports the download, pre-processing and management of the WorldClim historical climate dataset. This comprises of monthly precipitation sums (mm), temperature (average, maximum, minimum; °C), monthly solar radiation sums (kJ m-2 day-1), wind speed (m s-1), water vapor pressure (kPa), and annual chracteristics (19 bioclimatic variables). Also an elevation raster is provided. To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included. Optional an output of a .bib-file of the cited literature can be retrieved. For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Function for downloading the WorldClim historical climate dataset</h1>
+    
+    <div class="hidden name"><code>WorldClim.HistClim.download.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function supports the download, pre-processing and management of the WorldClim historical climate dataset.<br> This comprises of monthly precipitation sums (mm), temperature (average, maximum, minimum; °C), monthly solar radiation sums (kJ m-2 day-1), wind speed (m s-1), water vapor pressure (kPa), and annual chracteristics (19 bioclimatic variables). Also an elevation raster is provided.<br> To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.<br> Optional an output of a .bib-file of the cited literature can be retrieved.<br> For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">WorldClim.HistClim.download</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  parameter <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"prec"</span>, <span class="st">"temp"</span>, <span class="st">"tmax"</span>, <span class="st">"tmin"</span>, <span class="st">"srad"</span>, <span class="st">"wind"</span>, <span class="st">"vapr"</span>, <span class="st">"bio"</span>, <span class="st">"elev"</span><span class="op">)</span>,</span>
+<span>  bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">19</span><span class="op">)</span>,</span>
+<span>  month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">12</span><span class="op">)</span>,</span>
+<span>  resolution <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"10min"</span>, <span class="st">"5min"</span>, <span class="st">"2.5min"</span>, <span class="st">"30s"</span><span class="op">)</span>,</span>
+<span>  version.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"1.4"</span>, <span class="st">"2.1"</span><span class="op">)</span>,</span>
+<span>  clipping <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  stacking.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  keep.raw.zip <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  delete.raw.data <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  save.bib.file <span class="op">=</span> <span class="cn">TRUE</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string. Input where the datasets should be saved. <br> Default: Working Directory.</p></dd>
+
+
+<dt>parameter</dt>
+<dd><p>string (vector). Input of parameters which should be downloaded. <br> Default: <code>c("prec", "temp", "tmax","tmin", "srad", "wind", "vapr", "bio", "elev").</code></p></dd>
+
+
+<dt>bio.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: <a href="https://www.worldclim.org/data/bioclim.html" class="external-link">https://www.worldclim.org/data/bioclim.html</a>. <br> Default: <code>c(1:19)</code></p></dd>
+
+
+<dt>month.var</dt>
+<dd><p>integer (vector). Input which monthly data should be downloaded. <br> Default: <code>c(1:12)</code></p></dd>
+
+
+<dt>resolution</dt>
+<dd><p>string (vector). Ranging from a 10 arc-minute resolution over 5 and 2.5 arc-minute to 30 arc-second resolution.<br> Default: <code>c("10m", "5m", "2.5m", "30s")</code></p></dd>
+
+
+<dt>version.var</dt>
+<dd><p>string (vector). Input which version of the dataset should be downloaded. Multiple selection is possible. <br> Default:  <code>c("1.4", "2.1")</code></p></dd>
+
+
+<dt>clipping</dt>
+<dd><p>logical. Input whether the downloaded data should be clipped. See <code><a href="clipping.tif.html">clipping.tif</a></code> for more information. <br> If <code>FALSE</code>: <code>clip.shapefile</code>, <code>buffer</code>, <code>clip.extent</code> will be ignored. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string. Input which shapefile should be used for clipping. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether files should be converted into the ASCII format. See <code><a href="convert.to.asc.html">convert.to.asc</a></code> for more information.<br> If <code>TRUE</code>: a new subdirectory is created and the rawdata is saved there. <br> If the parameter <code>clipping</code> is also <code>TRUE</code>: the clipped raster files are also saved as ASCII grids. <br>  Default: <code>FALSE</code></p></dd>
+
+
+<dt>stacking.data</dt>
+<dd><p>logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. See <code><a href="stacking.downloaded.data.html">stacking.downloaded.data</a></code> for more information. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>keep.raw.zip</dt>
+<dd><p>logical. Should the downloaded raw-data be provided as "zip"-file. See <code><a href="combine.raw.in.zip.html">combine.raw.in.zip</a></code> for more information. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>delete.raw.data</dt>
+<dd><p>logical. Should the downloaded raw-data be deleted. <br> If the "combine.raw.zip"-option is <code>TRUE</code>: raw-data is still available in the zipped file. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>save.bib.file</dt>
+<dd><p>logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. See <code><a href="save.citation.html">save.citation</a></code> for more information. <br> Default: <code>TRUE</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>WorldClim climate datasets for the period of 1960-1990 (for v1.4) and/or 1970-2000 (for v2.1).</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>Please note that  solar radiation, wind speed, water vapor pressure, bioclimatic parameters, and elevation raster are only provided by the WorldClim Version 2.1 (current version).</p>
+<p>Please note also that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time depending on the spatial resolution.</p>
+    </div>
+    <div id="references">
+    <h2>References</h2>
+    <p>R. J. Hijmans, S. E. Cameron, J. L. Parra, et al. "Very high resolution interpolated climate surfaces for global land areas". In: _International Journal of Climatology_ 25.15 (2005), pp. 1965-1978. DOI: 10.1002/joc.1276. &lt;URL: https://doi.org/10.1002/joc.1276&gt;.</p>
+<p>S. E. Fick and R. J. Hijmans. "WorldClim 2: new 1-km spatial resolution climate surfaces for global land areas". In: _International Journal of Climatology_ 37.12 (Okt. 2017), pp. 4302-4315. DOI: 10.1002/joc.5086. &lt;URL:https://doi.org/10.1002/joc.5086&gt;.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="co"># Bioclim</span></span></span>
+<span class="r-in"><span><span class="fu">WorldClim.HistClim.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"bio"</span>,</span></span>
+<span class="r-in"><span>                            bio.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                            resolution <span class="op">=</span> <span class="st">"10min"</span>,</span></span>
+<span class="r-in"><span>                            version.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"1.4"</span>, <span class="st">"2.1"</span><span class="op">)</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="co"># Precipitation</span></span></span>
+<span class="r-in"><span><span class="fu">WorldClim.HistClim.download</span><span class="op">(</span>parameter <span class="op">=</span> <span class="st">"prec"</span>,</span></span>
+<span class="r-in"><span>                             month.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">12</span><span class="op">)</span>,</span></span>
+<span class="r-in"><span>                             resolution <span class="op">=</span> <span class="st">"10min"</span>,</span></span>
+<span class="r-in"><span>                             version.var <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"1.4"</span>, <span class="st">"2.1"</span><span class="op">)</span></span></span>
+<span class="r-in"><span>                             <span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/clipping.tif.html b/docs/reference/clipping.tif.html
new file mode 100644
index 0000000000000000000000000000000000000000..a0053663254897cd3087e9c7866e8fc8426c43e1
--- /dev/null
+++ b/docs/reference/clipping.tif.html
@@ -0,0 +1,129 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Clipping .tif-raster files in one specified directory — clipping.tif • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Clipping .tif-raster files in one specified directory — clipping.tif"><meta property="og:description" content="This function clips all .tif-raster files at a defined extent (e.g., shapefile or coordinates). Additionally, a buffer can be specified and added to the clipping extent. For user convenience, clipped rasters will be saved to a specified directory (clip.save.location). Furthermore, an option for conversion to ASCII format is given."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Clipping .tif-raster files in one specified directory</h1>
+    
+    <div class="hidden name"><code>clipping.tif.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function clips all .tif-raster files at a defined extent (e.g., shapefile or coordinates). Additionally, a buffer can be specified and added to the clipping extent. For user convenience, clipped rasters will be saved to a specified directory (clip.save.location). Furthermore, an option for conversion to ASCII format is given.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">clipping.tif</span><span class="op">(</span></span>
+<span>  clip.save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  clip.shapefile <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  clip.extent <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="op">-</span><span class="fl">180</span>, <span class="fl">180</span>, <span class="op">-</span><span class="fl">90</span>, <span class="fl">90</span><span class="op">)</span>,</span>
+<span>  buffer <span class="op">=</span> <span class="fl">0</span>,</span>
+<span>  convert.files.to.asc <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  time.stamp.var <span class="op">=</span> <span class="fu">str_replace_all</span><span class="op">(</span><span class="fu">str_replace_all</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/paste.html" class="external-link">paste0</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Sys.time.html" class="external-link">Sys.time</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span>, pattern <span class="op">=</span> <span class="st">":"</span>,</span>
+<span>    replacement <span class="op">=</span> <span class="st">"-"</span><span class="op">)</span>, pattern <span class="op">=</span> <span class="st">" "</span>, replacement <span class="op">=</span> <span class="st">"_"</span><span class="op">)</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>clip.save.location</dt>
+<dd><p>string (directory path). The directory where .tif-raster files are saved. <br> Default: <code>"./"</code> (Working directory)</p></dd>
+
+
+<dt>clip.shapefile</dt>
+<dd><p>string (file path to a ESRI shapefile with the file extension ".shp"). <br> Extent of this shapefile is used to clip the .tif-raster files if no buffer is specified. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>clip.extent</dt>
+<dd><p>numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").<br> It is used if no shapefile input is specified. If also left unspecified, the maximum extent (of the raster file) is used.<br> Default: <code>c(-180, 180, -90, 90)</code></p></dd>
+
+
+<dt>buffer</dt>
+<dd><p>numeric. Input of decimal degrees of buffer around the shapefile and/or extent. <br> Default: <code>0</code></p></dd>
+
+
+<dt>convert.files.to.asc</dt>
+<dd><p>logical. Input whether the clipped output should be converted into ASCII-Grids. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>time.stamp.var</dt>
+<dd><p>string. Timestamp to create unique directories for multiple run outputs. <br> Default: <code>stringr::str_replace_all(stringr::str_replace_all(paste0(</code> <br><code>Sys.time()),pattern = ":",replacement = "-"))</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>This function returns, depending on the parameter <code>convert.files.to.asc</code> whether it is ASCII or tif format, clipped raster files to a new directory. This directory is automatically created.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">clipping.tif</span><span class="op">(</span>clip.save.location <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/system.file.html" class="external-link">system.file</a></span><span class="op">(</span><span class="st">"pictures/"</span>, package <span class="op">=</span> <span class="st">"rgdal"</span><span class="op">)</span><span class="op">)</span></span></span>
+<span class="r-wrn co"><span class="r-pr">#&gt;</span> <span class="warning">Warning: </span>Extent is not overlapping for the 'cea'-Raster. Please consider adjusting the extent</span>
+<span class="r-wrn co"><span class="r-pr">#&gt;</span> <span class="warning">Warning: </span>Extent is not overlapping for the 'erdas_spnad83'-Raster. Please consider adjusting the extent</span>
+<span class="r-in"><span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/combine.raw.in.zip.html b/docs/reference/combine.raw.in.zip.html
new file mode 100644
index 0000000000000000000000000000000000000000..10a18be73a3172ae8044b82ba3e17de281f1cc20
--- /dev/null
+++ b/docs/reference/combine.raw.in.zip.html
@@ -0,0 +1,105 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Combines all .tif-raster files into a .zip-file — combine.raw.in.zip • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Combines all .tif-raster files into a .zip-file — combine.raw.in.zip"><meta property="og:description" content="Combines and saves all .tif-raster files to a .zip-file, whereas name and saving location can be specified."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Combines all .tif-raster files into a .zip-file</h1>
+    
+    <div class="hidden name"><code>combine.raw.in.zip.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>Combines and saves all .tif-raster files to a .zip-file, whereas name and saving location can be specified.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">combine.raw.in.zip</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  zip.name <span class="op">=</span> <span class="st">"RAWDATA"</span>,</span>
+<span>  unique.name <span class="op">=</span> <span class="cn">TRUE</span>,</span>
+<span>  time.stamp.var <span class="op">=</span> <span class="fu">stringr</span><span class="fu">::</span><span class="fu"><a href="https://stringr.tidyverse.org/reference/str_replace.html" class="external-link">str_replace_all</a></span><span class="op">(</span><span class="fu">stringr</span><span class="fu">::</span><span class="fu"><a href="https://stringr.tidyverse.org/reference/str_replace.html" class="external-link">str_replace_all</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/paste.html" class="external-link">paste0</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Sys.time.html" class="external-link">Sys.time</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span>,</span>
+<span>    pattern <span class="op">=</span> <span class="st">":"</span>, replacement <span class="op">=</span> <span class="st">"-"</span><span class="op">)</span>, pattern <span class="op">=</span> <span class="st">" "</span>, replacement <span class="op">=</span> <span class="st">"_"</span><span class="op">)</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string (directory path). The directory where .tif-raster files are saved and the created/updated .zip file will be saved. <br> Default: <code>"./"</code> (Working directory)</p></dd>
+
+
+<dt>zip.name</dt>
+<dd><p>string. Input how the .zip-file should be named. <br> Default: <code>"RAWDATA"</code></p></dd>
+
+
+<dt>unique.name</dt>
+<dd><p>logical. Should the .zip-file be named uniquely? If TRUE the current system time is added as a timestamp to create unique directories for multiple run outputs. <br> Default: <code>TRUE</code></p></dd>
+
+
+<dt>time.stamp.var</dt>
+<dd><p>string. Input of current system time or, if called within another function the initial time of the execution. <br> Default: <code>stringr::str_replace_all(stringr::str_replace_all(paste0(</code> <br><code>Sys.time()),pattern = ":",replacement = "-"))</code></p></dd>
+
+</dl></div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/convert.to.asc.html b/docs/reference/convert.to.asc.html
new file mode 100644
index 0000000000000000000000000000000000000000..45c34ac74744501e30566b5f53a50a2dfd148c7b
--- /dev/null
+++ b/docs/reference/convert.to.asc.html
@@ -0,0 +1,106 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Converting .tif-raster files in one specified directory into ASCII-Grids — convert.to.asc • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Converting .tif-raster files in one specified directory into ASCII-Grids — convert.to.asc"><meta property="og:description" content='This function converts and saves all .tif-raster files to ASCII-file format to a specified location and creates a new folder named "ASCII_files" with a unique timestamp of the current system time.'><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Converting .tif-raster files in one specified directory into ASCII-Grids</h1>
+    
+    <div class="hidden name"><code>convert.to.asc.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function converts and saves all .tif-raster files to ASCII-file format to a specified location and creates a new folder named "ASCII_files" with a unique timestamp of the current system time.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">convert.to.asc</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  time.stamp.var <span class="op">=</span> <span class="fu">str_replace_all</span><span class="op">(</span><span class="fu">str_replace_all</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/paste.html" class="external-link">paste0</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Sys.time.html" class="external-link">Sys.time</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span>, pattern <span class="op">=</span> <span class="st">":"</span>,</span>
+<span>    replacement <span class="op">=</span> <span class="st">"-"</span><span class="op">)</span>, pattern <span class="op">=</span> <span class="st">" "</span>, replacement <span class="op">=</span> <span class="st">"_"</span><span class="op">)</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string (directory path). The directory where .tif-raster files are saved. <br> Default: <code>"./"</code> (Working directory)</p></dd>
+
+
+<dt>time.stamp.var</dt>
+<dd><p>string. Timestamp to create unique directories for multiple run outputs. <br> Default: <code>stringr::str_replace_all(stringr::str_replace_all(paste0(</code> <br><code>Sys.time()),pattern = ":",replacement = "-"))</code></p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>This function returns ASCII-format raster files to a new directory. This directory is dynamically created.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">convert.to.asc</span><span class="op">(</span>save.location <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/system.file.html" class="external-link">system.file</a></span><span class="op">(</span><span class="st">"pictures/"</span>, package <span class="op">=</span> <span class="st">"rgdal"</span><span class="op">)</span><span class="op">)</span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/getDownloadSize.html b/docs/reference/getDownloadSize.html
new file mode 100644
index 0000000000000000000000000000000000000000..8316fac53b37d855b1f5addb126229c09d9675f1
--- /dev/null
+++ b/docs/reference/getDownloadSize.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Get Download Size — getDownloadSize • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Get Download Size — getDownloadSize"><meta property="og:description" content="Helper function that returns the download size of a vector of URLs"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Get Download Size</h1>
+    
+    <div class="hidden name"><code>getDownloadSize.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>Helper function that returns the download size of a vector of URLs</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">getDownloadSize</span><span class="op">(</span><span class="va">URLVector</span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>URLVector</dt>
+<dd><p>Character vector. Multiple vectors of valid URLs.</p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>Download size as double numeric value</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/index.html b/docs/reference/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e99c73f475a80beb3dadbf4601300abb2acd06e
--- /dev/null
+++ b/docs/reference/index.html
@@ -0,0 +1,143 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Function reference • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Function reference"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-index">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="contents col-md-9">
+    <div class="page-header">
+      <h1>Reference</h1>
+    </div>
+
+    <table class="ref-index"><colgroup><col class="alias"><col class="title"></colgroup><tbody><tr><th colspan="2">
+          <h2 id="all-functions">All functions <a href="#all-functions" class="anchor" aria-hidden="true"></a></h2>
+          <p class="section-desc"></p>
+        </th>
+      </tr></tbody><tbody><tr><td>
+          <p><code><a href="Chelsa.Clim.download.deprecated.html">Chelsa.Clim.download.deprecated()</a></code> </p>
+        </td>
+        <td><p>Deprecated function for downloading the CHELSA climate dataset (1979-2013)</p></td>
+      </tr><tr><td>
+          <p><code><a href="Chelsa.Clim.download.html">Chelsa.Clim.download()</a></code> </p>
+        </td>
+        <td><p>Function for downloading the CHELSA climate dataset (1979-2013)</p></td>
+      </tr><tr><td>
+          <p><code><a href="Chelsa.CMIP_5.download.html">Chelsa.CMIP_5.download()</a></code> </p>
+        </td>
+        <td><p>Function for downloading CHELSA CMIP 5 future climatologies for the years 2041-2060 and 2061-2080</p></td>
+      </tr><tr><td>
+          <p><code><a href="Chelsa.CMIP_6.download.html">Chelsa.CMIP_6.download()</a></code> </p>
+        </td>
+        <td><p>Function for downloading CHELSA CMIP 6 future climatologies for the years 2011-2040, 2041-2070, and 2071-2100</p></td>
+      </tr><tr><td>
+          <p><code><a href="Chelsa.CRUts.download.html">Chelsa.CRUts.download()</a></code> </p>
+        </td>
+        <td><p>CHELSA CRU Timeseries Download</p></td>
+      </tr><tr><td>
+          <p><code><a href="Chelsa.lgm.download.html">Chelsa.lgm.download()</a></code> </p>
+        </td>
+        <td><p>Function for downloading CHELSA Last Glacial Maximum datasets</p></td>
+      </tr><tr><td>
+          <p><code><a href="Chelsa.timeseries.download.html">Chelsa.timeseries.download()</a></code> </p>
+        </td>
+        <td><p>CHELSA Timeseries Download</p></td>
+      </tr><tr><td>
+          <p><code><a href="clipping.tif.html">clipping.tif()</a></code> </p>
+        </td>
+        <td><p>Clipping .tif-raster files in one specified directory</p></td>
+      </tr><tr><td>
+          <p><code><a href="combine.raw.in.zip.html">combine.raw.in.zip()</a></code> </p>
+        </td>
+        <td><p>Combines all .tif-raster files into a .zip-file</p></td>
+      </tr><tr><td>
+          <p><code><a href="convert.to.asc.html">convert.to.asc()</a></code> </p>
+        </td>
+        <td><p>Converting .tif-raster files in one specified directory into ASCII-Grids</p></td>
+      </tr><tr><td>
+          <p><code><a href="getDownloadSize.html">getDownloadSize()</a></code> </p>
+        </td>
+        <td><p>Get Download Size</p></td>
+      </tr><tr><td>
+          <p><code><a href="process.raster.int.doub.html">process.raster.int.doub()</a></code> </p>
+        </td>
+        <td><p>Preprocessing data to get real values</p></td>
+      </tr><tr><td>
+          <p><code><a href="process.raster.offset.html">process.raster.offset()</a></code> </p>
+        </td>
+        <td><p>Preprocessing data to undo offsetting values</p></td>
+      </tr><tr><td>
+          <p><code><a href="save.citation.html">save.citation()</a></code> </p>
+        </td>
+        <td><p>Save the citation of the downloaded dataset</p></td>
+      </tr><tr><td>
+          <p><code><a href="stacking.downloaded.data.html">stacking.downloaded.data()</a></code> </p>
+        </td>
+        <td><p>Stacking .tif-raster files in one specified directory</p></td>
+      </tr><tr><td>
+          <p><code><a href="WorldClim.CMIP_5.download.html">WorldClim.CMIP_5.download()</a></code> </p>
+        </td>
+        <td><p>Function for downloading the WorldClim v1.4 CMIP5 future climate dataset</p></td>
+      </tr><tr><td>
+          <p><code><a href="WorldClim.CMIP_6.download.html">WorldClim.CMIP_6.download()</a></code> </p>
+        </td>
+        <td><p>Function for downloading the WorldClim v2.1 CMIP6 future climate dataset</p></td>
+      </tr><tr><td>
+          <p><code><a href="WorldClim.HistClim.download.html">WorldClim.HistClim.download()</a></code> </p>
+        </td>
+        <td><p>Function for downloading the WorldClim historical climate dataset</p></td>
+      </tr></tbody></table></div>
+
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/process.raster.int.doub.html b/docs/reference/process.raster.int.doub.html
new file mode 100644
index 0000000000000000000000000000000000000000..b10a60fd71630c8dc604bd6b51b2d981d5681dba
--- /dev/null
+++ b/docs/reference/process.raster.int.doub.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Preprocessing data to get real values — process.raster.int.doub • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Preprocessing data to get real values — process.raster.int.doub"><meta property="og:description" content="Takes input SpatRaster, processes the integer values into double values, and returns the SpatRaster."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Preprocessing data to get real values</h1>
+    
+    <div class="hidden name"><code>process.raster.int.doub.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>Takes input SpatRaster, processes the integer values into double values, and returns the SpatRaster.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">process.raster.int.doub</span><span class="op">(</span>raster.layer <span class="op">=</span> <span class="cn">NULL</span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>raster.layer</dt>
+<dd><p>SpatRaster to be processed</p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>SpatRaster</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/process.raster.offset.html b/docs/reference/process.raster.offset.html
new file mode 100644
index 0000000000000000000000000000000000000000..5c187360c584a259a47f744edec48a750eebdd4a
--- /dev/null
+++ b/docs/reference/process.raster.offset.html
@@ -0,0 +1,97 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Preprocessing data to undo offsetting values — process.raster.offset • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Preprocessing data to undo offsetting values — process.raster.offset"><meta property="og:description" content="Takes input SpatRaster, deletes offset, and returns the SpatRaster."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Preprocessing data to undo offsetting values</h1>
+    
+    <div class="hidden name"><code>process.raster.offset.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>Takes input SpatRaster, deletes offset, and returns the SpatRaster.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">process.raster.offset</span><span class="op">(</span>raster.layer <span class="op">=</span> <span class="cn">NULL</span>, offset <span class="op">=</span> <span class="op">-</span><span class="fl">273.15</span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>raster.layer</dt>
+<dd><p>SpatRaster to be processed.</p></dd>
+
+
+<dt>offset</dt>
+<dd><p>Numerical value to be offsetted. Default: -273.15.</p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>SpatRaster</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/save.citation.html b/docs/reference/save.citation.html
new file mode 100644
index 0000000000000000000000000000000000000000..8b11cc087473ec51e6a9c8e3ceb8ae1d5b10dd01
--- /dev/null
+++ b/docs/reference/save.citation.html
@@ -0,0 +1,113 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Save the citation of the downloaded dataset — save.citation • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Save the citation of the downloaded dataset — save.citation"><meta property="og:description" content="Saves the citation of the downloaded dataset into a BibTex-file in the working directory."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Save the citation of the downloaded dataset</h1>
+    
+    <div class="hidden name"><code>save.citation.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>Saves the citation of the downloaded dataset into a BibTex-file in the working directory.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">save.citation</span><span class="op">(</span></span>
+<span>  save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  dataSetName <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"CHELSA"</span>, <span class="st">"WorldClim1.4"</span>, <span class="st">"WorldClim2.1"</span><span class="op">)</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>save.location</dt>
+<dd><p>string (directory path). Where the BibTex-file will be saved. <br> Default: <code>"./"</code> (Working Directory)</p></dd>
+
+
+<dt>dataSetName</dt>
+<dd><p>string (vector). Specifies which dataset was downloaded or which citation should be saved. <br> Default: <code>c("Chelsa1.2", "WorldClim1.4", "WorldClim2.1")</code> (all available datasets)</p></dd>
+
+</dl></div>
+    <div id="value">
+    <h2>Value</h2>
+    
+
+<p>BibTex-file with biliography of the downloaded dataset</p>
+    </div>
+    <div id="note">
+    <h2>Note</h2>
+    <p>DISCLAIMER: No warranty or liability! The citations are provided without any warranty of any kind whatsoever, either expressed or implied, including warranties of merchantability and fitness for a particular purpose. The package author will not be responsible for any incomplete citation of datasets or climate data products downloaded through this package.</p>
+    </div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+    <div id="ref-examples">
+    <h2>Examples</h2>
+    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
+<span class="r-in"><span><span class="fu">save.citation</span><span class="op">(</span>dataSetName <span class="op">=</span> <span class="st">"Chelsa"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="fu">save.citation</span><span class="op">(</span>dataSetName <span class="op">=</span> <span class="st">"WorldClim1.4"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="fu">save.citation</span><span class="op">(</span>dataSetName <span class="op">=</span> <span class="st">"WorldClim2.1"</span><span class="op">)</span></span></span>
+<span class="r-in"><span><span class="op">}</span></span></span>
+</code></pre></div>
+    </div>
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/reference/stacking.downloaded.data.html b/docs/reference/stacking.downloaded.data.html
new file mode 100644
index 0000000000000000000000000000000000000000..c897874e78556e06db3831d413f9a936e3c583c3
--- /dev/null
+++ b/docs/reference/stacking.downloaded.data.html
@@ -0,0 +1,120 @@
+<!DOCTYPE html>
+<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Stacking .tif-raster files in one specified directory — stacking.downloaded.data • ClimDatDownloadR</title><!-- jquery --><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script><!-- Bootstrap --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous"><script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script><!-- bootstrap-toc --><link rel="stylesheet" href="../bootstrap-toc.css"><script src="../bootstrap-toc.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- pkgdown --><link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Stacking .tif-raster files in one specified directory — stacking.downloaded.data"><meta property="og:description" content="This function stacks all .tif-raster files of a specified directory and saves the stacked layers as a netCDF-file in that directory."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
+<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
+<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+<![endif]--></head><body data-spy="scroll" data-target="#toc">
+    
+
+    <div class="container template-reference-topic">
+      <header><div class="navbar navbar-default navbar-fixed-top" role="navigation">
+  <div class="container">
+    <div class="navbar-header">
+      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
+        <span class="sr-only">Toggle navigation</span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+        <span class="icon-bar"></span>
+      </button>
+      <span class="navbar-brand">
+        <a class="navbar-link" href="../index.html">ClimDatDownloadR</a>
+        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="">0.1.7</span>
+      </span>
+    </div>
+
+    <div id="navbar" class="navbar-collapse collapse">
+      <ul class="nav navbar-nav"><li>
+  <a href="../articles/ClimDatDownloadR.html">Get started</a>
+</li>
+<li>
+  <a href="../reference/index.html">Reference</a>
+</li>
+      </ul><ul class="nav navbar-nav navbar-right"></ul></div><!--/.nav-collapse -->
+  </div><!--/.container -->
+</div><!--/.navbar -->
+
+      
+
+      </header><div class="row">
+  <div class="col-md-9 contents">
+    <div class="page-header">
+    <h1>Stacking .tif-raster files in one specified directory</h1>
+    
+    <div class="hidden name"><code>stacking.downloaded.data.Rd</code></div>
+    </div>
+
+    <div class="ref-description">
+    <p>This function stacks all .tif-raster files of a specified directory and saves the stacked layers as a netCDF-file in that directory.</p>
+    </div>
+
+    <div id="ref-usage">
+    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">stacking.downloaded.data</span><span class="op">(</span></span>
+<span>  stack.save.location <span class="op">=</span> <span class="st">"./"</span>,</span>
+<span>  stack.clipped <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  parameter.var <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  variable.numbers <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fu"><a href="https://rdrr.io/r/base/length.html" class="external-link">length</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/list.files.html" class="external-link">list.files</a></span><span class="op">(</span><span class="st">"./"</span>, pattern <span class="op">=</span> <span class="st">".tif"</span><span class="op">)</span><span class="op">)</span><span class="op">)</span>,</span>
+<span>  stack.time.series <span class="op">=</span> <span class="cn">FALSE</span>,</span>
+<span>  time.series <span class="op">=</span> <span class="cn">NULL</span>,</span>
+<span>  time.stamp.var <span class="op">=</span> <span class="fu">stringr</span><span class="fu">::</span><span class="fu"><a href="https://stringr.tidyverse.org/reference/str_replace.html" class="external-link">str_replace_all</a></span><span class="op">(</span><span class="fu">stringr</span><span class="fu">::</span><span class="fu"><a href="https://stringr.tidyverse.org/reference/str_replace.html" class="external-link">str_replace_all</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/paste.html" class="external-link">paste0</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Sys.time.html" class="external-link">Sys.time</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span>,</span>
+<span>    pattern <span class="op">=</span> <span class="st">":"</span>, replacement <span class="op">=</span> <span class="st">"-"</span><span class="op">)</span>, pattern <span class="op">=</span> <span class="st">" "</span>, replacement <span class="op">=</span> <span class="st">"_"</span><span class="op">)</span></span>
+<span><span class="op">)</span></span></code></pre></div>
+    </div>
+
+    <div id="arguments">
+    <h2>Arguments</h2>
+    <dl><dt>stack.save.location</dt>
+<dd><p>string (directory path). The directory where .tif-raster files are saved. Raster-files must be in a Geographic Coordinate System (in arc-degrees) <br> Default: <code>"./"</code> (Working directory)</p></dd>
+
+
+<dt>stack.clipped</dt>
+<dd><p>logical. Input whether clipped data should be stacked and saved as netCDF as well. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>parameter.var</dt>
+<dd><p>string. Input whether bioclim or climatic parameters are the input for the stacking process. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>variable.numbers</dt>
+<dd><p>numeric (vector). Input how the stack variables should be called. By default just a sequence from 1 to the number of tif-raster files are used.<br> Default: <code>c(1:length(list.files("./", pattern = ".tif")))</code></p></dd>
+
+
+<dt>stack.time.series</dt>
+<dd><p>logical. Input whether a timeseries should be stacked. <br> Default: <code>FALSE</code></p></dd>
+
+
+<dt>time.series</dt>
+<dd><p>string (vector). String input of timeseries vector. <br> Default: <code>NULL</code></p></dd>
+
+
+<dt>time.stamp.var</dt>
+<dd><p>string. Timestamp to create unique directories for multiple run outputs.<br> Default: <code>stringr::str_replace_all(stringr::str_replace_all(paste0(</code> <br><code>Sys.time()),pattern = ":",replacement = "-"))</code></p></dd>
+
+</dl></div>
+    <div id="author">
+    <h2>Author</h2>
+    <p>Helge Jentsch</p>
+    </div>
+
+  </div>
+  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
+    <nav id="toc" data-toggle="toc" class="sticky-top"><h2 data-toc-skip>Contents</h2>
+    </nav></div>
+</div>
+
+
+      <footer><div class="copyright">
+  <p></p><p>Developed by Helge Jentsch, Maria Bobrowski, Johannes Weidinger.</p>
+</div>
+
+<div class="pkgdown">
+  <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
+</div>
+
+      </footer></div>
+
+  
+
+
+  
+
+  </body></html>
+
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7463eae70337ace483b3333d17b45f57f16e6259
--- /dev/null
+++ b/docs/sitemap.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+  <url>
+    <loc>/404.html</loc>
+  </url>
+  <url>
+    <loc>/articles/ClimDatDownloadR.html</loc>
+  </url>
+  <url>
+    <loc>/articles/index.html</loc>
+  </url>
+  <url>
+    <loc>/authors.html</loc>
+  </url>
+  <url>
+    <loc>/index.html</loc>
+  </url>
+  <url>
+    <loc>/LICENSE-text.html</loc>
+  </url>
+  <url>
+    <loc>/reference/Chelsa.Clim.download.deprecated.html</loc>
+  </url>
+  <url>
+    <loc>/reference/Chelsa.Clim.download.html</loc>
+  </url>
+  <url>
+    <loc>/reference/Chelsa.CMIP_5.download.html</loc>
+  </url>
+  <url>
+    <loc>/reference/Chelsa.CMIP_6.download.html</loc>
+  </url>
+  <url>
+    <loc>/reference/Chelsa.CRUts.download.html</loc>
+  </url>
+  <url>
+    <loc>/reference/Chelsa.lgm.download.html</loc>
+  </url>
+  <url>
+    <loc>/reference/Chelsa.timeseries.download.html</loc>
+  </url>
+  <url>
+    <loc>/reference/clipping.tif.html</loc>
+  </url>
+  <url>
+    <loc>/reference/combine.raw.in.zip.html</loc>
+  </url>
+  <url>
+    <loc>/reference/convert.to.asc.html</loc>
+  </url>
+  <url>
+    <loc>/reference/getDownloadSize.html</loc>
+  </url>
+  <url>
+    <loc>/reference/index.html</loc>
+  </url>
+  <url>
+    <loc>/reference/process.raster.int.doub.html</loc>
+  </url>
+  <url>
+    <loc>/reference/process.raster.offset.html</loc>
+  </url>
+  <url>
+    <loc>/reference/save.citation.html</loc>
+  </url>
+  <url>
+    <loc>/reference/stacking.downloaded.data.html</loc>
+  </url>
+  <url>
+    <loc>/reference/WorldClim.CMIP_5.download.html</loc>
+  </url>
+  <url>
+    <loc>/reference/WorldClim.CMIP_6.download.html</loc>
+  </url>
+  <url>
+    <loc>/reference/WorldClim.HistClim.download.html</loc>
+  </url>
+</urlset>
diff --git a/inst/doc/ClimDatDownloadR.html b/inst/doc/ClimDatDownloadR.html
index 14fd609fe07927f6346f5cf92d2513a19941ea9c..011fb535ead0bf281c9c079ff052d4f4e9e95bbd 100644
--- a/inst/doc/ClimDatDownloadR.html
+++ b/inst/doc/ClimDatDownloadR.html
@@ -14,30 +14,44 @@
 
 <title>ClimDatDownloadR</title>
 
-<script src="data:application/javascript;base64,Ly8gUGFuZG9jIDIuOSBhZGRzIGF0dHJpYnV0ZXMgb24gYm90aCBoZWFkZXIgYW5kIGRpdi4gV2UgcmVtb3ZlIHRoZSBmb3JtZXIgKHRvCi8vIGJlIGNvbXBhdGlibGUgd2l0aCB0aGUgYmVoYXZpb3Igb2YgUGFuZG9jIDwgMi44KS4KZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignRE9NQ29udGVudExvYWRlZCcsIGZ1bmN0aW9uKGUpIHsKICB2YXIgaHMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCJkaXYuc2VjdGlvbltjbGFzcyo9J2xldmVsJ10gPiA6Zmlyc3QtY2hpbGQiKTsKICB2YXIgaSwgaCwgYTsKICBmb3IgKGkgPSAwOyBpIDwgaHMubGVuZ3RoOyBpKyspIHsKICAgIGggPSBoc1tpXTsKICAgIGlmICghL15oWzEtNl0kL2kudGVzdChoLnRhZ05hbWUpKSBjb250aW51ZTsgIC8vIGl0IHNob3VsZCBiZSBhIGhlYWRlciBoMS1oNgogICAgYSA9IGguYXR0cmlidXRlczsKICAgIHdoaWxlIChhLmxlbmd0aCA+IDApIGgucmVtb3ZlQXR0cmlidXRlKGFbMF0ubmFtZSk7CiAgfQp9KTsK"></script>
+<script>// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
+// be compatible with the behavior of Pandoc < 2.8).
+document.addEventListener('DOMContentLoaded', function(e) {
+  var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
+  var i, h, a;
+  for (i = 0; i < hs.length; i++) {
+    h = hs[i];
+    if (!/^h[1-6]$/i.test(h.tagName)) continue;  // it should be a header h1-h6
+    a = h.attributes;
+    while (a.length > 0) h.removeAttribute(a[0].name);
+  }
+});
+</script>
 
 <style type="text/css">
-  code{white-space: pre-wrap;}
-  span.smallcaps{font-variant: small-caps;}
-  span.underline{text-decoration: underline;}
-  div.column{display: inline-block; vertical-align: top; width: 50%;}
-  div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
-  ul.task-list{list-style: none;}
-    </style>
+code{white-space: pre-wrap;}
+span.smallcaps{font-variant: small-caps;}
+span.underline{text-decoration: underline;}
+div.column{display: inline-block; vertical-align: top; width: 50%;}
+div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
+ul.task-list{list-style: none;}
+</style>
+
 
 
 <style type="text/css">
-  code {
-    white-space: pre;
-  }
-  .sourceCode {
-    overflow: visible;
-  }
+code {
+white-space: pre;
+}
+.sourceCode {
+overflow: visible;
+}
 </style>
 <style type="text/css" data-origin="pandoc">
 pre > code.sourceCode { white-space: pre; position: relative; }
 pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
 pre > code.sourceCode > span:empty { height: 1.2em; }
+.sourceCode { overflow: visible; }
 code.sourceCode > span { color: inherit; text-decoration: inherit; }
 div.sourceCode { margin: 1em 0; }
 pre.sourceCode { margin: 0; }
@@ -49,55 +63,54 @@ pre > code.sourceCode { white-space: pre-wrap; }
 pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
 }
 pre.numberSource code
-  { counter-reset: source-line 0; }
+{ counter-reset: source-line 0; }
 pre.numberSource code > span
-  { position: relative; left: -4em; counter-increment: source-line; }
+{ position: relative; left: -4em; counter-increment: source-line; }
 pre.numberSource code > span > a:first-child::before
-  { content: counter(source-line);
-    position: relative; left: -1em; text-align: right; vertical-align: baseline;
-    border: none; display: inline-block;
-    -webkit-touch-callout: none; -webkit-user-select: none;
-    -khtml-user-select: none; -moz-user-select: none;
-    -ms-user-select: none; user-select: none;
-    padding: 0 4px; width: 4em;
-    color: #aaaaaa;
-  }
-pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa;  padding-left: 4px; }
+{ content: counter(source-line);
+position: relative; left: -1em; text-align: right; vertical-align: baseline;
+border: none; display: inline-block;
+-webkit-touch-callout: none; -webkit-user-select: none;
+-khtml-user-select: none; -moz-user-select: none;
+-ms-user-select: none; user-select: none;
+padding: 0 4px; width: 4em;
+color: #aaaaaa;
+}
+pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
 div.sourceCode
-  {   }
+{ }
 @media screen {
 pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
 }
-code span.al { color: #ff0000; font-weight: bold; } /* Alert */
-code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
-code span.at { color: #7d9029; } /* Attribute */
-code span.bn { color: #40a070; } /* BaseN */
-code span.bu { } /* BuiltIn */
-code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
-code span.ch { color: #4070a0; } /* Char */
-code span.cn { color: #880000; } /* Constant */
-code span.co { color: #60a0b0; font-style: italic; } /* Comment */
-code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
-code span.do { color: #ba2121; font-style: italic; } /* Documentation */
-code span.dt { color: #902000; } /* DataType */
-code span.dv { color: #40a070; } /* DecVal */
-code span.er { color: #ff0000; font-weight: bold; } /* Error */
-code span.ex { } /* Extension */
-code span.fl { color: #40a070; } /* Float */
-code span.fu { color: #06287e; } /* Function */
-code span.im { } /* Import */
-code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
-code span.kw { color: #007020; font-weight: bold; } /* Keyword */
-code span.op { color: #666666; } /* Operator */
-code span.ot { color: #007020; } /* Other */
-code span.pp { color: #bc7a00; } /* Preprocessor */
-code span.sc { color: #4070a0; } /* SpecialChar */
-code span.ss { color: #bb6688; } /* SpecialString */
-code span.st { color: #4070a0; } /* String */
-code span.va { color: #19177c; } /* Variable */
-code span.vs { color: #4070a0; } /* VerbatimString */
-code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
-
+code span.al { color: #ff0000; font-weight: bold; } 
+code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } 
+code span.at { color: #7d9029; } 
+code span.bn { color: #40a070; } 
+code span.bu { color: #008000; } 
+code span.cf { color: #007020; font-weight: bold; } 
+code span.ch { color: #4070a0; } 
+code span.cn { color: #880000; } 
+code span.co { color: #60a0b0; font-style: italic; } 
+code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } 
+code span.do { color: #ba2121; font-style: italic; } 
+code span.dt { color: #902000; } 
+code span.dv { color: #40a070; } 
+code span.er { color: #ff0000; font-weight: bold; } 
+code span.ex { } 
+code span.fl { color: #40a070; } 
+code span.fu { color: #06287e; } 
+code span.im { color: #008000; font-weight: bold; } 
+code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } 
+code span.kw { color: #007020; font-weight: bold; } 
+code span.op { color: #666666; } 
+code span.ot { color: #007020; } 
+code span.pp { color: #bc7a00; } 
+code span.sc { color: #4070a0; } 
+code span.ss { color: #bb6688; } 
+code span.st { color: #4070a0; } 
+code span.va { color: #19177c; } 
+code span.vs { color: #4070a0; } 
+code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } 
 </style>
 <script>
 // apply pandoc div.sourceCode style to pre.sourceCode instead
@@ -106,13 +119,20 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
   for (var i = 0; i < sheets.length; i++) {
     if (sheets[i].ownerNode.dataset["origin"] !== "pandoc") continue;
     try { var rules = sheets[i].cssRules; } catch (e) { continue; }
-    for (var j = 0; j < rules.length; j++) {
+    var j = 0;
+    while (j < rules.length) {
       var rule = rules[j];
       // check if there is a div.sourceCode rule
-      if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") continue;
+      if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") {
+        j++;
+        continue;
+      }
       var style = rule.style.cssText;
       // check if color or background-color is set
-      if (rule.style.color === '' && rule.style.backgroundColor === '') continue;
+      if (rule.style.color === '' && rule.style.backgroundColor === '') {
+        j++;
+        continue;
+      }
       // replace div.sourceCode by a pre.sourceCode rule
       sheets[i].deleteRule(j);
       sheets[i].insertRule('pre.sourceCode{' + style + '}', j);
@@ -124,7 +144,187 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 
 
 
-<link rel="stylesheet" href="data:text/css,body%20%7B%0Abackground%2Dcolor%3A%20%23fff%3B%0Amargin%3A%201em%20auto%3B%0Amax%2Dwidth%3A%20700px%3B%0Aoverflow%3A%20visible%3B%0Apadding%2Dleft%3A%202em%3B%0Apadding%2Dright%3A%202em%3B%0Afont%2Dfamily%3A%20%22Open%20Sans%22%2C%20%22Helvetica%20Neue%22%2C%20Helvetica%2C%20Arial%2C%20sans%2Dserif%3B%0Afont%2Dsize%3A%2014px%3B%0Aline%2Dheight%3A%201%2E35%3B%0A%7D%0A%23TOC%20%7B%0Aclear%3A%20both%3B%0Amargin%3A%200%200%2010px%2010px%3B%0Apadding%3A%204px%3B%0Awidth%3A%20400px%3B%0Aborder%3A%201px%20solid%20%23CCCCCC%3B%0Aborder%2Dradius%3A%205px%3B%0Abackground%2Dcolor%3A%20%23f6f6f6%3B%0Afont%2Dsize%3A%2013px%3B%0Aline%2Dheight%3A%201%2E3%3B%0A%7D%0A%23TOC%20%2Etoctitle%20%7B%0Afont%2Dweight%3A%20bold%3B%0Afont%2Dsize%3A%2015px%3B%0Amargin%2Dleft%3A%205px%3B%0A%7D%0A%23TOC%20ul%20%7B%0Apadding%2Dleft%3A%2040px%3B%0Amargin%2Dleft%3A%20%2D1%2E5em%3B%0Amargin%2Dtop%3A%205px%3B%0Amargin%2Dbottom%3A%205px%3B%0A%7D%0A%23TOC%20ul%20ul%20%7B%0Amargin%2Dleft%3A%20%2D2em%3B%0A%7D%0A%23TOC%20li%20%7B%0Aline%2Dheight%3A%2016px%3B%0A%7D%0Atable%20%7B%0Amargin%3A%201em%20auto%3B%0Aborder%2Dwidth%3A%201px%3B%0Aborder%2Dcolor%3A%20%23DDDDDD%3B%0Aborder%2Dstyle%3A%20outset%3B%0Aborder%2Dcollapse%3A%20collapse%3B%0A%7D%0Atable%20th%20%7B%0Aborder%2Dwidth%3A%202px%3B%0Apadding%3A%205px%3B%0Aborder%2Dstyle%3A%20inset%3B%0A%7D%0Atable%20td%20%7B%0Aborder%2Dwidth%3A%201px%3B%0Aborder%2Dstyle%3A%20inset%3B%0Aline%2Dheight%3A%2018px%3B%0Apadding%3A%205px%205px%3B%0A%7D%0Atable%2C%20table%20th%2C%20table%20td%20%7B%0Aborder%2Dleft%2Dstyle%3A%20none%3B%0Aborder%2Dright%2Dstyle%3A%20none%3B%0A%7D%0Atable%20thead%2C%20table%20tr%2Eeven%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0Ap%20%7B%0Amargin%3A%200%2E5em%200%3B%0A%7D%0Ablockquote%20%7B%0Abackground%2Dcolor%3A%20%23f6f6f6%3B%0Apadding%3A%200%2E25em%200%2E75em%3B%0A%7D%0Ahr%20%7B%0Aborder%2Dstyle%3A%20solid%3B%0Aborder%3A%20none%3B%0Aborder%2Dtop%3A%201px%20solid%20%23777%3B%0Amargin%3A%2028px%200%3B%0A%7D%0Adl%20%7B%0Amargin%2Dleft%3A%200%3B%0A%7D%0Adl%20dd%20%7B%0Amargin%2Dbottom%3A%2013px%3B%0Amargin%2Dleft%3A%2013px%3B%0A%7D%0Adl%20dt%20%7B%0Afont%2Dweight%3A%20bold%3B%0A%7D%0Aul%20%7B%0Amargin%2Dtop%3A%200%3B%0A%7D%0Aul%20li%20%7B%0Alist%2Dstyle%3A%20circle%20outside%3B%0A%7D%0Aul%20ul%20%7B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Apre%2C%20code%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0Aborder%2Dradius%3A%203px%3B%0Acolor%3A%20%23333%3B%0Awhite%2Dspace%3A%20pre%2Dwrap%3B%20%0A%7D%0Apre%20%7B%0Aborder%2Dradius%3A%203px%3B%0Amargin%3A%205px%200px%2010px%200px%3B%0Apadding%3A%2010px%3B%0A%7D%0Apre%3Anot%28%5Bclass%5D%29%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0Acode%20%7B%0Afont%2Dfamily%3A%20Consolas%2C%20Monaco%2C%20%27Courier%20New%27%2C%20monospace%3B%0Afont%2Dsize%3A%2085%25%3B%0A%7D%0Ap%20%3E%20code%2C%20li%20%3E%20code%20%7B%0Apadding%3A%202px%200px%3B%0A%7D%0Adiv%2Efigure%20%7B%0Atext%2Dalign%3A%20center%3B%0A%7D%0Aimg%20%7B%0Abackground%2Dcolor%3A%20%23FFFFFF%3B%0Apadding%3A%202px%3B%0Aborder%3A%201px%20solid%20%23DDDDDD%3B%0Aborder%2Dradius%3A%203px%3B%0Aborder%3A%201px%20solid%20%23CCCCCC%3B%0Amargin%3A%200%205px%3B%0A%7D%0Ah1%20%7B%0Amargin%2Dtop%3A%200%3B%0Afont%2Dsize%3A%2035px%3B%0Aline%2Dheight%3A%2040px%3B%0A%7D%0Ah2%20%7B%0Aborder%2Dbottom%3A%204px%20solid%20%23f7f7f7%3B%0Apadding%2Dtop%3A%2010px%3B%0Apadding%2Dbottom%3A%202px%3B%0Afont%2Dsize%3A%20145%25%3B%0A%7D%0Ah3%20%7B%0Aborder%2Dbottom%3A%202px%20solid%20%23f7f7f7%3B%0Apadding%2Dtop%3A%2010px%3B%0Afont%2Dsize%3A%20120%25%3B%0A%7D%0Ah4%20%7B%0Aborder%2Dbottom%3A%201px%20solid%20%23f7f7f7%3B%0Amargin%2Dleft%3A%208px%3B%0Afont%2Dsize%3A%20105%25%3B%0A%7D%0Ah5%2C%20h6%20%7B%0Aborder%2Dbottom%3A%201px%20solid%20%23ccc%3B%0Afont%2Dsize%3A%20105%25%3B%0A%7D%0Aa%20%7B%0Acolor%3A%20%230033dd%3B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0Aa%3Ahover%20%7B%0Acolor%3A%20%236666ff%3B%20%7D%0Aa%3Avisited%20%7B%0Acolor%3A%20%23800080%3B%20%7D%0Aa%3Avisited%3Ahover%20%7B%0Acolor%3A%20%23BB00BB%3B%20%7D%0Aa%5Bhref%5E%3D%22http%3A%22%5D%20%7B%0Atext%2Ddecoration%3A%20underline%3B%20%7D%0Aa%5Bhref%5E%3D%22https%3A%22%5D%20%7B%0Atext%2Ddecoration%3A%20underline%3B%20%7D%0A%0Acode%20%3E%20span%2Ekw%20%7B%20color%3A%20%23555%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Edt%20%7B%20color%3A%20%23902000%3B%20%7D%20%0Acode%20%3E%20span%2Edv%20%7B%20color%3A%20%2340a070%3B%20%7D%20%0Acode%20%3E%20span%2Ebn%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Efl%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Ech%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Est%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Eco%20%7B%20color%3A%20%23888888%3B%20font%2Dstyle%3A%20italic%3B%20%7D%20%0Acode%20%3E%20span%2Eot%20%7B%20color%3A%20%23007020%3B%20%7D%20%0Acode%20%3E%20span%2Eal%20%7B%20color%3A%20%23ff0000%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Efu%20%7B%20color%3A%20%23900%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Eer%20%7B%20color%3A%20%23a61717%3B%20background%2Dcolor%3A%20%23e3d2d2%3B%20%7D%20%0A" type="text/css" />
+<style type="text/css">body {
+background-color: #fff;
+margin: 1em auto;
+max-width: 700px;
+overflow: visible;
+padding-left: 2em;
+padding-right: 2em;
+font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
+font-size: 14px;
+line-height: 1.35;
+}
+#TOC {
+clear: both;
+margin: 0 0 10px 10px;
+padding: 4px;
+width: 400px;
+border: 1px solid #CCCCCC;
+border-radius: 5px;
+background-color: #f6f6f6;
+font-size: 13px;
+line-height: 1.3;
+}
+#TOC .toctitle {
+font-weight: bold;
+font-size: 15px;
+margin-left: 5px;
+}
+#TOC ul {
+padding-left: 40px;
+margin-left: -1.5em;
+margin-top: 5px;
+margin-bottom: 5px;
+}
+#TOC ul ul {
+margin-left: -2em;
+}
+#TOC li {
+line-height: 16px;
+}
+table {
+margin: 1em auto;
+border-width: 1px;
+border-color: #DDDDDD;
+border-style: outset;
+border-collapse: collapse;
+}
+table th {
+border-width: 2px;
+padding: 5px;
+border-style: inset;
+}
+table td {
+border-width: 1px;
+border-style: inset;
+line-height: 18px;
+padding: 5px 5px;
+}
+table, table th, table td {
+border-left-style: none;
+border-right-style: none;
+}
+table thead, table tr.even {
+background-color: #f7f7f7;
+}
+p {
+margin: 0.5em 0;
+}
+blockquote {
+background-color: #f6f6f6;
+padding: 0.25em 0.75em;
+}
+hr {
+border-style: solid;
+border: none;
+border-top: 1px solid #777;
+margin: 28px 0;
+}
+dl {
+margin-left: 0;
+}
+dl dd {
+margin-bottom: 13px;
+margin-left: 13px;
+}
+dl dt {
+font-weight: bold;
+}
+ul {
+margin-top: 0;
+}
+ul li {
+list-style: circle outside;
+}
+ul ul {
+margin-bottom: 0;
+}
+pre, code {
+background-color: #f7f7f7;
+border-radius: 3px;
+color: #333;
+white-space: pre-wrap; 
+}
+pre {
+border-radius: 3px;
+margin: 5px 0px 10px 0px;
+padding: 10px;
+}
+pre:not([class]) {
+background-color: #f7f7f7;
+}
+code {
+font-family: Consolas, Monaco, 'Courier New', monospace;
+font-size: 85%;
+}
+p > code, li > code {
+padding: 2px 0px;
+}
+div.figure {
+text-align: center;
+}
+img {
+background-color: #FFFFFF;
+padding: 2px;
+border: 1px solid #DDDDDD;
+border-radius: 3px;
+border: 1px solid #CCCCCC;
+margin: 0 5px;
+}
+h1 {
+margin-top: 0;
+font-size: 35px;
+line-height: 40px;
+}
+h2 {
+border-bottom: 4px solid #f7f7f7;
+padding-top: 10px;
+padding-bottom: 2px;
+font-size: 145%;
+}
+h3 {
+border-bottom: 2px solid #f7f7f7;
+padding-top: 10px;
+font-size: 120%;
+}
+h4 {
+border-bottom: 1px solid #f7f7f7;
+margin-left: 8px;
+font-size: 105%;
+}
+h5, h6 {
+border-bottom: 1px solid #ccc;
+font-size: 105%;
+}
+a {
+color: #0033dd;
+text-decoration: none;
+}
+a:hover {
+color: #6666ff; }
+a:visited {
+color: #800080; }
+a:visited:hover {
+color: #BB00BB; }
+a[href^="http:"] {
+text-decoration: underline; }
+a[href^="https:"] {
+text-decoration: underline; }
+
+code > span.kw { color: #555; font-weight: bold; } 
+code > span.dt { color: #902000; } 
+code > span.dv { color: #40a070; } 
+code > span.bn { color: #d14; } 
+code > span.fl { color: #d14; } 
+code > span.ch { color: #d14; } 
+code > span.st { color: #d14; } 
+code > span.co { color: #888888; font-style: italic; } 
+code > span.ot { color: #007020; } 
+code > span.al { color: #ff0000; font-weight: bold; } 
+code > span.fu { color: #900; font-weight: bold; } 
+code > span.er { color: #a61717; background-color: #e3d2d2; } 
+</style>
 
 
 
@@ -143,17 +343,29 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 <div id="a-warm-welcome" class="section level2">
 <h2>A warm welcome</h2>
 <p>Hello and welcome to the ClimDatDownloadR R-package.</p>
-<p>With this package <strong>cli</strong>mate <strong>dat</strong>asets provided by <a href="http://chelsa-climate.org/">Chelsa</a> and <a href="https://www.worldclim.org/">WorldClim</a> can be automatically <strong>download</strong>ed, clipped, and converted with <strong>R</strong>.</p>
-<p>To start, you’ll have to install the package and it’s dependencies first, if not already done. Then you can activate the package with the <code>library</code>-function.</p>
+<p>With this package <strong>cli</strong>mate <strong>dat</strong>asets
+provided by <a href="http://chelsa-climate.org/">Chelsa</a> and <a href="https://www.worldclim.org/">WorldClim</a> can be automatically
+<strong>download</strong>ed, clipped, and converted with
+<strong>R</strong>.</p>
+<p>To start, you’ll have to install the package and it’s dependencies
+first, if not already done. Then you can activate the package with the
+<code>library</code>-function.</p>
 <div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co"># install.packages(&quot;ClimDatDownloadR&quot;, dependencies = TRUE)</span></span>
 <span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(ClimDatDownloadR)</span>
-<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; Loading required package: raster</span></span>
-<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; Loading required package: sp</span></span></code></pre></div>
-<p>Very well, now that you have the package installed and attached, let’s start with the data sets of the climatologies of Chelsa and WorldClim.</p>
+<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; Loading required package: terra</span></span>
+<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="co">#&gt; terra 1.7.23</span></span></code></pre></div>
+<p>Very well, now that you have the package installed and attached,
+let’s start with the data sets of the climatologies of Chelsa and
+WorldClim.</p>
 </div>
 <div id="download-climatologies" class="section level2">
 <h2>Download Climatologies</h2>
-<p>These climatologies are among the most frequently requested data sets used mostly for xxx and yyy. In the help pages of <a href="../reference/Chelsa.Clim.download.html">Chelsa.Clim.download()</a> and <a href="../reference/WorldClim.HistClim.download.html">WorldClim.HistClim.download()</a> you can find further information about the handling of these functions. In fact running the functions all by itself bulk-downloads all the climatology data sets from the servers.</p>
+<p>These climatologies are among the most frequently requested data sets
+used mostly for xxx and yyy. In the help pages of <a href="../reference/Chelsa.Clim.download.html">Chelsa.Clim.download()</a>
+and <a href="../reference/WorldClim.HistClim.download.html">WorldClim.HistClim.download()</a>
+you can find further information about the handling of these functions.
+In fact running the functions all by itself bulk-downloads all the
+climatology data sets from the servers.</p>
 <p>Let’s start with a example of the Chelsa climatologies:</p>
 <pre><code>Chelsa.Clim.download(
   # first you&#39;ll have to choose your working directory
@@ -195,7 +407,8 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
   save.bib.file = TRUE
 )</code></pre>
 <hr />
-<p>With this showing the basic principle of these functions, here is a example of a WorldClim climatology download:</p>
+<p>With this showing the basic principle of these functions, here is a
+example of a WorldClim climatology download:</p>
 <pre><code>WorldClim.HistClim.download(
   # As you can see, the structure of this function is very similar to the Chelsa-function
   save.location = &quot;./&quot;,
diff --git a/man/Chelsa.CMIP_6.download.Rd b/man/Chelsa.CMIP_6.download.Rd
new file mode 100644
index 0000000000000000000000000000000000000000..8c82a57adc1eb822b6477f40f4d38d55b7d15590
--- /dev/null
+++ b/man/Chelsa.CMIP_6.download.Rd
@@ -0,0 +1,100 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/Chelsa_new_download_functions.R
+\name{Chelsa.CMIP_6.download}
+\alias{Chelsa.CMIP_6.download}
+\title{Function for downloading CHELSA CMIP 6 future climatologies for the years 2011-2040, 2041-2070, and 2071-2100}
+\usage{
+Chelsa.CMIP_6.download(
+  save.location = "./",
+  parameter = c("prec", "temp", "tmax", "tmin", "bio"),
+  bio.var = c(1:19),
+  month.var = c(1:12),
+  emission.scenario.var = c("ssp126", "ssp370", "ssp585"),
+  time.interval.var = c("2011-2040", "2041-2070", "2071-2100"),
+  model.var = c("gfdl-esm4", "ukesm1-0-ll", "mpi-esm1-2-hr", "ipsl-cm6a-lr",
+    "mri-esm2-0"),
+  clipping = FALSE,
+  clip.shapefile = NULL,
+  clip.extent = c(-180, 180, -90, 90),
+  buffer = 0,
+  convert.files.to.asc = FALSE,
+  stacking.data = FALSE,
+  combine.raw.zip = FALSE,
+  delete.raw.data = FALSE,
+  save.bib.file = TRUE
+)
+}
+\arguments{
+\item{save.location}{string. Input where the datasets should be saved. \cr Default: Working Directory.}
+
+\item{parameter}{string (vector). Input of parameters which should be downloaded. \cr Default: \code{c("prec", "temp", "tmax", "tmin", "bio")}}
+
+\item{bio.var}{integer (vector). Input which monthly data should be downloaded. Only applicable to BIOCLIM variables. For further information see: \url{http://chelsa-climate.org/bioclim/}. \cr Default: \code{c(1:19)}}
+
+\item{month.var}{integer (vector). Input which monthly data should be downloaded. Only applicable to Precipitation and Temperature (average, maximum, minimum). \cr Default: \code{c(1:12)}}
+
+\item{emission.scenario.var}{string (vector). Input which SSP (Shared Socioeconomic Pathways) scenario dataset should be downloaded. Provided are the SSP scenarios 1 (SSP126), 3 (SSP370), and 5 (SSP585). \cr Default: \code{c("ssp126","ssp370","ssp585")}}
+
+\item{time.interval.var}{string (vector). Input for which time interval data should be downloaded. CHELSA provides downscaled CMIP6 climatologies for 2050 and 2070. Multiple inputs possible.\cr Default: \code{c("2041-2060", "2061-2080")}}
+
+\item{model.var}{string (vector). Input which future model dataset should be downloaded. For more information see: \url{http://chelsa-climate.org/future/}.\cr For some of the datasets not all downloads are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. For an overview please try "warnings()" after execution. \cr Default: \code{c("gfdl-esm4", "ukesm1-0-ll", "mpi-esm1-2-hr", "ipsl-cm6a-lr", "mri-esm2-0")}}
+
+\item{clipping}{logical. Input whether the downloaded data should be clipped.\cr If \code{FALSE} \code{clip.shapefile}, buffer, clip.extent will be ignored. \cr Default: \code{FALSE}}
+
+\item{clip.shapefile}{string. Input which shapefile should be used for clipping.  \cr Default: \code{NULL}}
+
+\item{clip.extent}{numeric (vector). Input vector with four numeric values. This is following the input order c("xleft", "xright", "ybottom", "ytop").\cr Default: \code{c(-180, 180, -90, 90)}}
+
+\item{buffer}{numeric. Input of decimal degrees of buffer around the shapefile and/or extent. \cr Default: \code{0}}
+
+\item{convert.files.to.asc}{logical. Input whether files should be converted into the ASCII format.\cr If \code{TRUE}: a new subdirectory is created and the rawdata is saved there. If \code{clipping} is \code{TRUE}: the clipped raster files are also saved as ASCII grids.  \cr Default: \code{FALSE}}
+
+\item{stacking.data}{logical. Input whether the downloaded data should be stacked as a netCDF-rasterstack. \cr  Default: \code{FALSE}}
+
+\item{combine.raw.zip}{logical. Should the downloaded raw-data be "zipped". \cr  Default: \code{FALSE}}
+
+\item{delete.raw.data}{logical. Should the downloaded raw-data be deleted. If the \code{combine.raw.zip} is \code{TRUE}: raw-data is still available in the zipped file. \cr Default: \code{FALSE}}
+
+\item{save.bib.file}{logical. Whether a BibTex-citation file of the dataset should be provided in the Working directory. \cr Default: \code{TRUE}}
+}
+\value{
+CHELSA CMIP6 climatology datasets.
+}
+\description{
+This function supports the download of CHELSA CMIP6 future climate scenarios comprising of monthly precipitation sums in mm, monthly temperature (average, minimum, maximum) in degrees Celsius, and annual chracteristics (19 bioclimatic variables).\cr To allow pre-processing, clipping and buffering, conversion to ASCII-grids and stacking options are included.\cr Optional an output of a .bib-file of the cited literature can be retrieved.\cr For user convenience, saving directories will be created automatically. Also options to "zip" and/or delete the RAW-files are included.
+}
+\details{
+"The downscaled data has been produced using climatological aided interpolation based on the 1979-2013 reference climatologies from CHELSA." (CHELSA Climate 2020: \url{http://chelsa-climate.org/future/})
+}
+\note{
+Please note that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C with one significant decimal without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.\cr For some of the datasets not all models and rcps are available. For the ones that are not supported the data will not be downloaded and a warning will be prompted. See parameter \code{model.var} for more information or check the website of CHELSA Climate (\url{http://chelsa-climate.org/future/}). Please note, that the downloaded data for temperature and the therefore also the first eleven bioclim-variables are processed to °C without offset and factor. Processing and conversion to other file-formats on a global dataset may take some time.
+
+Specifications: <URL: https://chelsa-climate.org/wp-admin/download-page/CHELSA_tech_specification_V2.pdf>
+
+More information on Shared Socioeconomic Pathways under <URL: https://www.dkrz.de/en/communication/climate-simulations/cmip6-en/the-ssp-scenarios?set_language=en>
+}
+\examples{
+\dontrun{
+# Bioclim
+Chelsa.CMIP_6.download(parameter = "bio",
+                        bio.var = c(1,19),
+                        emission.scenario.var = "ssp126",
+                        time.interval.var = "2011-2040",
+                        model.var = "mpi-esm1-2-hr")
+# Precipitation
+Chelsa.CMIP_6.download(parameter = "prec",
+                        month.var = c(1,7),
+                        emission.scenario.var = "ssp585",
+                        time.interval.var = "2071-2100",
+                        model.var = "gfdl-esm4")
+}
+
+}
+\references{
+D. N. Karger, O. Conrad, J. B{\"o}hner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. <URL: https://doi.org/10.1038/sdata.2017.122>.
+
+D. N. Karger, O. Conrad, J. B{\"o}hner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. <URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4>.
+}
+\author{
+Helge Jentsch
+}
diff --git a/man/Chelsa.Clim.download.Rd b/man/Chelsa.Clim.download.Rd
index 03ee4ad3ba9efdb853e12a602369d7c5f0c7baa5..f7345862ed3052137204cd5f14a9623be0dc3137 100644
--- a/man/Chelsa.Clim.download.Rd
+++ b/man/Chelsa.Clim.download.Rd
@@ -9,7 +9,7 @@ Chelsa.Clim.download(
   parameter = c("prec", "temp", "tmax", "tmin", "bio"),
   bio.var = c(1:19),
   month.var = c(1:12),
-  version.var = c("1.2"),
+  version.var = c("1.2", "2.1"),
   clipping = FALSE,
   clip.shapefile = NULL,
   clip.extent = c(-180, 180, -90, 90),
@@ -69,9 +69,11 @@ Chelsa.Clim.download(parameter = "prec", month.var = c(1,12))
 
 }
 \references{
-D. N. Karger, O. Conrad, J. B{\"o}hner , et al. "Climatologies at high resolution for the earth's land surface areas". In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. <URL: https://doi.org/10.1038/sdata.2017.122>.
+D. N. Karger, O. Conrad, J. B{\"o}hner , et al. _Climatologies at high resolution for the earth's land surface areas_. In: _Scientific Data_ 4.1 (Sep. 2017). DOI: 10.1038/sdata.2017.122. <URL: https://doi.org/10.1038/sdata.2017.122>.
 
 D. N. Karger, O. Conrad, J. B{\"o}hner , et al. _Data from: Climatologies at high resolution for the earth's land surface areas_. En. 2018. DOI: 10.5061/DRYAD.KD1D4. <URL: http://datadryad.org/stash/dataset/doi:10.5061/dryad.kd1d4>.
+
+D. N. Karger, O. Conrad, J. B{\"o}hner , et al. _Climatologies at high resolution for the earth’s land surface areas_ EnviDat. (2021) DOI: 10.16904/envidat.228. <URL: https://www.doi.org/10.16904/envidat.228>.
 }
 \author{
 Helge Jentsch
diff --git a/man/clipping.tif.Rd b/man/clipping.tif.Rd
index efe927a0d8868534c15b5788ca49a7099f1d1675..de6d8fc13e547430273ea67ad9970bcc9aafe961 100644
--- a/man/clipping.tif.Rd
+++ b/man/clipping.tif.Rd
@@ -34,7 +34,15 @@ This function returns, depending on the parameter \code{convert.files.to.asc} wh
 This function clips all .tif-raster files at a defined extent (e.g., shapefile or coordinates). Additionally, a buffer can be specified and added to the clipping extent. For user convenience, clipped rasters will be saved to a specified directory (clip.save.location). Furthermore, an option for conversion to ASCII format is given.
 }
 \examples{
-clipping.tif(clip.save.location = system.file("pictures/", package = "rgdal"))
+\dontrun{
+clipping.tif(clip.save.location = terra::rast(
+                                          paste(
+                                              system.file("ex/meuse.tif", 
+                                              package = "terra")
+                                              )
+                                              )
+                                              )
+}
 
 }
 \author{
diff --git a/man/combine.raw.in.zip.Rd b/man/combine.raw.in.zip.Rd
index 12c05760b05042c0ec07ecea104a4674a19c753e..2a1486179089da700a21ff5255b2d2587360498e 100644
--- a/man/combine.raw.in.zip.Rd
+++ b/man/combine.raw.in.zip.Rd
@@ -8,8 +8,7 @@ combine.raw.in.zip(
   save.location = "./",
   zip.name = "RAWDATA",
   unique.name = TRUE,
- 
-    time.stamp.var = stringr::str_replace_all(stringr::str_replace_all(paste0(Sys.time()),
+  time.stamp.var = stringr::str_replace_all(stringr::str_replace_all(paste0(Sys.time()),
     pattern = ":", replacement = "-"), pattern = " ", replacement = "_")
 )
 }
diff --git a/man/convert.to.asc.Rd b/man/convert.to.asc.Rd
index 4f800563497a5cf0153c538acfbc38e4718d75a0..4984e33d89e3aba1afe5838c7ca02fbd2d2011c6 100644
--- a/man/convert.to.asc.Rd
+++ b/man/convert.to.asc.Rd
@@ -22,8 +22,10 @@ This function returns ASCII-format raster files to a new directory. This directo
 This function converts and saves all .tif-raster files to ASCII-file format to a specified location and creates a new folder named "ASCII_files" with a unique timestamp of the current system time.
 }
 \examples{
+\dontrun{
 convert.to.asc(save.location = system.file("pictures/", package = "rgdal"))
 }
+}
 \author{
 Helge Jentsch
 }
diff --git a/man/process.raster.int.doub.Rd b/man/process.raster.int.doub.Rd
index d9063bd14b3805b804ddf47156105248674a7ef8..9e4bb64c50a6e23a3c17bea5590c8e6358216acb 100644
--- a/man/process.raster.int.doub.Rd
+++ b/man/process.raster.int.doub.Rd
@@ -7,13 +7,13 @@
 process.raster.int.doub(raster.layer = NULL)
 }
 \arguments{
-\item{raster.layer}{RasterLayer to be processed}
+\item{raster.layer}{SpatRaster to be processed}
 }
 \value{
-RasterLayer
+SpatRaster
 }
 \description{
-Takes input RasterLayer, crops it, processes the integer values into double values, mosaiks the cropped and processed data, and returns the mosaiked Rasterfile
+Takes input SpatRaster, processes the integer values into double values, and returns the SpatRaster.
 }
 \author{
 Helge Jentsch
diff --git a/man/process.raster.offset.Rd b/man/process.raster.offset.Rd
new file mode 100644
index 0000000000000000000000000000000000000000..41d7cb01b6d46e2589a6c0e4d3127e0705fad128
--- /dev/null
+++ b/man/process.raster.offset.Rd
@@ -0,0 +1,22 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/auxiliary.R
+\name{process.raster.offset}
+\alias{process.raster.offset}
+\title{Preprocessing data to undo offsetting values}
+\usage{
+process.raster.offset(raster.layer = NULL, offset = -273.15)
+}
+\arguments{
+\item{raster.layer}{SpatRaster to be processed.}
+
+\item{offset}{Numerical value to be offsetted. Default: -273.15.}
+}
+\value{
+SpatRaster
+}
+\description{
+Takes input SpatRaster, deletes offset, and returns the SpatRaster.
+}
+\author{
+Helge Jentsch
+}
diff --git a/man/stacking.downloaded.data.Rd b/man/stacking.downloaded.data.Rd
index 9514eba81ec90ccb3280a32986e2f5b96eebb6d5..8708964c9281c715062d6b9766510b227ecf72b1 100644
--- a/man/stacking.downloaded.data.Rd
+++ b/man/stacking.downloaded.data.Rd
@@ -11,8 +11,7 @@ stacking.downloaded.data(
   variable.numbers = c(1:length(list.files("./", pattern = ".tif"))),
   stack.time.series = FALSE,
   time.series = NULL,
- 
-    time.stamp.var = stringr::str_replace_all(stringr::str_replace_all(paste0(Sys.time()),
+  time.stamp.var = stringr::str_replace_all(stringr::str_replace_all(paste0(Sys.time()),
     pattern = ":", replacement = "-"), pattern = " ", replacement = "_")
 )
 }