Parameters
first_order(raster, parameters, scaling_factor=1, slope_tolerance=0, slope_gradient_unit='radians', slope_direction_unit='radians', method='Horn')
Calculate the first order surface attributes.
For compatibility for slope and aspect calculations with ArcGIS or QGIS, choose Method Horn (1981).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
raster |
DatasetReader
|
Input raster. |
required |
parameters |
Sequence[Literal[G, A]]
|
List of surface parameters to be calculated. |
required |
scaling_factor |
Optional[Number]
|
Scaling factor to be applied to the raster data set. Default to 1. |
1
|
slope_tolerance |
Optional[Number]
|
Tolerance value for flat pixels. Default to 0. |
0
|
slope_gradient_unit |
Literal[degrees, radians, rise]
|
Unit of the slope gradient parameter. Default to radians. |
'radians'
|
slope_direction_unit |
Literal[degrees, radians]
|
Unit of the slope direction parameter. Default to radians. |
'radians'
|
method |
Literal[Horn, Evans, Young, Zevenbergen]
|
Method for calculating the coefficients. Default to the Horn (1981) method. |
'Horn'
|
Returns:
Type | Description |
---|---|
dict
|
Selected surface attributes and respective updated metadata. |
Raises:
Type | Description |
---|---|
InvalidRasterBandException
|
Raster has more than one band. |
NonSquarePixelSizeException
|
Pixel dimensions do not have same length. |
InvalidParameterValueException
|
Wrong input parameters provided. |
Source code in eis_toolkit/raster_processing/derivatives/parameters.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
|
second_order_basic_set(raster, parameters, scaling_factor=1, slope_tolerance=0, method='Young')
Calculate the second order surface attributes.
References
Young, M., 1978: Terrain analysis program documentation. Report 5 on Grant DA-ERO-591-73-G0040, 'Statistical characterization of altitude matrices by computer'. Department of Geography, University of Durham, England: 27 pp.
Zevenbergen, L.W. and Thorne, C.R., 1987: Quantitative analysis of land surface topography, Earth Surface Processes and Landforms, 12: 47-56.
Wood, J., 1996: The Geomorphological Characterisation of Digital Elevation Models. Doctoral Thesis. Department of Geography, University of Leicester, England: 466 pp.
Parameters longc and crosc from are referenced by Zevenbergen & Thorne (1987) as profile and plan curvature. For compatibility with ArcGIS, choose Method Zevenbergen & Thorne (1987) and parameters longc and crosc.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
raster |
DatasetReader
|
Input raster. |
required |
parameters |
Sequence[Literal[planc, profc, profc_min, profc_max, longc, crosc, rot, K, genc, tangc]]
|
List of surface parameters to be calculated. |
required |
scaling_factor |
Optional[Number]
|
Scaling factor to be applied to the raster data set. Default to 1. |
1
|
slope_tolerance |
Optional[Number]
|
Tolerance value for flat pixels. Default to 0. |
0
|
method |
Literal[Evans, Young, Zevenbergen]
|
Method for calculating the coefficients. Default to the Young (1978) method. |
'Young'
|
Returns:
Type | Description |
---|---|
dict
|
Selected surface attributes and respective updated metadata. |
Raises:
Type | Description |
---|---|
InvalidRasterBandException
|
Raster has more than one band. |
NonSquarePixelSizeException
|
Pixel dimensions do not have same length. |
InvalidParameterValueException
|
Wrong input parameters provided. |
Source code in eis_toolkit/raster_processing/derivatives/parameters.py
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
|