This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hello! Thanks for the follow-up You're right! I had misunderstood. MetPy does have some functions that may be helpful for you here. First, you can calculate height from a given pressure, https://unidata.github.io/MetPy/latest/api/generated/metpy.calc.pressure_to_height_std.html#metpy.calc.pressure_to_height_std assuming the 1976 US Standard atmosphere [https://ntrs.nasa.gov/citations/19770009539]. You also may be able to use MetPy's thickness calculation, https://unidata.github.io/MetPy/latest/api/generated/metpy.calc.thickness_hydrostatic.html given an entire profile of pressure and temperature, and assumes a hydrostatic atmosphere. You can check the referenced equations if needed. It will be up to you to evaluate if these assumptions are valid for your use-case, but we do have these tools available! I hope this helps, and don't hesitate to follow up if you need. All the best, Drew > I may of said something incorrectly. We want to calculate height given > pressure. I said using altimeter because I thought they were synonymous. But > maybe they aren't > > Would you of said anything different if I said calculate height versus > pressure? > Ticket Details =================== Ticket ID: FFR-890728 Department: Support Python Priority: Low Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.