I created a small image on Google Earth Engine and now would like to export all its bands in a csv file. With a format like
| pixel id | lat | lng | band1 | ....|
|----------|-----|-----|-------|-----|
|__________|_____|_____|_______|_____|
I find in the doc that it was possible to obtain this result for a FeatureCollection
but nothing for Image
.
The small image that I would like to export :
//load dataset
var gfc2014 = ee.Image('UMD/hansen/global_forest_change_2015');
var tree = gfc2014.select('treecover2000');
// Export the image, specifying scale and region.
Export.image.toDrive({
image: tree.updateMask(tree),
description: 'foret St Genis',
scale: 30,
region: geometry //defined with the inspector
fileFormat: 'CSV' //of course I need to work on this one
});