Wednesday, April 20, 2022

Google Earth Engine (GEE) Normalized Difference Vegetation Index (NDVI) For MODIS

Normalized Difference Vegetation Index (NDVI) in Google Earth Engine (GEE) for MODIS Data:

Here we will be doing satellite image processing by Google Earth Engine (GEE), the first of we will Normalized Difference Vegetation Index (NDVI) for MODIS Data using Google Earth Engine (GEE)

We've put the whole process of this NDVI on YouTube, and the programming code is given below to make the process easier.

YouTube Link: https://youtu.be/hVUMpvTlYNA

Code:

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

var dataset = ee.ImageCollection('LANDSAT/LC08/C01/T1_8DAY_NDVI') .filterDate('2017-01-01', '2017-12-31'); var colorized = dataset.select('NDVI'); print(colorized) var ndvi=colorized.reduce(ee.Reducer.mean()); print(ndvi) var ndvi_crop=ndvi.clip(geometry); var colorizedVis = { min: 0.0, max: 1.0, palette: [ 'FFFFFF', 'CE7E45', 'DF923D', 'F1B555', 'FCD163', '99B718', '74A901', '66A000', '529400', '3E8601', '207401', '056201', '004C00', '023B01', '012E01', '011D01', '011301' ], }; Map.setCenter(87.45, 21.55, 12); Map.addLayer(ndvi_crop, colorizedVis, 'Colorized'); Export.image.toDrive({ image: ndvi_crop, description: 'avg_NDVI_2017', scale: 30, maxPixels: 1e13, });

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

We hope you find this code useful. Stay tuned with us to find out and learn new things like this. If there is any problem you can let us know by commenting below or contacting us.


No comments:

Post a Comment

If you have any doubt, Please let me know