Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Altimeter Setting to Sea Level Does Not Match #2586

Open
jrleeman opened this issue Jul 19, 2022 · 4 comments
Open

Altimeter Setting to Sea Level Does Not Match #2586

jrleeman opened this issue Jul 19, 2022 · 4 comments
Labels
Type: Bug Something is not working like it should

Comments

@jrleeman
Copy link
Contributor

What went wrong?

Using METARs from some larger airports we don't get SLP values that match those reported.

KDEN 190053Z 23006KT 10SM SCT120 BKN160 BKN220 32/08 A3004 RMK AO2 PK WND 26033/0008 WSHFT 0009 RAB10E29 SLP071 P0000 T03220083

we get 1002.8 hPa, but the METAR indicates SLP is 1007.1 hPa

Looking at Dallas (much lover elevation of 606ft) we get a difference still

KDFW 190053Z 18019G24KT 10SM FEW110 39/14 A2976 RMK AO2 PK WND 17027/0019 SLP066 T03940139

We calculate 1006.8, but the METAR indicates 1006.6.

In the end I haven't yet found the root cause, but wanted to document it.

Operating System

Windows

Version

1.3

Python Version

3.10.4

Code to Reproduce

import metpy.calc as mpcalc
from metpy.units import units

a = 30.04 * units('inHg')
h = 5434 * units('ft')

mpcalc.altimeter_to_sea_level_pressure(a, h, 32 * units.degC).to('hPa')

Errors, Traceback, and Logs

No response

@jrleeman jrleeman added the Type: Bug Something is not working like it should label Jul 19, 2022
@kgoebber
Copy link
Collaborator

My first instinct is there an inherent limitation to this computation. The way that the function is formulated will have the limitations of defining the average layer temperature when a portion of that layer is below ground. This is exacerbated in a place like Denver compared to Dallas. A quick internet search indicates some more sophisticated calculations for doing this conversation including: http://www.wind101.net/sea-level-pressure-advanced/sea-level-pressure-advanced.html There is also something from WMO, but I can't seem to access the website as the document has moved with subsequent page updates to the WMO websites.

@jrleeman
Copy link
Contributor Author

I think you're likely on track. I probably won't get to dig in for awhile yet, but seems like we should be able to reproduce the ASOS readings functionally.

@akrherz
Copy link
Contributor

akrherz commented Jul 20, 2022

My fuzzy recollection thinks there is some recent averaged surface air temperature correction applied to the standard atmosphere calculation to provide a seasonal bias correction to the standard atmosphere assumption? Now, where did I see this... :(

@sgdecker
Copy link
Contributor

According to the AMS Glossary, "the mean temperature for the preceding 12 hours is employed", so I'd only expect agreement (or at least, less of a discrepancy) if you used that temperature rather than 32 C in the calculation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something is not working like it should
Projects
Status: No status
Development

No branches or pull requests

4 participants