fix_pressure function

Correct a depth or altitude profile