2.1.1. adsb package

2.1.1.2. Submodules

2.1.1.3. adsb.constants module

2.1.1.4. adsb.mypy_types module

2.1.1.5. adsb.utils module

adsb.utils.feet_to_meters(feet: float) → float[source]

Convert feet to meters.

Parameters:feet – a measurement in feet.
Returns:measurement in meters
adsb.utils.haversine_distance(origin: Tuple[float, float], destination: Tuple[float, float]) → float[source]

Haversine distance calculation.

Parameters:
  • origin – a (lat, lon) tuple.
  • destination – a (lat, lon) tuple.
Returns:

a distance in meters.

adsb.utils.knots_to_kmh(knots: float) → float[source]

Convert velocity in knots to km/h

1 knot (i.e. 1 nm/h or 1 nautical mile per hour) is 1.852 km/h.

Parameters:knots – velocity in knots
Returns:velocity in km/h
adsb.utils.knots_to_mps(knots: float) → float[source]

Convert velocity in knots to m/s

1 knot (i.e. 1 nm/h or 1 nautical mile per hour) is 6.667 m/s.

Parameters:knots – velocity in knots
Returns:velocity in m/s
adsb.utils.make_geodesic_circle(center: Tuple[float, float], radius: float, num_points: int = 40)[source]

Return a list of num_points (lat,lon) items that represent a closed circle on the Earth such that the great circle distance from ‘center’ to each point is ‘radius’ meters.

Parameters:
  • center – a (lat,lon) tuple representing the center.
  • radius – the radius of the circle.
  • num_points – the number of points to use to represent the circle.

2.1.1.6. Module contents

ADS-B tools for Python.

The adsb package currently provides tools for working with ADSB messages produced by software that provides BaseStation-like output, such as dump1090.