TPI function

Calculates Topographic Position Index