[Gdal-dev] RE: shaded relief utility (DIY)

Ari Jolma ari.jolma at tkk.fi
Sun Nov 5 15:53:20 EST 2006


Probably you are looking for how to compute an estimate of the slope and 
aspect, from which you can compute the shading.

Usually a fit of 9-term quadratic polynomial is used. C code for 
computing that is for example here: 
(see lines 94-260) z_factor is for cases when the unit of x and y 
differs from the unit of z.


Ari Jolma

odhiambo george kirjoitti:
> Dear Sir,
> I'm trying to write a MATLAB program for calculating or creating 
> shaded relief from a DEM. I have come across the equation attached to 
> this e-mail which i believe represents calculation of the cell values 
> heights.
> What I don't undersyand is how to handle the DEM, for example, how do 
> I use the DEM together with the equation  ?
> Kindly assist by shedding some light on the procedure used
> Kind regards,
> George
> ------------------------------------------------------------------------
> Access over 1 million songs - Yahoo! Music Unlimited Try it today. 
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/> 
> ------------------------------------------------------------------------
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev

Prof. Ari Jolma
Geoinformaatio- ja paikannustekniikka
Geoinformation and positioning technology
Teknillinen Korkeakoulu / Helsinki University of Technology
POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma

More information about the Gdal-dev mailing list