R/get_chelsa_current.R
get_chelsa_current.Rd
Gives the average values on the data recovered between 1981 and 2010. Monthly variables are average temperatures, min temperatures, max temperatures, precipitation, potential evapotranspiration (with Penman formula and with Thornthwaite formula), and total cloud cover. Others variables are climatic water deficit (with Penman and Thornthwaite), number of dry month (with Penman and Thornthwaite) and 19 bio variables (more information in chelsa documentation).
get_chelsa_current(
extent_latlon,
extent_proj,
EPSG_proj,
destination,
resol = 1000,
rm_download = FALSE
)
num vector. Must be in the form c(lonmin, latmin,
lonmax, latmax). This extent is used to download climatic data
using GDAL function gdal_translate
and properties of COG
files. This extent can be obtained with the get_aoi_extent()
function.
num vector. Must be in the form c(xmin, ymin, xmax,
ymax). This extent is used for the output raster file. This
extent can be obtained with the get_aoi_extent()
function.
int. EPSG code used to define the coordinate reference system to project the output raster file.
character. Directory path for outputs.
int. Resolution. If in meters, recommended resolutions are 250m, 500m, 1km, 2km or 5km. The resolution needs to be carefully chosen. If set too small (e.g. < 250m), raster file will be too big to fit in memory and R will crash. Default is 1km.
boolean. If TRUE, remove downloaded files and
folders except current_chelsa.tif
file in the data_raw
folder. Default is FALSE.
character. The absolute path to the current_chelsa.tif
file.
Unit of each climatic variable :
Name | Unit |
Temperature average (tas) | °C x 10 |
Temperature min (tasmin) | °C x 10 |
Temperature max (tasmax) | °C x 10 |
Precipitation | kg.m^-2 |
Cloud area fraction (clt) | % |
PET Penman | kg.m^-2 |
PET Thornthwaite | kg.m^-2 |
Climatic water deficit (Penman) | kg.m^-2 |
Climatic dater deficit (Thornthwaite) | kg.m^-2 |
Number of dry months (Penman) | month |
Number of dry months (Thornthwaite) | month |
bio1 | °C x 10 |
bio2 | °C x 10 |
bio3 | °C x 10 |
bio4 | °C x 10 |
bio5 | °C x 10 |
bio6 | °C x 10 |
bio7 | °C x 10 |
bio8 | °C x 10 |
bio9 | °C x 10 |
bio10 | °C x 10 |
bio11 | °C x 10 |
bio12 | kg.m^-2.year^-1 |
bio13 | kg.m^-2.month^-1 |
bio14 | kg.m^-2.month^-1 |
bio15 | kg.m^-2 |
bio16 | kg.m^-2.month^-1 |
bio17 | kg.m^-2.month^-1 |
bio18 | kg.m^-2.month^-1 |
bio19 | kg.m^-2.month^-1 |