Click or drag to resize

ObservingConditionsPressure Property

Atmospheric pressure at the observatory

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntax
public double Pressure { get; }

Property Value

Type: Double
Atmospheric pressure at the observatory (hPa)

Implements

IObservingConditionsPressure
Exceptions
ExceptionCondition
PropertyNotImplementedExceptionIf this property is not available.
NotConnectedExceptionIf the device is not connected.
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks

Optional property, can throw a PropertyNotImplementedException

The units of this property are hectoPascals. Client and driver authors can use the method ConvertUnits(Double, Units, Units) to convert these units to and from milliBar, mm of mercury and inches of mercury.

This must be the pressure at the observatory altitude and not the adjusted pressure at sea level. Please check whether your pressure sensor delivers local observatory pressure or sea level pressure and, if it returns sea level pressure, adjust this to actual pressure at the observatory's altitude before returning a value to the client. The ConvertPressure(Double, Double, Double) method can be used to effect this adjustment.

See Also