pycatzao

Pycatzao is a pure Python library for encoding, decoding and compressing Asterix CAT240 messages.

https://github.com/dlr-kn/pycatzao

Science Score: 52.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization dlr-kn has institutional domain (www.dlr.de)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.9%) to scientific vocabulary

Keywords

asterix cat240 decoder encoder python python3 radar
Last synced: 4 months ago · JSON representation ·

Repository

Pycatzao is a pure Python library for encoding, decoding and compressing Asterix CAT240 messages.

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
asterix cat240 decoder encoder python python3 radar
Created 12 months ago · Last pushed 9 months ago
Metadata Files
Readme License Citation

README.md

Python 3.10 PyPI Documentation Test coverage Unit tests Ruff

[Documentation 📚]

Pycatzao

Pycatzao is a pure Python library for encoding, decoding and compressing Asterix CAT240 messages.

📚 Usage & Documentation

Pycatzao releases are available as wheel packages for macOS, Windows and Linux on PyPI. Install it using pip: bash $ pip install pycatzao

If you prefer installing this library from source, run: ```bash

optional

$ pip install -r requirements.txt $ pip install -e . ```

After installing, simply import pycatzao and start fooling around with its API:

```python import pycatzao

print("Version:", pycatzao.version)

for block in pycatzao.decodefile("my-cat240-data.bin"): processcat240_block( range=block["r"], azimuth=block["az"], amplitude=block["amp"], ... ) # do something meaningful with the data ```

See examples/cat240toHDF5.py for a more elaborated example or our documentation for a full list of available functions. Note, however, that you won't find an introduction into Asterix CAT240 here since we assume that you know the basics of the standard. If you need such an introduction though, simply search for Asterix CAT240 with a search engine of your choice or directly consult https://www.eurocontrol.int/asterix.

🎯 Goals

The purpose of this project is to have a slim and Python-only library with almost no dependencies. We don't plan to add support for other Asterix formats and there are certainly other libraries out there than can parse Asterix CAT240 faster than Pycatzao. However, does this mean that Pycatzao is slow? Certainly not! Pycatzao can easily parse data faster than real-time. On a decently equipped laptop one hour of compressed data is decoded in less than 100 seconds; this is more than 60k message per second... fast enough for most applications.

👷 Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to submit a pull request.

Development Setup

To set up your development environment, follow these steps:

  1. Clone the repository: bash $ git clone git@github.com:DLR-KN/pycatzao.git

  2. Change to the project directory: bash $ cd pycatzao

  3. Install the development dependencies using pip: bash $ pip install -e .[dev]

Pre-Commit-Hooks

To maintain code quality and avoid pushing invalid commits, we recommend using pre-commit hooks. These hooks perform automated checks before commits are made. To set up pre-commit hooks, follow these steps:

  1. Install the pre-commit package (if not already installed): bash $ pip install pre-commit

  2. Install the hooks: bash $ pre-commit install

Now, each time you commit changes, the pre-commit hooks will run checks such as formatting, linting, and more. If any issues are found, they will be flagged before the commit is made.

Running Tests

You can run tests using the following command: bash $ pytest --cov=pycatzao

Make sure to run tests before submitting a pull request to ensure that everything is functioning as expected.

Generate documentation (optional)

If you like, you can generate the documentation locally by navigating to the docs/ folder and running: bash $ cd docs && make html [...] The HTML pages are in build/html. This will generate an HTML documentation under docs/build/html/. Open the generated index.html with a browser and start reading🤓

Owner

  • Name: DLR Institute of Communications and Navigation
  • Login: DLR-KN
  • Kind: organization
  • Location: Wessling, Germany

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Meinert"
  given-names: "Nis"
  orcid: "https://orcid.org/0000-0002-4712-9579"
title: "Pycatzao"
version: 1.1.0
date-released: 2025-01-17
url: "https://github.com/DLR-KN/pycatzao"

GitHub Events

Total
  • Create event: 7
  • Issues event: 2
  • Release event: 1
  • Issue comment event: 1
  • Member event: 1
  • Push event: 14
Last Year
  • Create event: 7
  • Issues event: 2
  • Release event: 1
  • Issue comment event: 1
  • Member event: 1
  • Push event: 14

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 25 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
pypi.org: pycatzao

A pure Python library for encoding, decoding and compressing Asterix CAT240 messages.

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 25 Last month
Rankings
Dependent packages count: 9.8%
Average: 32.3%
Dependent repos count: 54.9%
Maintainers (1)
Last synced: 4 months ago

Dependencies

.github/workflows/build_docs.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
.github/workflows/deploy_docs.yml actions
  • actions/configure-pages v5 composite
  • actions/deploy-pages v4 composite
  • actions/download-artifact v4 composite
  • actions/upload-pages-artifact v3 composite
.github/workflows/get_coverage.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • codecov/codecov-action v5 composite
.github/workflows/pre_commit.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • pre-commit/action v3.0.1 composite
.github/workflows/run_tests.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
pyproject.toml pypi
requirements.txt pypi
  • numpy *
  • tqdm *
setup.py pypi
  • numpy *
  • tqdm *