Calculating a topographic index