green: green Create a green up/down pair of rasters for use in...

View source: R/green.r

greenR Documentation

green Create a green up/down pair of rasters for use in masking gee to the growing season

Description

green Create a green up/down pair of rasters for use in masking gee to the growing season

Usage

green(
  evi,
  up_func = function(evi) {     return(evi > (0.5 * max(evi))) },
  down_func = function(evi) {     return(evi < (0.65 * max(evi))) }
)

Arguments

evi

(SpatRaster): A full year's worth of EVI data

up_func

(function): a function that takes an evi time series over a year and returns a boolean: is this pixel on this day past the greenup day?

down_func

(function): a function that takes an evi time series over a year and returns a boolean: is this pixel on this day before the greendown day?


BlueGrisGris/vpRm documentation built on Oct. 29, 2022, 7:17 a.m.