pyModeS.decoder.bds.bds44 module

pyModeS.decoder.bds.bds44.hum44(msg)[source]

humidity

Parameters

msg (str) – 28 hexdigits string

Returns

percentage of humidity, [0 - 100] %

Return type

float

pyModeS.decoder.bds.bds44.is44(msg)[source]

Check if a message is likely to be BDS code 4,4.

Meteorological routine air report

Parameters

msg (str) – 28 hexdigits string

Returns

True or False

Return type

bool

pyModeS.decoder.bds.bds44.p44(msg)[source]

Static pressure.

Parameters

msg (str) – 28 hexdigits string

Returns

static pressure in hPa

Return type

int

pyModeS.decoder.bds.bds44.temp44(msg)[source]

Static air temperature.

Parameters

msg (str) – 28 hexdigits string

Returns

temperature and alternative temperature in Celsius degree.

Note: Two values returns due to what seems to be an inconsistency error in ICAO 9871 (2008) Appendix A-67.

Return type

float, float

pyModeS.decoder.bds.bds44.turb44(msg)[source]

Turblence.

Parameters

msg (str) – 28 hexdigits string

Returns

turbulence level. 0=NIL, 1=Light, 2=Moderate, 3=Severe

Return type

int

pyModeS.decoder.bds.bds44.wind44(msg)[source]

Wind speed and direction.

Parameters

msg (str) – 28 hexdigits string

Returns

speed (kt), direction (degree)

Return type

(int, float)