Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
calc_slope_map [2015/10/13 02:00]
admin
calc_slope_map [2026/08/28 03:11] (current)
hermann Sync from local documentation review
Line 1: Line 1:
-====== Calc Slope Map ====== ​+====== Calc Slope Map ======
  
 ===== Description ===== ===== Description =====
  
-This functor calculates ​a slope map based on a height ​map.+Calculates ​a slope map from an elevation ​map. For each cell, the slope is calculated toward every neighboring cell using the elevation difference and the distance between the cells, and the largest of those slopes is assigned to the cell.
  
 ===== Inputs ===== ===== Inputs =====
  
 ^ Name  ^ Type  ^ Description ​ ^ ^ Name  ^ Type  ^ Description ​ ^
-| Elevation | [[Map Type]] ​ | A height ​map. The height is assumed to be in meters. ​It may have null values. ​  ​|+| Elevation ​ | [[Map Type]] ​ | Elevation ​mapin meters. ​May contain ​null values. ​ |
  
 ===== Optional Inputs ===== ===== Optional Inputs =====
  
 ^ Name  ^ Type  ^ Description ​ ^ Default Value  ^ ^ Name  ^ Type  ^ Description ​ ^ Default Value  ^
-Use Diagonals Are Longer ​ | [[Boolean Value Type]] ​ | Indicates if the distance ​between the cells at the diagonals must be increased ​by the factor of 1.414213562. ​ | True  | +| Diagonals Are Longer ​ | [[Boolean Value Type]] ​ | If true, the distance ​to diagonal neighbor ​cells is multiplied ​by 1.414213562. This is an advanced port.  | Yes  | 
-| Slope In percent ​ ​| ​[[[Boolean Value Type]] ​ | If true, the slope will be calculated in percent; otherwise, it is calculated in degrees. ​ | False  | +| Slope In Percent ​ | [[Boolean Value Type]] ​ | If true, slope is calculated in percent; otherwise, it is calculated in degrees. ​ | No  | 
-| Cell Type  | [[Cell Type Type]] ​ | The slope data cell type.  | Signed 32 Bit Integer ​ | +| Cell Type  | [[Cell Type Type]] ​ | Cell type of the slope map.  | Signed 32 Bit Integer ​ | 
-| Null Value  | [[Integer ​Value Type]] ​ | Null value of the slope map. The cell type must be appropriate.  | -2147483648 ​ | +| Null Value  | [[Null Value Type]] ​ | Null value of the slope map. Must be compatible with Cell Type.  | .default ​ | 
-| Slope Is Sparse ​ | [[[Boolean Value Type]] ​ | If true, set the output map as sparse. ​ | False  |+| Slope Is Sparse ​ | [[Boolean Value Type]] ​ | If true, the output map is saved as sparse ​raster set. This is an advanced port.  | No  |
  
-===== Output ​=====+===== Outputs ​=====
  
 ^ Name  ^ Type  ^ Description ​ ^ ^ Name  ^ Type  ^ Description ​ ^
-| Slope  | [[Map Type]] ​ | The slope map. Map format has the same dimensions ​of the source map.  |+| Slope  | [[Map Type]] ​ | Slope map, with the same dimensions ​as Elevation.  |
  
 ===== Group ===== ===== Group =====
Line 30: Line 30:
 ===== Notes ===== ===== Notes =====
  
-The functor calculates the slope of a cell using the height difference for each neighbor cell and its dimension. The largest slope is chosen as the output value.+Raises an error if Null Value is not compatible with Cell Type.
  
 ===== Internal Name ===== ===== Internal Name =====