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

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.3.0.tar.gz (41.1 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.3.0-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aviconv_asterix-0.3.0.tar.gz
  • Upload date:
  • Size: 41.1 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.3.0.tar.gz
Algorithm Hash digest
SHA256 2720962d508264be00b61e3fc59f1654b49638e2cb39a5997d9b6f4cc863004f
MD5 9bd790bfe60316df28f823ac8f50d52b
BLAKE2b-256 a1e8e692debbcb469a7de8d53db7b0053e9b30c452d7f0e1bbfd990fe30e4ef8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for aviconv_asterix-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b973bc01aaeb322c39971684d5699e6312fc20772b9c02f525528bb9a2cb347a
MD5 55aeb76eebfe7421cd97e9717e9b33cc
BLAKE2b-256 afcb6a1cb13b07a63d011d0aaabb73722b86f90a7f791227fac2e4dc0ab60888

See more details on using hashes here.

Provenance

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

0.4.0

2 files

This release

0.3.0 This release

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