You will always end up with a problem if you use a variable medium to measure a fixed one. Height is absolute. Air is not. Neither is metal or water. Probably light has its own problems. So because air pressure is used a measure a distance, the results it generates have to be corrected whenever the air used varies from its standard (calibration) values.
PM