Var rendvi1 = image.normalizedDifference().rename('RENDVI1') Functions to calculate and add an RE-NDVI (1-3) bands reduce Red-Edge NDVI (1-3) over the image collection Var ndwi2 = image.normalizedDifference().rename('NDWI2') Var ndwi1 = image.normalizedDifference().rename('NDWI1') Functions to calculate and add an NDWI (1-2) bands reduce NDWI (1-2) over an image collection Var ndvi = image.normalizedDifference().rename('NDVI') Function to calculate and add an NDVI band Return image.updateMask(mask).divide(10000) ![]() and(qa.bitwiseAnd(cirrusBitMask).eq(0)) Var mask = qa.bitwiseAnd(cloudBitMask).eq(0) Both flags should be set to zero, indicating clear conditions. Bits 10 and 11 are clouds and cirrus, respectively. * Function to mask clouds using the Sentinel-2 QA band Var end = '' //final date of the image collection Var start = '' // initial date of the image collection Map.setCenter(lat, lng, 5) // Center the map on this location, zoom level 10 filter(ee.Filter.eq('country_co', 'AF')) Var country = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017') var aoi = point.buffer(100000) // Create an area (1km buffer around point) I apology but I cannot share the feature collection, however it is a simple shapefile of points. Is it possible to export the results in a single table? ![]() ![]() I am creating several bands of spectral indexes by reducing the S2 TOA image collection.įor each spectral index, I am extracting the pixel values at specific locations (a point shapefile represent the locations) and exporting the result to a.
0 Comments
Leave a Reply. |