I'm trying to export Global Surface Water imagery using earth engine code editor. I want to include a scale bar over the region of interest in the exported image... how easy is this to accomplish? I've already extracted an image as a TIFF, would it be easier to open the TIFF in ArcGIS to add the scale bar or is there some javascript that could be added to address this? Not sure where to begin!
I note that GEE shows a little scale bar already on the lower right hand corner, but this doesn't get preserved in the image I download.
Existing image port is below:
var gsw = ee.Image('JRC/GSW1_0/MonthlyRecurrence/08');
var recurrence = gsw.select('monthly_recurrence');
print(gsw);
//////////////////////////////////////////////////////////////
// Calculations
//////////////////////////////////////////////////////////////
// Create visualization layers.
var recurrence2 = recurrence.updateMask(recurrence.divide(100))
print(recurrence2);
var recurrence2RGB = recurrence2.visualize({
min:0,
max:100,
palette: ['#FF7F27', '#99D9EA']
});
//////////////////////////////////////////////////////////////
// Map Layers
//////////////////////////////////////////////////////////////
print('Image to export: ', recurrence2RGB);
Map.addLayer({
eeObject: recurrence2RGB,
name: 'OCCURENCE IN AUGUST',
shown: true
});
Export.image.toDrive({
image: recurrence2RGB,
description: '08',
scale: 30,
region: geometry,
crs: 'EPSG:3857'
});