This tool creates a new raster in which each grid cell is assigned the terrain aspect relative to a user-specified wind direction. Relative terrain aspect is the angular distance (measured in degrees) between the land-surface aspect and the assumed regional wind azimuth (Bohner and Antonic, 2007). It is bound between 0-degrees (windward direction) and 180-degrees (leeward direction). Relative terrain aspect is the simplest of the measures of topographic exposure to wind, taking into account terrain orientation only and neglecting the influences of topographic shadowing by distant landforms and the deflection of wind by topography.
The user must specify the name of a digital elevation model (DEM) and an azimuth (i.e. a wind direction). The Z Conversion Factor is only important when the vertical and horizontal units are not the same in the DEM. When this is the case, the algorithm will multiply each elevation in the DEM by the Z Conversion Factor.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
demFile = wd + "DEM.dep"
outputFile = wd + "output.dep"
azimuth = "215"
zFactor = "1.0"
args = [demFile, outputFile, azimuth, zFactor]
pluginHost.runPlugin("RelativeAspect", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def demFile = wd + "DEM.dep"
def outputFile = wd + "output.dep"
def azimuth = "215"
def zFactor = "1.0"
String args = [demFile, outputFile, azimuth, zFactor]
pluginHost.runPlugin("RelativeAspect", args, false)