Downloading Temperature data from different datasets
download_t_data(
data_name,
path = "",
domain = "raw",
time_res = "monthly",
variable = "all"
)
No return value, called to download the required data sets.
a character string indicating the dataset to download. Suitable options are:
"terraclimate" for TerraClimate dataset,
"cru" for CRU dataset,
"mswx" for MSWX dataset.
a character string with the path where the data will be downloaded.
a character string with the desired domain data set. Suitable options are:
"raw" for default available spatial coverage,
"global" for data sets with global (land and ocean) coverage,
"land" for data sets with land only coverage,
"ocean" for data sets with ocean only coverage.
a character string with the desired time resolution. Suitable options are:
"monthly",
"yearly".
a character string indicating the variable to download. Suitable options are: For TerraClimate dataset:
"t2m" for average temperature,
"tmin" for minimum temperature,
"tmax" for maximum temperature.
Use "all" to download all available variables for the dataset.
# \donttest{
download_t_data("cru", tempdir())
# }
Run the code above in your browser using DataLab