docs / api / pysoilmap / features.rst

pysoilmap.features

Computation of topographic variables from a DEM.

The DEM’s axes ordering is assumed to be (Y, X) in accordance with the same convention as for numpy.meshgrid() or matplotlib.pyplot.imshow().

Functions

diff_finite(dem, cellsize, dx, dy)

Calculate a higher-order derivative of the DEM by finite differencing successively in X and then Y direction.

diff_gauss(dem, cellsize, dx, dy[, sigma])

Applies a Gaussian derivative filter to the given DEM.

get_latitude(xs, ys, crs)

Calculate the latitude for each pair of (X, Y) coordinates in the given CRS.

rad_angle(aspect, slope, latitude[, declination])

Return the cosine of the "radiation angle" according to Herbsta, et al 2006 [1].

sun_exposure(grad_dir, slope, latitude[, ...])

Return the cosine of the angle between surface normal and the sun at midday.

Classes

Topography(dem, cellsize[, diff, indexing, ...])

Calculates various topographic indices at each pixel from on a given DEM.

Class Inheritance Diagram

Inheritance diagram of pysoilmap.features.Topography