Surface#
Danger
slope(), aspect(), curvature(), and hillshade() with
method='geodesic' assume the WGS84 ellipsoid and require
coordinates in degrees (geographic CRS). Passing projected
coordinates (metres) to the geodesic method produces wrong results.
Use method='planar' (the default) for projected data.
Note
All surface functions output float32 regardless of input dtype.
Edge cells within the 3x3 kernel radius are NaN by default
(boundary='nan').
Aspect#
|
Calculates the aspect value of an elevation aggregate. |
Northness#
|
Computes the north-south component of aspect. |
Eastness#
|
Computes the east-west component of aspect. |
Curvature#
|
Calculates, for all cells in the array, the curvature (second derivative) of each cell based on the elevation of its neighbors in a 3x3 grid. |
Hillshade#
|
Calculates, for all cells in the array, an illumination value of each cell based on illumination from a specific azimuth and altitude. |
Slope#
|
Returns slope of input aggregate in degrees. |
Terrain Generation#
|
Generate pseudo-random terrain for testing raster functions. |
Sky-View Factor#
Compute the sky-view factor for each cell of a DEM. |
Viewshed#
|
Calculate viewshed of a raster (the visible cells in the raster) for the given viewpoint (observer) location. |
Cumulative Viewshed#
Count how many observers can see each cell. |
Visibility Frequency#
Fraction of observers that can see each cell. |
Line of Sight#
|
Compute elevation profile and visibility along a straight line. |
Perlin Noise#
|
Generate perlin noise aggregate. |
Bump Mapping#
|
Generate a simple bump map to simulate the appearance of land features. |
Erosion#
|
Apply particle-based hydraulic erosion to a terrain DataArray. |