Valley depth is calculated as difference between the elevation and an interpolated ridge level. Ridge level interpolation uses the algorithm implemented in the 'Vertical Distance to Channel Network' tool. It performs the following steps: - Definition of ridge cells (using Strahler order on the inverted DEM). - Interpolation of the ridge level. - Subtraction of the original elevations from the ridge level.