How to Calculate Min and Max in GEE || Visualization || Range Calculation in GEE ||

Опубликовано: 15 Май 2026
на канале: Understanding RS-GIS & Geography
286
3

Please Subscribe this YouTube Channel. You will be helpful with this channel. Please like and share the videos. And comment me if any query or any suggestion. Thank you.


------------------------------------------------------------------------------------------
GEE CODE
------------------------------------------------------------------------------------------


/* Step 1 - Region of Interest ********************************************************/

Map.addLayer(roi,{},'roi',false);
Map.centerObject(roi,12)


/* Step 2 - Calling the Data **********************************************************/

var S23 = ee.ImageCollection('COPERNICUS/S2')
.filterDate('2023-01-01', '2023-12-31')
.filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 10))
.select('B2', 'B3', 'B4','B5', 'B6', 'B7', 'B8' , 'B11', 'B12')
.median()
.clip(roi)
;


/* Step 3 - NDVI calculation ************************************************************/

/// ndvi nir red
var ndvi_2023 = S23.normalizedDifference(['B8', 'B4']);


/* Step 4 - min and max or range Calculation *****************************************/

var range_ndvi_2023 = ndvi_2023.reduceRegion({
reducer: ee.Reducer.minMax(),
geometry: roi,
scale: 10,
maxPixels: 1e9
});

/* Step 5 - Print the min and max or range ***************************************************************/

print(range_ndvi_2023,'range_ndvi_2023')

var colorizedVis = {
min: -0.09,
max: 0.45,
palette: [
'ffffff', 'ce7e45', 'df923d', 'f1b555', 'fcd163', '99b718', '74a901',
'66a000', '529400', '3e8601', '207401', '056201', '004c00', '023b01',
'012e01', '011d01', '011301'
],
};

Map.addLayer(ndvi_2023,colorizedVis,'ndvi_2023',false)

------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------


ArcMap Fundamentals
   • ArcMap Fundamentals  

Google Earth
   • Google Earth  

Google Earth Engine
   • Google Earth Engine  

Research Methodology
   • Research Methodology  

R STUDIO
   • R STUDIO  

Hydraulics
   • Hydraulics  

Excel Fundamentals
   • MS Excel  

Topographical Map
   • Topographical Map  

Shapefile Editing
   • Shapefile Editing  

MS Word
   • MS Word  

Data Downloading
   • Data Downloading  



#ursgisg
#min_max
#gee
#ursgisg