constructing a topographic profile