gen_ccdc_at_jdoy: Get the segment coefficients from the CCDC image at a...

View source: R/get_ccdc_current_seg.R

gen_ccdc_at_jdoyR Documentation

Get the segment coefficients from the CCDC image at a specific Julian date (see Zhu & Woodcock 2014)

Description

For pixel locations where change has occurred (number of segments >1) this function returns the CCDC model coefficients associated with the segment that corresponds in time with the specified Julian date, as well as the start and end date of the segment as a Julian date. If there is only one segment (no change), returns coefficients for the that segment. !!Assumes that up to 8 segments may exist (see Earth Engine script)!!

Usage

gen_ccdc_at_jdoy(
  ccdc_img,
  date,
  band_vect = c("blue", "green", "red", "nir", "swir1", "swir2", "therm")
)

Arguments

ccdc_img

(SpatRaster, stars) The CCDC image for which to extract coefficients.

date

(Date) Date for which to extract CCDC coefficients (must be later then March 1 1984, and earlier than present date).

band_vect

(charachter) Character vector of band names to return CCDC coefficients for.

Value

(SpatRaster) A SpatRaster with all CCDC coefficients (and tStart,tEnd) associated with the segment corresponding with the specified Julian date. If the date is very recent, some data may be missing.


HunterGleason/R.ccdc.tools documentation built on July 1, 2022, 10:37 a.m.