Learn R Programming

evapoRe (version 1.0.1)

hargreaves_samani: Calculate Potential Evapotranspiration (PET) using Hargreaves-Samani method

Description

The function hargreaves_samani computes PET using the Hargreaves and Samani method.

Usage

hargreaves_samani(tavg, tmax, tmin, x = NULL)

# S4 method for Raster,Raster,Raster hargreaves_samani(tavg, tmax, tmin, x = NULL)

# S4 method for character,character,character hargreaves_samani(tavg, tmax, tmin, x = NULL)

# S4 method for missing,missing,missing hargreaves_samani(x)

Value

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

Arguments

tavg

Raster* object or file path; average temperature (°C)

tmax

Raster* object or file path; maximum temperature (°C)

tmin

Raster* object or file path; minimum temperature (°C)

x

A `data.table` with columns: "lon", "lat", "date", "tavg", "tmin", "tmax".

Details

For Raster inputs, provide raster objects or file paths for average (`tavg`), maximum (`tmax`), and minimum (`tmin`) temperature. For `data.table` input, provide a table with columns: "lon", "lat", "date", "tavg", "tmin", and "tmax".