利用MATLAB制作DEM山体阴影
在地理绘图中,我们使用的DEM数据添加山体阴影使得绘制的图件显得更加的美观。
GIS中使用ArcGIS软件就可以达到这一目的,或者使用GMT,同样可以得到山体阴影的效果。
本文提供了一个MATLAB的函数,可以得到山体阴影。

其中调用的函数 hillshade_esri.m如下:
其中有三个参数可以修改:azimuth=315;altitude=45;zf=1;
修改 azimuth,the direction of lighting in deg,下图的变化范围为0:360:

2.修改 altitude,the altitude of the lighting source in degrees above horizontal,下图变化范围为0:180:

3.修改 zf,the DEM altitude scaling z-factor ,下图变化范围为1:50:
