temperaturealtitude

Sealevel Pressure and Temperature Calculation


I want to know if there is any online API for getting pressure and temperature of a location. If not, then I have height above Sealevel (in meters and feet), how can I calculate that to get pressure and temperature of a location?


Solution

  • The current air pressure for a point is not a simple relationship between temperature and elevation. For a better understanding of air pressure see NOAA's brief tutorial on Air Pressure.

    Do you want current atmospheric pressure for a weather station (surface level)? Do you want local altimeter (or pressure altitude) settings for various airports and locations?

    I'm assuming you are asking for current (present) conditions, not forecast data.

    Your question is vague, so without knowing how you wish to use the data I cannot infer more. I hope this helps point you in the right direction, or at least helps you better understand what you really want. Good luck.