pycatzao
Pycatzao is a pure Python library for encoding, decoding and compressing Asterix CAT240 messages.
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
Repository
Pycatzao is a pure Python library for encoding, decoding and compressing Asterix CAT240 messages.
Basic Info
- Host: GitHub
- Owner: DLR-KN
- License: other
- Language: Python
- Default Branch: main
- Homepage: https://dlr-kn.github.io/pycatzao/
- Size: 65.4 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
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:
Clone the repository:
bash $ git clone git@github.com:DLR-KN/pycatzao.gitChange to the project directory:
bash $ cd pycatzaoInstall 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:
Install the pre-commit package (if not already installed):
bash $ pip install pre-commitInstall 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
- Website: http://www.dlr.de/KN
- Repositories: 1
- Profile: https://github.com/DLR-KN
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.
- Homepage: https://github.com/DLR-KN/pycatzao
- Documentation: https://pycatzao.readthedocs.io/
- License: other
-
Latest release: 1.2.2
published 9 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v4 composite
- actions/setup-python v5 composite
- actions/upload-artifact v4 composite
- actions/configure-pages v5 composite
- actions/deploy-pages v4 composite
- actions/download-artifact v4 composite
- actions/upload-pages-artifact v3 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- codecov/codecov-action v5 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- pre-commit/action v3.0.1 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- numpy *
- tqdm *
- numpy *
- tqdm *