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:
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.General expressions (assuming a standard cubic building):
Slope > 0.01removes the top of the building.Slope > 0.01 and Slope < 179.9removes the top and bottom of the building.
Ports
| Direction | Name | Type | Description |
|---|---|---|---|
| Input | Input Field | Field | Accepts a data field. |
| Input | Input Number Variable 1 | Number | Accepts the first numeric value for the slope or aspect expression. |
| Input | Input Number Variable 2 | Number | Accepts the second numeric value for the slope or aspect expression. |
| Output | Output True Field | Field | Outputs the field which matches the subsetting expression. |
| Output | Output False Field | Field | Outputs the opposite of the true field. |
Properties
| Property | Type | Description |
|---|---|---|
| Flat Surface Aspect | Double | The value to use for the aspect of cells on a flat surface. |
| N1 | Double | The N1 variable usable by expressions. It may be passed in via the Input Number Variable 1 port. |
| N2 | Double | The N2 variable usable by expressions. It may be passed in via the Input Number Variable 2 port. |
| Subset Expression | String | The 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 Variables | String (read-only) | The variables available to the expression: Slope, Aspect, N1, N2. |
| Split Edges | Boolean | Splits surfaces when the edge between two neighboring cells is sharp. This improves rendering in most cases. |
| Split Edge Angle | Double | The 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. |