Learn R Programming

evapoRe (version 1.0.1)

thornthwaite: Calculate Potential Evapotranspiration (PET) using Thornthwaite method

Description

The function thornthwaite computes PET using the Thornthwaite method.

Usage

thornthwaite(x)

# S4 method for Raster thornthwaite(x)

# S4 method for character thornthwaite(x)

# S4 method for data.table thornthwaite(x)

Value

RasterBrick or data.table of PET values (mm/day)

Arguments

x

Raster* object, character file path, or data.table (see details)

Details

For Raster input, provide a raster object or file path for average temperature. For `data.table` input, provide a table with columns: "lon", "lat", "date", and "tavg".