Sunday, 15 May 2016

gdal - How to average gdal_hillshades?


For some unknow reason, my average of 3 hillshades is very dark :


gdaldem hillshade input.tif hillshades_C.tmp.tif -s 111120 -z 5 -az 315 -alt 60 -compute_edges
gdaldem hillshade input.tif hillshades_B.tmp.tif -s 111120 -z 5 -az 355 -alt 60 -compute_edges
gdaldem hillshade input.tif hillshades_A.tmp.tif -s 111120 -z 5 -az 275 -alt 60 -compute_edges
gdal_calc.py -A hillshades_A.tmp.tif -B hillshades_B.tmp.tif -C hillshades_C.tmp.tif --outfile=./hillshades.tmp.tif --calc="(A+B+C)/3"


enter image description here


I did tried --calc="(A+B+C)", it get lighter, but still too dark and not as expected.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...