Skip to main content

Decode-only EUROCONTROL ASTERIX reader: CAT021 (ADS-B) and CAT062 (system tracks) to JSON.

Project description

aviconv-asterix

Decode-only EUROCONTROL ASTERIX reader — part of the aviconv converter family.

Supported categories (pinned editions):

Category Content Edition
CAT021 ADS-B Target Reports 2.6
CAT062 SDPS System Track Data 1.20

Scope

Decode-only by design. ASTERIX is a binary sensor/tracker wire format; aviconv's job here is getting surveillance data out of binary into typed, JSON-serialisable records. Encoding (building ASTERIX from records) is out of scope.

A decode subset of each category is mapped to typed fields (data source, times, WGS-84 positions, flight levels, velocities, identity); every other present data item is still measured via its UAP layout and preserved hex-encoded in raw_items, so nothing on the wire is silently dropped. If a record sets an FSPEC bit with no UAP entry (edition mismatch), that data block is undecodable — the block LEN is used to resynchronise at the next block (--skip-errors).

Usage

from aviconv_asterix import iter_records

records = list(iter_records(open("radar.ast", "rb").read()))
print(records[0].callsign, records[0].lat, records[0].lon)

CLI (NDJSON, one record per line):

aviconv asterix decode radar.ast
aviconv asterix decode - < radar.ast          # binary stdin
aviconv asterix decode radar.ast --skip-errors -o out.ndjson

Licence

MIT. The ASTERIX category specifications are published by EUROCONTROL; this package is not endorsed by or affiliated with EUROCONTROL.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aviconv_asterix-0.0.1.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aviconv_asterix-0.0.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file aviconv_asterix-0.0.1.tar.gz.

File metadata

  • Download URL: aviconv_asterix-0.0.1.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aviconv_asterix-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3f4be31fe7425927d1379a81523087831e10a579710010a985eecf9ab0dabd8f
MD5 2a62f64d53b510fd66891b69ceebe5f7
BLAKE2b-256 683e50c1ce3b2d737f7c172e62613ed00c2bef00588259c515e4a05ce183a4f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aviconv_asterix-0.0.1.tar.gz:

Publisher: release.yml on ams-mmd/aviconv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aviconv_asterix-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: aviconv_asterix-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aviconv_asterix-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91354fc2f1d45a396451a181fa5e38e648e3d24fd25d46bbf94fcb1781a1da5b
MD5 3103d7c0eeff9255f5ef9042a493b8f7
BLAKE2b-256 cc162b6425942e26629804cd08fcef3e2e5024c37dad020c2537f365155363d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for aviconv_asterix-0.0.1-py3-none-any.whl:

Publisher: release.yml on ams-mmd/aviconv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page