I would like to export as csv of NDVI time series for different points. I currently have a code that can print a chart, then click download the data from chart. Is there a better way to do so as I do not necessarily need to open a chart?
What I have now is a code to print a chart for one location, then I could download...I would like to have an automatic way so that I will not need to download from chart.
var point = ee.Geometry.Point([-100, 50]);
var LS8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA');
var FieldLS8 = LS8.filterBounds(point).filterDate('1995-01-01', '2018-12-31').sort('CLOUD_COVER')
var cloudlessNDVI_LS8 = FieldLS8.map(function(image) {
var cloud = ee.Algorithms.Landsat.simpleCloudScore(image).select('cloud');
var mask = cloud.lte(50);
var ndvi = image.normalizedDifference(['B5', 'B4']).rename('NDVI');
return image.addBands(ndvi).updateMask(mask);
});
print(ui.Chart.image.series({
imageCollection: cloudlessNDVI_LS8.select('NDVI'),
region: point,
reducer: ee.Reducer.first(),
scale: 30
}).setOptions({title: 'LS8: Meadow Cloud-masked NDVI over time'}));