Skip to content

PAMGuard/pypamguard

Repository files navigation

PyPI - Version PyPI - Status PyPI - Python Version GitHub contributors GitHub License GitHub last commit GitHub Actions Workflow Status GitHub Actions Workflow Status GitHub Tag DOI PyPI - Downloads

pypamguard is a package for processing PAMGuard binary file outputs in Python.

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.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •