dem_rotate(input_geotiff, output_geotiff, rotation_angle)
Use case: For GIS based processes where rotation of a digital elevation model/any other geotiff is required. Example: For flood modelling, it doesnt matter what the orientation of the valley is. If you could rotate the DEM, it can be cropped more tightly (orienting the valley along the diagonal of a rectangle, for example). This helps reduce the size of the input tif file, which directly controls how fast the model can run.
Credits: https://gis.stackexchange.com/questions/131465/gdal-rotate-dem
Logic: It converts the file first into transverse mercator for the given longitude. then it reprojects into a oblique mercator projection, whose azimuthal angle is alpha. so it is like rotating the earth below
