ai_index_calculation: Calculates the aridity index

View source: R/ai_index_calculation.R

ai_index_calculationR Documentation

Calculates the aridity index

Description

The aridity index (AI) is a numerical indicator used to quantify the degree of dryness of a climate at a given location. It is calculated as the ratio of annual precipitation to potential evapotranspiration.

Usage

ai_index_calculation(annual_img_ppt, annual_img_etp)

Arguments

annual_img_ppt

rast image with the annual sum of the precipitation

annual_img_etp

rast image of annual sum of the potential evapotranspiration

Value

Returns a SpatRaster with the calculation.

Examples

## Not run: 

 ai_index_img <- ai_index_calculation(annual_img_ppt, annual_img_etp);

## End(Not run)

FilgueirasR/cropDemand documentation built on Feb. 15, 2025, 5:35 p.m.