pyModeS.decoder.bds.bds05 module

pyModeS.decoder.bds.bds05.airborne_position(msg0, msg1, t0, t1)[source]

Decode airborn position from a pair of even and odd position message

Parameters
  • msg0 (string) – even message (28 hexdigits)

  • msg1 (string) – odd message (28 hexdigits)

  • t0 (int) – timestamps for the even message

  • t1 (int) – timestamps for the odd message

Returns

(latitude, longitude) of the aircraft

Return type

(float, float)

pyModeS.decoder.bds.bds05.airborne_position_with_ref(msg, lat_ref, lon_ref)[source]

Decode airborne position with only one message, knowing reference nearby location, such as previously calculated location, ground station, or airport location, etc. The reference position shall be with in 180NM of the true position.

Parameters
  • msg (str) – even message (28 hexdigits)

  • lat_ref – previous known latitude

  • lon_ref – previous known longitude

Returns

(latitude, longitude) of the aircraft

Return type

(float, float)

pyModeS.decoder.bds.bds05.altitude(msg)[source]

Decode aircraft altitude

Parameters

msg (str) – 28 hexdigits string

Returns

altitude in feet

Return type

int