UtilitiesConvertPressure Method
Convert atmospheric pressure from one altitude above mean sea level to another
Namespace: ASCOM.ToolsAssembly: ASCOM.Tools (in ASCOM.Tools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static double ConvertPressure(
double Pressure,
double FromAltitudeAboveMeanSeaLevel,
double ToAltitudeAboveMeanSeaLevel
)
Public Shared Function ConvertPressure (
Pressure As Double,
FromAltitudeAboveMeanSeaLevel As Double,
ToAltitudeAboveMeanSeaLevel As Double
) As Double
- 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)
DoublePressure in hPa at the "To" altitude
Uses the equation: p = p0 * (1.0 - 2.25577E-05 h)^5.25588
Supported in: 2.0