Calculate Band NDVI in Google Earth Engine

preview_player
Показать описание
Calculate Band NDVI in Google Earth Engine

2. Please select copy and paste the code below into webpage Code Editor.

// Load an image and display it.
var LC8_image = ee.Image('LANDSAT/LC8_L1T_TOA/LC81250592013178LGN01');

// Create an NDVI image using bands the nir and red bands (5 and 4)
// Display the NDVI image - Use a grayscale stretch for display
Рекомендации по теме
Комментарии
Автор

I tried to modify the script but it seemed to fail:

// Load an image and display it.
var LC8_image =
Map.addLayer(LC8_image, {min:0.05, max: 0.8, bands: 'SR_B6, SR_B5, SR_B4'}, "Landsat 8 Scene");
Map.centerObject(SHP);

// Create an NDVI image using bands the nir and red bands (5 and 4)
var NDVI = LC8_image.normalizedDifference(['SR_B5', 'SR_B4']);
// Display the NDVI image - Use a grayscale stretch for display
Map.addLayer(NDVI, {min: -0.2, max:0.5, palette: '339900']}, "NDVI");

Could you please help me to solve it?

edytrihatmoko
Автор

very thankful for your video tutorial.I wonder how to get azimuth and elevation of an image? Thank you .

闭璐
Автор

Is this level 2 data or level1? Well, it helps alot.

IAKhan-kmph
Автор

How to safe the NDVI file, if I want to open in QGIS. Thank you.

syafraufQGIS
Автор

Nice information. I would like to get some information metadata for Landsat 8. Is it possible? if yes, from the metadata information I would like to use it multiply the value of an image. Can you give some information about this?

iqbalhabibiehabibie