slope aspect splitter

slope aspect splitter

The slope aspect splitter module splits an input field into two output fields based upon the slope and/or aspect of the external face of each cell and the subset expression used. The input field is split into two fields: one for which all cell orientations are true for the subset expression, and another for which all cell orientations are false for the subset expression.

All data from the original input is preserved in the output.

The expression can use the variables Slope, Aspect, N1 and N2. Units are always degrees; you can convert them to radians inside the expression if you want (Slope * PI/180).

Flat Surfaces:

A realistic aspect cannot be computed for a flat surface. Since Aspect is a variable, it must be defined for each cell, so cells with a slope of 0 or 180 are given the Flat Surface Aspect value.

Example Expressions:

  1. To output all upward facing surfaces, use the default subset expression of Slope < 89.9. If your object were a perfect sphere, this would give you most of the upper hemisphere, since the equator would be at a slope of 90 degrees and the bottom would be greater than 90 degrees. (There is potential for rounding errors, so use 89.9 instead of 90.)

    If your ground surface is perfectly flat and you want only it, you could use Slope < 0.01. However, in the real world where topography exists, it can be difficult if not impossible to extract the ground surface without also getting other bits of surfaces that meet your criteria.

  2. General expressions (assuming a standard cubic building):

    • Slope > 0.01 removes the top of the building.
    • Slope > 0.01 and Slope < 179.9 removes the top and bottom of the building.

Ports

DirectionNameTypeDescription
InputInput FieldFieldAccepts a data field.
InputInput Number Variable 1NumberAccepts the first numeric value for the slope or aspect expression.
InputInput Number Variable 2NumberAccepts the second numeric value for the slope or aspect expression.
OutputOutput True FieldFieldOutputs the field which matches the subsetting expression.
OutputOutput False FieldFieldOutputs the opposite of the true field.

Properties

PropertyTypeDescription
Flat Surface AspectDoubleThe value to use for the aspect of cells on a flat surface.
N1DoubleThe N1 variable usable by expressions. It may be passed in via the Input Number Variable 1 port.
N2DoubleThe N2 variable usable by expressions. It may be passed in via the Input Number Variable 2 port.
Subset ExpressionStringThe expression used to subset the input field. Cells for which the expression is true are sent to the Output True Field; all others are sent to the Output False Field.
Subset VariablesString (read-only)The variables available to the expression: Slope, Aspect, N1, N2.
Split EdgesBooleanSplits surfaces when the edge between two neighboring cells is sharp. This improves rendering in most cases.
Split Edge AngleDoubleThe maximum angle (0 to 180 degrees) allowed between two adjacent faces before they are disconnected to create visually sharp edges. Only used when Split Edges is on.