Learn R Programming

bioclim (version 0.4.0)

thornthwaite: Function to calculate Thornthwaite potential evapotranspiration

Description

This function calculates Thornthwaite’s potential evapotranspiration.

Usage

thornthwaite(Tave, lat, na.rm = FALSE)

Value

A time series with the values of monthly potential or reference evapotranspiration, in mm. If the input is a matrix or a multivariate time series each column will be treated as independent data (e.g., diferent observatories), and the output will be a multivariate time series.

Arguments

Tave

a numeric vector, matrix or time series of monthly mean temperatures, ºC.

lat

a numeric vector with the latitude of the site or sites, in degrees.

na.rm

optional, a logical value indicating whether NA values should be stripped from the computations.

Author

Santiago Begueria

Details

This function is a modified version of SPEI::thornthwaite() function.

Examples

Run this code
thornthwaite(rnorm(12, 18, 6), 35)

Run the code above in your browser using DataLab