Util.ConvertPressure Method
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.4.0.2624)
Syntax
public double ConvertPressure(
	double Pressure,
	double FromAltitudeAboveMeanSeaLevel,
	double ToAltitudeAboveMeanSeaLevel
)

Parameters

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

Return Value

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