I am using python 3.X and I am transforming a DEM (from a raster GeoTIFF file) into a slop tif file. I am using GDAL and rasterio to do that.
Specifically, I am using the method:
gdal.DEMProcessing(output, input, 'slope')
My problem is I do not know what is the mathematics and what exact method GDAL uses to calculate the slope. I can't find the answer in the GDAL documentation.
Anyone can point me to that. Looking for the aspect method as well.