Correct for altitude in detector offsets

Not a perfect implementation but close.
The histogram of dt is no longer gaussian.
Another fit function should be used to account for expect offset and
shape due to z.
For now this is fairly close to correcting for altitude.