CALCULATE NDVI OF SENTINEL 2 IN GOOGLE EARTH ENGINE

In this tutorial, I will present how to calculate NDVI of Sentinel 2 in Google Earth Engine.
The Normalized Difference Vegetation Index (NDVI) measures the difference between near-infrared (which vegetation strongly reflects) and red light (which vegetation absorbs) to quantify vegetation. NDVI always ranges from -1 to +1. If there are no green leaves, the value is zero. A zero denotes no vegetation, whereas a value close to +1 (0.8-0.9) suggests the highest density of green leaves conceivable. However, the land cover type does not have its specific limit of NDVI values.
The formula for calculating NDVI is as follows:
NDVI = (NIR - RED)/(NIR + RED)
NIR - reflection in the near-infrared spectrum
RED - reflection in the red range of the spectrum
The output range of NDVI calculation typically varies from -1.0 to 1.0.
#gis
#gee
#googleearthengine
#remotesensing
#sentinels
#sentinel2
#ndvi
#NDVI
#NDVI Map from Sentinel 2A Imageries in Google Earth Engine, GEE 04a - Calculate NDVI Using Sentinel 2 data in Google Earth Engine, Google Earth Engine code for calculating NDWI from Sentinel 2 image collection GEE online training, Calculate NDVI in Google Earth Engine, Google Earth Engine Tutorial NDVI, Calculating NDVI using Earth Engine, GIS Google Earth Engine NDVI over time with Sentinel 2, Calculate NDVI con Sentinel 2 in Google Earth Engine, Sentinel -2A image from Google Earth Engine, Calculate vegetation indices for Sentinel-2 images on Google Earth Engine, CALCULAR NDVI DE SENTINEL 2 EN GOOGLE EARTH ENGINE, NDVI VON SENTINEL 2 IN GOOGLE EARTH ENGINE BERECHNEN, CALCULER LE NDVI DE SENTINEL 2 DANS GOOGLE EARTH ENGINE, GOOGLE EARTH ENGINE'DA SENTINEL 2'NİN NDVI'SINI HESAPLAYIN,

Пікірлер: 21

  • @khyatinkadam8032
    @khyatinkadam80326 ай бұрын

    hello, if i want to use this data for machine learning model how can i use it? if you have any idea can you share?

  • @oliver240894
    @oliver2408949 ай бұрын

    bro, how you fix the clouds when you take an image? I try to do this method in Ecuador but in my country I have so many clouds, please can you add that part for the same case to calculate the NDVI, PLEASE.

  • @gisrsprofessionals6246

    @gisrsprofessionals6246

    6 ай бұрын

    increase cloud cover for that image of your area of interest

  • @tasniahaque5934
    @tasniahaque59344 ай бұрын

    Can i please get the code?

  • @M.R-xg9wo

    @M.R-xg9wo

    4 ай бұрын

    var S2 = ee.ImageCollection("COPERNICUS/S2_SR") .filterDate('2020-02-01', '2020-02-28') .filterBounds(AOI) .median(); // print(S2); //COMPUTE NDVI var NIR = S2.select('B8'); var RED = S2.select('B4'); var ndvi = NIR.subtract(RED).divide(NIR.add(RED)).rename('NDVI'); var NDVI = ndvi.clip(AOI); var ndviparam = {min: -1, max: 1, palette : ['Blue', 'yellow', 'green']}; Map.addLayer(NDVI, ndviparam, 'NDVI');

  • @jonyalmeida1990
    @jonyalmeida199010 ай бұрын

    share o code please!

  • @gisrsprofessionals6246

    @gisrsprofessionals6246

    10 ай бұрын

    email me

  • @doobys5269
    @doobys52695 ай бұрын

    hello:) please share the code, thank you

  • @M.R-xg9wo

    @M.R-xg9wo

    4 ай бұрын

    var S2 = ee.ImageCollection("COPERNICUS/S2_SR") .filterDate('2020-02-01', '2020-02-28') .filterBounds(AOI) .median(); // print(S2); //COMPUTE NDVI var NIR = S2.select('B8'); var RED = S2.select('B4'); var ndvi = NIR.subtract(RED).divide(NIR.add(RED)).rename('NDVI'); var NDVI = ndvi.clip(AOI); var ndviparam = {min: -1, max: 1, palette : ['Blue', 'yellow', 'green']}; Map.addLayer(NDVI, ndviparam, 'NDVI');

  • @girishchandrapandey1924
    @girishchandrapandey19249 ай бұрын

    please shae the code

  • @M.R-xg9wo

    @M.R-xg9wo

    4 ай бұрын

    var S2 = ee.ImageCollection("COPERNICUS/S2_SR") .filterDate('2020-02-01', '2020-02-28') .filterBounds(AOI) .median(); // print(S2); //COMPUTE NDVI var NIR = S2.select('B8'); var RED = S2.select('B4'); var ndvi = NIR.subtract(RED).divide(NIR.add(RED)).rename('NDVI'); var NDVI = ndvi.clip(AOI); var ndviparam = {min: -1, max: 1, palette : ['Blue', 'yellow', 'green']}; Map.addLayer(NDVI, ndviparam, 'NDVI');

  • @haifagis3568
    @haifagis3568 Жыл бұрын

    Please share the code

  • @gisrsprofessionals6246

    @gisrsprofessionals6246

    Жыл бұрын

    share your email address

  • @M.R-xg9wo

    @M.R-xg9wo

    4 ай бұрын

    var S2 = ee.ImageCollection("COPERNICUS/S2_SR") .filterDate('2020-02-01', '2020-02-28') .filterBounds(AOI) .median(); // print(S2); //COMPUTE NDVI var NIR = S2.select('B8'); var RED = S2.select('B4'); var ndvi = NIR.subtract(RED).divide(NIR.add(RED)).rename('NDVI'); var NDVI = ndvi.clip(AOI); var ndviparam = {min: -1, max: 1, palette : ['Blue', 'yellow', 'green']}; Map.addLayer(NDVI, ndviparam, 'NDVI');

  • @andufalador9813
    @andufalador98132 ай бұрын

    I don`t know why, but image is grey, the program ignore the pallete

  • @ananilinneain3061

    @ananilinneain3061

    Ай бұрын

    This happened to me also cause I spelt palette wrong accidentally put in two Ls

  • @gisrsprofessionals6246

    @gisrsprofessionals6246

    Ай бұрын

    please review min and max value and have you add visualization variable to map.addlayer

  • @kumaranant325
    @kumaranant32511 ай бұрын

    Please share the code

  • @gisrsprofessionals6246

    @gisrsprofessionals6246

    10 ай бұрын

    email me

  • @M.R-xg9wo

    @M.R-xg9wo

    4 ай бұрын

    var S2 = ee.ImageCollection("COPERNICUS/S2_SR") .filterDate('2020-02-01', '2020-02-28') .filterBounds(AOI) .median(); // print(S2); //COMPUTE NDVI var NIR = S2.select('B8'); var RED = S2.select('B4'); var ndvi = NIR.subtract(RED).divide(NIR.add(RED)).rename('NDVI'); var NDVI = ndvi.clip(AOI); var ndviparam = {min: -1, max: 1, palette : ['Blue', 'yellow', 'green']}; Map.addLayer(NDVI, ndviparam, 'NDVI');