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.
Cat048Recordexposesrho_nmandtheta_degand deliberately has nolat/lonfield.
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.
Metadata
Release files for aviconv-asterix 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aviconv_asterix-0.4.0.tar.gz | 45.6 kB | With provenance | Details for aviconv_asterix-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aviconv_asterix-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for aviconv_asterix-0.4.0-py3-none-any.whl |
Total release size: 90.3 kB
Release files / aviconv_asterix-0.4.0.tar.gz
| Download URL | aviconv_asterix-0.4.0.tar.gz |
|---|---|
| Size | 45.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9612bc05538058be555f6121809a3abaed8f27fc14750c7d6375d26ef775215f
|
|
BLAKE2b-256 checksum How to use checksums |
edc11235e37133d27b6d522bbc84ee7ce3fd60f24a66e9d4d7cb7ef1ff49729d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logRelease files / aviconv_asterix-0.4.0-py3-none-any.whl
| Download URL | aviconv_asterix-0.4.0-py3-none-any.whl |
|---|---|
| Size | 44.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9d57dc51da546cebab3aee9aa981cc7119cc9831d60d4211075eba6d61e56ff
|
|
BLAKE2b-256 checksum How to use checksums |
b314b1da5de2a74dac0bf454a49ecc6dcf55e81a4da40f455b6769f01a498018
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logSecurity for aviconv-asterix 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for aviconv_asterix-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.