calcTopoCorr function

Correct for topographic effects.