Skip to main content

aviconv-asterix

Bidirectional EUROCONTROL ASTERIX codec — part of the aviconv converter family.

Supported categories (pinned editions):

Category Content Edition
CAT010 Monosensor Surface Movement Data 1.1
CAT011 Transmission of A-SMGCS Data 1.3
CAT020 Multilateration Target Reports 1.10
CAT021 ADS-B Target Reports 2.6
CAT034 Transmission of Monoradar Service Messages 1.29
CAT048 Monoradar Target Reports 1.32
CAT062 SDPS System Track Data 1.20

Scope

Bidirectional. ASTERIX is a binary sensor/tracker wire format; aviconv both decodes it into typed, JSON-serialisable records and encodes records back to binary. As of 0.2.0, encode(decode(b)) == b holds byte-exact for every record carried through iter_records (see docs/packages/asterix.md for the raw vs. typed encode paths and the decode-subset LSB-quantisation table).

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).

CAT048 position is polar, not WGS-84. I048/040 carries slant range

  • azimuth relative to the reporting radar, not a lat/lon — ASTERIX does not carry the radar site's own position, so no georeferencing is possible from a CAT048 record alone. Cat048Record exposes rho_nm and theta_deg and deliberately has no lat/lon field.

Position honesty extends to CAT010/CAT020, each in its own way. Cat020Record carries WGS-84 (lat/lon) and local Cartesian (x_m/y_m) as two independent wire items — both may be present on the same record, and neither is ever derived from the other. Cat010Record instead carries exactly one of three position kinds depending on sensor type — polar (rho_m/theta_deg, sensor-relative, in metres, not the NM Cat048Record uses), WGS-84 (lat/lon), or local Cartesian (x_m/y_m) — and the other two stay None rather than being synthesised across kinds. Cat011Record (A-SMGCS fused system tracks) mirrors Cat020Record's two-kind shape rather than Cat010Record's three-kind one — WGS-84 (lat/lon) and local Cartesian (x_m/y_m) are two independent wire items, both exposed when present, neither ever derived from the other; there is no polar flavour, since fused tracks are not sensor-relative.

Usage

from aviconv_asterix import encode_records, iter_records

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

encode_records(records) == open("radar.ast", "rb").read()  # True

Every record decoded via iter_records carries its original octets in raw_items; re-encoding it (unmodified or not) re-emits those octets verbatim, byte-exact, regardless of any typed-field edits made via model_copy. Records built from scratch (no raw_items) encode from their typed fields instead, via each item's build callable — see docs/packages/asterix.md for which items have one wired.

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

aviconv asterix encode records.ndjson -o radar.ast
aviconv asterix decode radar.ast | aviconv asterix encode -   # round-trip

Licence

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

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.4.0.tar.gz (45.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.4.0-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aviconv_asterix-0.4.0.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for aviconv_asterix-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9612bc05538058be555f6121809a3abaed8f27fc14750c7d6375d26ef775215f
MD5 392aa831014bb5e2fbbf71a1bb3f0fa5
BLAKE2b-256 edc11235e37133d27b6d522bbc84ee7ce3fd60f24a66e9d4d7cb7ef1ff49729d

See more details on using hashes here.

Provenance

The following attestation bundles were made for aviconv_asterix-0.4.0.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.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aviconv_asterix-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d57dc51da546cebab3aee9aa981cc7119cc9831d60d4211075eba6d61e56ff
MD5 d7df21ab0f6957d82b7567846a5d0f95
BLAKE2b-256 b314b1da5de2a74dac0bf454a49ecc6dcf55e81a4da40f455b6769f01a498018

See more details on using hashes here.

Provenance

The following attestation bundles were made for aviconv_asterix-0.4.0-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.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page