pyModeS.decoder.bds package

Common functions for Mode-S decoding

pyModeS.decoder.bds.infer(msg, mrar=False)[source]

Estimate the most likely BDS code of an message.

Parameters
  • msg (str) – 28 hexdigits string

  • mrar (bool) – Also infer MRAR (BDS 44) and MHR (BDS 45). Defaults to False.

Returns

BDS version, or possible versions, or None if nothing matches.

Return type

String or None

pyModeS.decoder.bds.is50or60(msg, spd_ref, trk_ref, alt_ref)[source]

Use reference ground speed and trk to determine BDS50 and DBS60.

Parameters
  • msg (str) – 28 hexdigits string

  • spd_ref (float) – reference speed (ADS-B ground speed), kts

  • trk_ref (float) – reference track (ADS-B track angle), deg

  • alt_ref (float) – reference altitude (ADS-B altitude), ft

Returns

BDS version, or possible versions, or None if nothing matches.

Return type

String or None