R/download_all.R

Defines functions download_all

Documented in download_all

#' All data downloader
#'
#' Function for downloading GPCP NC file.
#'
#' @param folder_path a character string with the path where the data will be downloaded.
#' @param domain a character string with the desired domain data set. Suitable options are:
#' \itemize{
#' \item{"raw" for default available spatial coverage,}
#' \item{"global" for data sets with global (land and ocean) coverage,}
#' \item{"land" for data sets with land only coverage,}
#' \item{"ocean", for data sets with ocean only coverage.}
#' }
#' @param time_res a character string with the desired time resolution. Suitable options are:
#' \itemize{
#' \item{"monthly",}
#' \item{"yearly".}
#' }
#' @return No return value, called to download the data set.
#' @keywords internal

download_all <- function(folder_path = ".", domain = "raw", time_res = "monthly"){
  download_20cr(folder_path, domain, time_res)
  download_chirps(folder_path, domain, time_res)
  download_cmap(folder_path, domain, time_res)
  download_cmorph(folder_path, domain, time_res)
  download_cpc(folder_path, domain, time_res)
  download_cru_ts(folder_path, domain, time_res)
  download_em_earth(folder_path, domain, time_res)
  download_era20c(folder_path, domain, time_res)
  download_era5(folder_path, domain, time_res)
  download_fldas(folder_path, domain, time_res)
  download_ghcn(folder_path, domain, time_res)
  download_gldas_clsm(folder_path, domain, time_res)
  download_gldas_noah(folder_path, domain, time_res)
  download_gldas_vic(folder_path, domain, time_res)
  download_gpcc(folder_path, domain, time_res)
  download_gpcp(folder_path, domain, time_res)
  download_gpm_imerg(folder_path, domain, time_res)
  download_jra55(folder_path, domain, time_res)
  download_merra2(folder_path, domain, time_res)
  download_mswep(folder_path, domain, time_res)
  download_ncep_doe(folder_path, domain, time_res)
  download_ncep_ncar(folder_path, domain, time_res)
  download_persiann(folder_path, domain, time_res)
  download_precl(folder_path, domain, time_res)
  download_terraclimate(folder_path, domain, time_res)
  download_trmm_3b43(folder_path, domain, time_res)
  download_udel(folder_path, domain, time_res)
}

Try the pRecipe package in your browser

Any scripts or data that you put into this service are public.

pRecipe documentation built on Nov. 23, 2023, 1:08 a.m.