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)[https://www.pamguard.org/pypamguard/].

Bugs/Requests

Please use the Github issue tracker to submit bugs or feature requests.

License

This software is distributed under the terms of the GNU general public 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.0a2.tar.gz (40.6 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.0a2-py3-none-any.whl (64.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypamguard-1.0.0a2.tar.gz
  • Upload date:
  • Size: 40.6 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.0a2.tar.gz
Algorithm Hash digest
SHA256 9cf095c2f7097d152ed3398e7b48f8e5a7528abe578609b43ed5703e614cae68
MD5 d5854df9e0f1ea026bbdd56ba154996b
BLAKE2b-256 15c8f4b8cc3c72c169750f3b2c2f01665ab61ad545e4a0fd96fc092ca4f15f09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypamguard-1.0.0a2-py3-none-any.whl
  • Upload date:
  • Size: 64.6 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.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c87d0affa9855356a474f03aae0a1bf5769108801ba45263ea4f681be6ec1a4
MD5 3dee445c13dfb44350522cf112889cde
BLAKE2b-256 332d1ef0b8696ee80a26a03545e8d6c690c03dff0f49def0b87a5a4d2dc3736b

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