A package for processing PAMGuard binary file outputs in Python.
Project description
pypamguard is a package for processing PAMGuard binary file outputs in Python.
- PyPI: https://pypi.org/project/pypamguard/
- GitHub: https://github.com/PAMGuard/pypamguard
- Documentation: https://www.pamguard.org/pypamguard/
- Website: https://www.pamguard.org/
- Zenodo: https://doi.org/10.5281/zenodo.16789563
Installation
pip install pypamguard
Getting Started
Example of loading in a simple PAMGuard data file into Python.
import pypamguard
df = pypamguard.load_pamguard_binary_file('path/to/data/file.pgdf')
Then, for example, you can print out the file header like so.
print(df.file_info.file_header) # File header
print(df.file_info.file_header.version) # File version
Modules also have a file_info.module_header, file_info.module_footer, file_info.file_footer, and most importantly data and background.
print("File length", len(df.data)) # Number of module data chunks
first_obj = df.data[0] # First module data chunk
for chunk in df.data: # Looping through the data
print(chunk.identifier)
For more information, see the documentation.
Bugs/Requests
Please use the Github issue tracker to submit bugs or feature requests.
License
This software is distributed under the terms of the MIT license. pypamguard is free and open source.
If you use this code, please cite it as listed on Zenodo: https://doi.org/10.5281/zenodo.16789563 e.g. James Sullivan. (2025). PAMGuard/pypamguard: Version 1.0.0 (v1.0.0). Zenodo. https://doi.org/10.5281/zenodo.16789564
Contributing
Check CONTRIBUTING.md to get started.
Project details
Release history Release notifications | RSS feed
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 pypamguard-1.0.1.tar.gz.
File metadata
- Download URL: pypamguard-1.0.1.tar.gz
- Upload date:
- Size: 33.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0eb241831ef72cfad48800b4c8be0ff87c0068579095a35ebd50da1d4994618
|
|
| MD5 |
493a4de07ddad68a4b22c99c77a2b364
|
|
| BLAKE2b-256 |
9c72df0ec0b5a8553e845e66fa5afd5bef0498757239cb3cbfc16eaf1f87d830
|
File details
Details for the file pypamguard-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pypamguard-1.0.1-py3-none-any.whl
- Upload date:
- Size: 58.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
988bccc5a27cc07864ef2de716de092a5e8340894291a307b305f2c9d45f67f5
|
|
| MD5 |
9d281453fe0b82499b4788b1626a9027
|
|
| BLAKE2b-256 |
5747a97667c3aa99d8ab97a8c2a937ff0785176ab9dfae332fb0b1ea24fbe59d
|