TransWikia.com

How to plot NDVI time series for two features on same plot?

Geographic Information Systems Asked by Sankarshan Rastogi on August 2, 2020

I used the code mentioned below on Google Earth enfor plotting this. It shows error! Can anyone help with this. I want to plot NDVI time series for two features on same graph but two different lines.

var filteredCollection = ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA")
  .filterBounds(table)
  .filterBounds(table2)
  .filterDate(start, finish)
  .sort('CLOUD_COVER', true);  
var with_ndvi = filteredCollection.map(addNDVI);
var rgb_vis = {min: 0, max: 0.3, bands: ['B4', 'B3', 'B2']};
Map.addLayer(filteredCollection.median(), rgb_vis, 'RGB');
var greenest = with_ndvi.qualityMosaic('nd');
Map.addLayer(greenest, rgb_vis, 'RGB (greenest pixel)');


print(Chart.image.series(with_ndvi.select('nd'), table&table2));

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP