PETFUN: Wrapper around 'PET_fromTemp' function from package...

Description Usage Arguments Value Examples

View source: R/standardFUNs.R

Description

PETFUN Gets Potential EvapoTranspiration (PET) rasters from maximum temperature, minimum temperature and altitude rasters by applying function PET_fromTemp from package EcoHydrology

Usage

1
PETFUN(tmax, tmin, alt)

Arguments

tmax

Raster* object. Maximum temperature raster.

tmin

Raster* object. Minimum temperature raster.

alt

Raster* object. Altitude raster.

Value

Returns a RasterLayer with estimates of Potential EvapoTranspiration in milimiters.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
FulanusEcoRasters_present <-
  get_rasters(
    raster_source = "/Users/gabriel/Documents/Mapinguari/global_grids_10_minutes",
    ext = FulanusDistribution,
    margin = 5,
    non_fixed_var = c('prec', 'tmin', 'tmax'),
    fixed_var = 'alt',
    years = c("present"),
    reorder = TRUE)

alt <- FulanusEcoRasters_present$present$alt
tmax <- FulanusEcoRasters_present$present[[25:36]]/10
tmin <- FulanusEcoRasters_present$present[[13:24]]/10

PET <- PETFUN(tmax, tmin, alt)

gabrielhoc/MapinguariLegacy documentation built on May 8, 2019, 9:54 p.m.