Cut off terrain

How to cut off vertical parts of the terrain?
I would like to cut it off at the lowest point of the valley, removing the unused lower parts

Try the Clamp device. (Normalize input)