Skip to contents

A function that extract a ETP time series of MODIS by month (2001-01-01T00:00:00Z - 2022-04-23T00:00:00).

Usage

get_etp(from, to, band, region, fun = "count", scale = 1000)

Arguments

to, from

it's a string object,starting and final date.

band

name of band.

region

region and object sf.

fun

function for extract statistic zonal (count, kurtosis, max,mean, median , min , mode , percentile, std, sum , variance, first).

scale

A nominal scale in meters of the projection to work in.

Value

a tibble object with the new variables.

Details

Name of some bands.

  • ET (kg/m²): Total evapotranspiration.

  • LE (J/m²): Average latent heat flux.

  • PET (kg/m²): Total potential evapotranspiration.

  • PLE (j/m²): Average potential latent heat flux.

  • ET_QC: Evapotranspiration quality control flags

Examples

if (FALSE) {

library(tidyverse)
library(rgee)
library(innovar)
library(sf)
ee_Initialize()

# 1. Reading a sf object
data("Peru")
region <- Peru
region_ee <- pol_as_ee(region, id = "distr", simplify = 1000)

# 2. Extracting climate information
data <- region_ee %>%
  get_etp(from = "2001-02-01", to = "2003-12-31", band = "ET", fun = "max")
}