ee_chirps_spi: ee_chirps_spi calculate standard precipitation index from...

View source: R/spi.R

ee_chirps_spiR Documentation

ee_chirps_spi calculate standard precipitation index from chirps daily

Description

ee_chirps_spi calculate standard precipitation index from chirps daily

Usage

ee_chirps_spi(
  x = NULL,
  window,
  window_unit,
  moi,
  .load_chirps = T,
  band = "precipitation"
)

Arguments

x

tidyee ee$ImageCollection

window

window to calculate spi over

window_unit

time unit of window (month only)

moi

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

band

name of band

Value

tidyee object containing SPI ee$ImageCollection and vrt

Examples

## Not run: 
library(rgee)
library(tidyrgee)
ee_Initialize()

spi_2_chirps<- ee_chirps_spi(x = chirps_tidy,window = 2,window_unit = "month")

## End(Not run)

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