Skip to main content

A package for processing PAMGuard binary file outputs in Python.

Project description

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

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_binary_data_file('path/to/data/file.pgdf')

Then, for example, you can print out the file header like so.

print(df.file_header) # File header
print(df.file_header.version) # File version

Modules also have a module_header, module_footer, file_footer, and most importantly data. The data chunks are stored in an array data, and can be accessed with index notation or a loop.

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.

Contributing

Check CONTRIBUTING.md to get started.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypamguard-1.0.0.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypamguard-1.0.0-py3-none-any.whl (58.2 kB view details)

Uploaded Python 3

File details

Details for the file pypamguard-1.0.0.tar.gz.

File metadata

  • Download URL: pypamguard-1.0.0.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for pypamguard-1.0.0.tar.gz
Algorithm Hash digest
SHA256 993e1c7e6252f061b18c92b295d97b6232955856397b5cc7eb3f28f6f2bc8a2e
MD5 c4ededdbde04b5ef55d244e56fcfacc2
BLAKE2b-256 17b72ea2eec95d6a073ea33c2a2af60e5e6d451ef5d28fb08e69d9bbdd3d84f7

See more details on using hashes here.

File details

Details for the file pypamguard-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pypamguard-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 58.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for pypamguard-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fa70a5b6cf3dedc6e6b4f16a4e617627481891c6cd2b79024f46a508e38e7ed
MD5 988f9b0384156b9aa8f6146a927bbc48
BLAKE2b-256 9857d12af7f9f90cf8c521e95d83d57dec2284b140fd79fda65910c2154613c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page