Skip to main content

Python library designed to load `.plt` files, created by the Versatile Electron Radiation Belts (VERB) code

Project description

pyverbplt

pyverbplt is a Python library designed to load .plt files, created by the Versatile Electron Radiation Belts (VERB) code into structured numpy arrays.

Features

  • Load data from .plt files into structured numpy arrays.
  • Supports loading multiple variables from the .plt file.
  • Options to permute, squeeze, and reshape the loaded data.
  • Ability to specify zones for selective data loading.

Installation

To install pyverbplt, clone the repository:

git clone https://github.com/yourusername/pyverbplt.git

To install using PyPI:

pip install pyverbplt

Usage

The main functionality is provided by the load_plt function in pyverbplt.py. Below are some examples of how to use this function:

import pyverbplt

# Example 1: Load multiple variables from a diffusion coefficients .plt file
L, E, A, Daa = pyverbplt.load_plt('path/to/dxx_file.plt')

# Example 2: Load data from a .plt file but only unpack one variable
_, _, _, Daa = pyverbplt.load_plt('path/to/dxx_file.plt')

# Example 3: Load data from a PSD .plt file into a single variable. Load all zones (times).
psd = pyverbplt.load_plt('path/to/psd_file.plt', first_zone=0, skip_zones=0, n_zones=None)

Documentation

Please see the file header. The readthedoc version is comming soon.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

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

pyverbplt-24.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

pyverbplt-24.8-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pyverbplt-24.8.tar.gz.

File metadata

  • Download URL: pyverbplt-24.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.13

File hashes

Hashes for pyverbplt-24.8.tar.gz
Algorithm Hash digest
SHA256 f63d951a38d76fc36a55b7661586f5140d41e495556feae9fa03b97b630994ed
MD5 72ee208d63301d1e71b86f52512a01c7
BLAKE2b-256 89767209789a5f1d0ad37a5822ccc276a1a2ca8dfebc2fd76c9bf6ae189d8086

See more details on using hashes here.

File details

Details for the file pyverbplt-24.8-py3-none-any.whl.

File metadata

  • Download URL: pyverbplt-24.8-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.13

File hashes

Hashes for pyverbplt-24.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a28d0dc8e3ec37b91a3b5142c8d89bb5935ee92a34f511a4cd0326369c3ed8af
MD5 746c7c65d0225d7a2e3a03122701500c
BLAKE2b-256 5b4b869ad4a19cc1f483577178a77e47f6451917cf2dbd5bb3c65ba211880824

See more details on using hashes here.

Supported by

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