ee_spi | R Documentation |
ee_spi calculate standard precipitation index
ee_spi( x, window = 6, window_unit = "month", ic_time_unit = "month", band = "precipitation_sum", moi = c(3, 4), use_tidyee = T )
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. |
By harnessing tidyee with ‘use_tidyee=T' we don’t have any
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.