I use this link to extract surface area of water bodies from SAR images
Google Earth Engine ROI area falling outside/partial coverage by Sentinel 1 Tile
But now I would like to calculate the area of inundated areas and export them to CSV file but when running this code, the Error
flooded.multiply is not a function
What can I do ?
var flooded = S1.select("Water")
Map.addLayer(flooded,
{min:0, max:1, palette: ['grey', 'blue']},
'flooded')
var areaImage = flooded.multiply(ee.Image.pixelArea())
var area = areaImage.reduceRegion({
reducer: ee.Reducer.sum(),
geometry: aoi.geometry(),
scale: 10,
maxPixels: 1e10
})