wiedehopf / tar1090

Provides an improved webinterface for use with ADS-B decoders readsb / dump1090-fa
Other
1.27k stars 237 forks source link

add altimeter pressure correction #308

Closed justin4046 closed 5 months ago

wiedehopf commented 5 months ago

I'm getting the formula a bit more precise, not that it matters. Just wanted to also provide a reference as to which formula was used.

Your formula was off by 2ft at 10k ft and 6 ft at 40k ft. Which is obviously irrelevant but wanted to check the code vs this reference: https://www.weather.gov/media/epz/wxcalc/pressureAltitude.pdf

wiedehopf commented 5 months ago

See recent commits if you're curious about the changes i made to this PR.

justin4046 commented 5 months ago

Thanks. This was my source for station pressure. https://www.weather.gov/media/epz/wxcalc/stationPressure.pdf Probably an unnecessary inhg conversion

wiedehopf commented 5 months ago

Think you took the inverse of the exponent from wikipedia. And that exponent is a bit off on wikipedia for some reason. And getting rid of conversions helps of course :)