Skip to main content

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/radiation-belts/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.

Metadata

Release files for pyverbplt 24.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyverbplt 24.9
File Size Uploaded
pyverbplt-24.9.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyverbplt 24.9
File Interpreter ABI Platform
pyverbplt-24.9-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / pyverbplt-24.9.tar.gz

Download URL pyverbplt-24.9.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
930c424dbbc289715667904562716aa4e6d585dd54a3c39769079c24f0cefbc3
BLAKE2b-256 checksum
How to use checksums
40752d8d7dddd8a9fdb3444ef3bb8982a14c30ba82ee2be42defcc8354449f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.13

Release files / pyverbplt-24.9-py3-none-any.whl

Download URL pyverbplt-24.9-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9e19fa85d48324e78df23561198f2aa79ba6fbfac49fd0e665f6c43ed0c83bf
BLAKE2b-256 checksum
How to use checksums
b54ec7f9f66ed87443567f7f94d448c9bb9cafddbf987aa90c165fd92528a8ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

24.9 This release

2 release files

24.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page