I have my region of interest as a polygon. When I calculate the surface area I get a '2D value' (ie as if it was a flat surface). The problem is, the region is quite full of hills, so the real surface area would be significantly different because all the slopes make my 2D value a serious underestimation.
I thought I could download DEM, clip it to my polygon, and then calculate the real, 3D surface area from it. How can I do this? I've seen this question but for other tools (eg using QGIS and ArcGis).
But I want to do everything entirely in Python (or JavaScript) without installing QGIS.
Can you suggest a way to do this using Google Earth Engine?