This R package was developed for the use with the Sentinel2Processing-App.
Link: Sentinel-2 Processing-App
The R package has the following functions:
The main functions of the package are • FCC: Creates a False Colour Composite Image using the Band Combination R=NIR, G=Red, B=Green • calcNDVI: Calculates the NDVI of an Image • showDifferencesOnImage: Indicates NDVI differences between two images The helper functions used are • NDVIDifferences: Calculates the NDVI differences • rescale: Rescales the NDVI images from 0-255 to -1-1 • checkExtent: Proofs if a shapefile intersects an image • cropRaster: If the shapefile intersects a raster, these parts are cropped here and used for calculation • readShape: Reads in a shapefile • NDVI: Implements the NDVI formula (NIR-Red)/(NIR+Red) • NDVI_Result: Uses the NDVI formula and calculates the result
To use the package, simply run library(devtools)
and then install_github("SENTINEL2Processing","dwalin93")
inside R
To use it with OpenCPU: Link to OpenCPU
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.