CALCULATE NDVI OF SENTINEL 2 IN GOOGLE EARTH ENGINE

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • 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,

Комментарии • 22

  • @khyatinkadam8032
    @khyatinkadam8032 8 месяцев назад

    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
    @oliver240894 Год назад

    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.

  • @tasniahaque5934
    @tasniahaque5934 7 месяцев назад +1

    Can i please get the code?

    • @M.R-xg9wo
      @M.R-xg9wo 7 месяцев назад +2

      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
    @jonyalmeida1990 Год назад

    share o code please!

  • @andufalador9813
    @andufalador9813 4 месяца назад

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

    • @ananilinneain3061
      @ananilinneain3061 4 месяца назад

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

    • @gisrsprofessionals6246
      @gisrsprofessionals6246  4 месяца назад

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

  • @AlpineTrekker
    @AlpineTrekker 2 месяца назад

    share code

  • @doobys5269
    @doobys5269 7 месяцев назад

    hello:) please share the code, thank you

    • @M.R-xg9wo
      @M.R-xg9wo 7 месяцев назад +1

      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');

  • @kumaranant325
    @kumaranant325 Год назад

    Please share the code

    • @gisrsprofessionals6246
      @gisrsprofessionals6246  Год назад

      email me

    • @M.R-xg9wo
      @M.R-xg9wo 7 месяцев назад

      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 7 месяцев назад +1

      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
    @girishchandrapandey1924 Год назад

    please shae the code

    • @M.R-xg9wo
      @M.R-xg9wo 7 месяцев назад

      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');