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

View source: R/ccdc_synthetic_img.R

gen_ccdc_synthetic_imgR Documentation

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

Description

Using the coefficients from the CCDC image a scene for any date (within the date range of the CCDC time series) can be generated using this function. Function assumes that all bands ('blue','green','red','nir','swir1','swir2','therm') are present in the image.

Usage

gen_ccdc_synthetic_img(ccdc_img, date, orig_crs = NULL)

Arguments

ccdc_img

(SpatRaster, stars or data.frame) The CCDC image for which to extract coefficients as SpatRaster, stars or data.frame with XY coordinates (i.e., terra::as.data.frame(img,xy=T)), data.frame is the fastest.

date

(character) Date for which to extract CCDC coefficients (must be with in the date range for which the CCDC image was processed).

orig_crs

(Terra CRS, optional) In the case that a data.frame is provided this must be set to the original CRS of the image in format recognized by 'Terra' package.

Value

(SpatRaster) A SpatRaster with all 7 Landsat bands predicted from the CCDC coefficients for the specified date.


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