Click or drag to resize

UtilConvertPressure Method

Convert atmospheric pressure from one altitude above mean sea level to another

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.6.9999.9999)
Syntax
public double ConvertPressure(
	double Pressure,
	double FromAltitudeAboveMeanSeaLevel,
	double ToAltitudeAboveMeanSeaLevel
)

Parameters

Pressure  Double
Measured pressure in hPa (mBar) at the "From" altitude
FromAltitudeAboveMeanSeaLevel  Double
"Altitude at which the input pressure was measured (metres)
ToAltitudeAboveMeanSeaLevel  Double
Altitude to which the pressure is to be converted (metres)

Return Value

Double
Pressure in hPa at the "To" altitude
Remarks
Uses the equation: p = p0 * (1.0 - 2.25577E-05 h)^5.25588
See Also