Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

How to average gdal_hillshades?

$
0
0

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.


Viewing all articles
Browse latest Browse all 397

Trending Articles