ee_spi: ee_spi calculate standard precipitation index

View source: R/spi.R

ee_spiR Documentation

ee_spi calculate standard precipitation index

Description

ee_spi calculate standard precipitation index

Usage

ee_spi(
  x,
  window = 6,
  window_unit = "month",
  ic_time_unit = "month",
  band = "precipitation_sum",
  moi = c(3, 4),
  use_tidyee = T
)

Arguments

x

tidyee imageCollection

window

window of time to calculate sPI

window_unit

unit o ftime to calculate

ic_time_unit

imagecollection time unit

band

name of band

moi

month of interest. (i.e if moi =4 and window is 3 months then the SPI is FMA)

use_tidyee

default = T , no option for F at the moment.

Details

By harnessing tidyee with ‘use_tidyee=T' we don’t have any

Examples

## Not run: 
library(rgee)
library(tidyrgee)
ee_Initialize()
spi_3 <- ee_spi(x=monthly_rainfall,
               window=3,
               window_unit="month",
               ic_time_unit= "month",
               band="precipitation_sum",
               moi=4,use_tidyee=T)

## End(Not run)

impact-initiatives-geospatial/surveyGEER documentation built on Feb. 4, 2023, 12:13 p.m.