View source: R/ccdc_ndmi_stats.R
ccdc_ndmi_stats | R Documentation |
At each pixel in the CCDC image the NDMI and NDWI are calculated for the specified date range. From this time series the min, max, median as well as the number of days since the start date that mins and maxes occur are returned. !!Assumes that coefficients for up to 8 segments are present and properly named in CCDC image (see Earth Engine script)!!
ccdc_ndmi_stats(ccdc_img, start_date, end_date, crs = NULL)
ccdc_img |
(SpatRaster, stars, XY data.frame (fastest)) The CCDC image for which to extract coefficients for computing NDMI and NDWI. |
start_date |
(Date,character) End date for which to compute NDMI / NDWI (must be later then March 1 1984, and earlier than present date). |
crs |
(terra::crs,optional) A CRS object interpreted by terra::crs(), only required if 'ccdc_img' is provided as a XY data.frame. |
(SpatRaster) A SpatRaster with the min, max, median NDMI and NDWI, as well as the number of days since the start days of the mins and maxes as bands.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.