Aspect

The aspect is the direction a slope faces, clockwise from north: 0 for the slopes facing north, 90 east, 180 south and 270 west. With the slope, it sets how much sun a slope receives, and so its temperature, its snow cover and its vegetation.

The aspect is computed from the differences of elevation of the four neighbours of each cell. It is not defined on flat cells, and the cells at the border of the map, without all the neighbours, are left as no-data.

Parameters

Calculates the aspect of the terrain, the direction the slope faces, clockwise from north: 0 for the slopes facing north, 90 east, 180 south, 270 west. It is computed from the 3x3 window around each cell, and the cells at the border of the map are left as no-data.

Toolbox folder: Geomorphology
Status: Certified
Keywords: Geomorphology, Aspect, Exposure
Authors: Andrea Antonello, Erica Ghesla, Rigon Riccardo, Pisoni Silvano, Andrea Cozzini
Class: org.hortonmachine.modules.Aspect

Inputs

Parameter

Type

Unit

Default

Description

inElev

raster file

m

The map of the elevation.

doRadiants

boolean

false

Write the aspect in radians; if not set, in degrees.

doRound

boolean

false

Round the aspect to integer values, which makes sense in degrees.

Outputs

Parameter

Type

Unit

Description

outAspect

output file

° or rad

The map of the aspect, clockwise from north.

Example

The example runs on the sample elevation model of the manual, dtm_flanginec.tif in docs/manual/modules/maps/data, each module on the outputs of the previous ones:

import org.hortonmachine.modules.Aspect

// the folder with the elevation model: change it to yours
var folder = "/data/flanginec/"

var aspect = new Aspect()
aspect.inElev = folder + "dtm_flanginec.tif"
aspect.outAspect = folder + "aspect.tif"
aspect.process()
The aspect of the sample area, clockwise from north, with the cyclic colortable of the aspect: north (0 and 360) is light, south (180) dark.

The aspect of the sample area, clockwise from north, with the cyclic colortable of the aspect: north (0 and 360) is light, south (180) dark.