I have code in GEE which create table with the sentinel2 mean NDVI data for certain period. my problem is that the table in the end has two column with the dates, one is the name of each image (not easy to read- 20191004T051651_20191004T052839_T43QGC_00000000000000000000 for example) and the other has also dates but not readable ( for example : 1573623201083)
I have tried to change the format in different places in my code so it will get the correct time values, e.g:
// Collect region, image, value triplets.
var triplets = filter.map(function(image) {
return image.select('NDVI').reduceRegions({
collection: geometry.select(['Name']),
reducer: ee.Reducer.mean(),
scale: 20
}).filter(ee.Filter.neq('mean', null))
.map(function(f) {
return f.set('time', image.get(ee.Date('system:time_start')));
});
}).flatten();
print('triplets', triplets);
FeatureCollection (Error) Date: Bad date/time 'system:time_start'
and:
// Get the list of all features with a unique row ID.
var values = ee.List(row.get('matches'))
// Map a function over the list of rows to return a list of
// column ID and value.
.map(function(feature) {
feature = ee.Feature(feature);
return [feature.get(Name), feature.get('mean')];
});
// Return the row with its ID property and properties for
// all matching columns IDs storing the output of the reducer.
// The Dictionary constructor is using a list of key, value pairs.
return row.select(ee.Date([time])).set(ee.Dictionary(values.flatten()));
});
};
Invalid argument specified for ee.Date(): time
This is link to the script: https://code.earthengine.google.com/f4bb8bcac7d2e351523b33d9401a8618
it has already the geometry , in case it doesn't work let me know
My end goal: to have readable date column in my table