View source: R/ccdc_synthetic_img.R
gen_ccdc_synthetic_img | R Documentation |
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.
gen_ccdc_synthetic_img(ccdc_img, date, orig_crs = NULL)
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. |
(SpatRaster) A SpatRaster with all 7 Landsat bands predicted from the CCDC coefficients for the specified date.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.