From the user, a station elevation and an altimeter setting are given. Before calculating the station pressure, the station elevation must be converted to meters using the formula below:
Also, the altimeter setting must be converted to inches of mercury
For information on how to convert pressure, use the link below:
http://www.srh.noaa.gov/elp/wxcalc/formulas/pressureConversion.html
Then, the station pressure can be calculated using the formula below:
Then, the station pressure can be converted to other pressure units, using the link above.