ee_accum_reduce_to_doy: creates day of year image/raster based on an accumulation...

View source: R/ee_accum_reduce_to_doy.R

ee_accum_reduce_to_doyR Documentation

creates day of year image/raster based on an accumulation threshold

Description

creates day of year image/raster based on an accumulation threshold

Usage

ee_accum_reduce_to_doy(ic, thresh, band)

Arguments

ic

an ee ImageCollection

thresh

accumulation threshold

band

band to accumulate

Details

user should carefully decide start and end date for accumulation. This is currently really only designed for assessing seasonal accumulations

Value

and ee image/raster the contains the first date (DOY) the accumulation threshold was met per pixel.

Examples

## Not run: 

# load libraries
library(easyrgee)
library(rgee)
ee_Initialize()

chirps <-  ee$ImageCollection("UCSB-CHG/CHIRPS/DAILY")$filterDate("2016-01-01","2016-12-31")
precip_cumulative<- ee_accumulate_band_ic(ic = chirps, band = "precipitation")
#visualize
Map$addLayer(precip_threshold_doy,
             visParams = list(min=0,
                           max=365,
                             palette=c('#9ecae1,
                             #ffffff,
                              #ffeda0,
                              #feb24c,
                              #f03b20'))
             )


## End(Not run)

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