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.
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2720962d508264be00b61e3fc59f1654b49638e2cb39a5997d9b6f4cc863004f
|
|
| MD5 |
9bd790bfe60316df28f823ac8f50d52b
|
|
| BLAKE2b-256 |
a1e8e692debbcb469a7de8d53db7b0053e9b30c452d7f0e1bbfd990fe30e4ef8
|
Provenance
The following attestation bundles were made for aviconv_asterix-0.3.0.tar.gz:
Publisher:
release.yml on ams-mmd/aviconv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aviconv_asterix-0.3.0.tar.gz -
Subject digest:
2720962d508264be00b61e3fc59f1654b49638e2cb39a5997d9b6f4cc863004f - Sigstore transparency entry: 2386001294
- Sigstore integration time:
-
Permalink:
ams-mmd/aviconv@006ef16de3d13f50a22b44a3114c395cc739a4ee -
Branch / Tag:
refs/tags/aviconv-asterix-v0.3.0 - Owner: https://github.com/ams-mmd
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@006ef16de3d13f50a22b44a3114c395cc739a4ee -
Trigger Event:
push
-
Statement type:
File details
Details for the file aviconv_asterix-0.3.0-py3-none-any.whl.
File metadata
- Download URL: aviconv_asterix-0.3.0-py3-none-any.whl
- Upload date:
- Size: 39.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b973bc01aaeb322c39971684d5699e6312fc20772b9c02f525528bb9a2cb347a
|
|
| MD5 |
55aeb76eebfe7421cd97e9717e9b33cc
|
|
| BLAKE2b-256 |
afcb6a1cb13b07a63d011d0aaabb73722b86f90a7f791227fac2e4dc0ab60888
|
Provenance
The following attestation bundles were made for aviconv_asterix-0.3.0-py3-none-any.whl:
Publisher:
release.yml on ams-mmd/aviconv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aviconv_asterix-0.3.0-py3-none-any.whl -
Subject digest:
b973bc01aaeb322c39971684d5699e6312fc20772b9c02f525528bb9a2cb347a - Sigstore transparency entry: 2386001318
- Sigstore integration time:
-
Permalink:
ams-mmd/aviconv@006ef16de3d13f50a22b44a3114c395cc739a4ee -
Branch / Tag:
refs/tags/aviconv-asterix-v0.3.0 - Owner: https://github.com/ams-mmd
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@006ef16de3d13f50a22b44a3114c395cc739a4ee -
Trigger Event:
push
-
Statement type: