get_ccdc_ts: Predict surface reflectance timeseries at a point (X,Y) using...

View source: R/get_ccdc_xy.R

get_ccdc_tsR Documentation

Predict surface reflectance timeseries at a point (X,Y) using CCDC algorithm (Zhu & Woodcock 2014)

Description

Provided a CCDC image output from the Google Earth Engine CCDC algorithm and a X-Y coordinate this function returns the surface reflectance time series for the intersected Landsat pixel.

Usage

get_ccdc_ts(ccdc_img, x_coord, y_coord, epsg, band, n_seg = 8)

Arguments

ccdc_img

(stars, SpatRaster) A multiband raster of the CCDC output from Google Earth Engine with all coefficients for each segment present (i.e., see EE script)

x_coord

(float) Value of the X coordinate of interest, must intersect the CCDC image

y_coord

(float) Value of the Y coordinate of interest, must intersect the CCDC image

epsg

(integer) EPSG code for CRS of the CCDC image

band

(character) Band of interest, i.e., 'blue','green','red','nir','swir1','swir2' or 'therm'

n_seg

(integer) Default 8. Number of segments to compute time series for, must be less then or equal to maximum number of exported segments (i.e., see EE script)

Value

A 2-col matrix with the Julian date time series in the first and the predicted CCDC time series in the second.


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