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/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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyverbplt-24.9.tar.gz
.
File metadata
- Download URL: pyverbplt-24.9.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
930c424dbbc289715667904562716aa4e6d585dd54a3c39769079c24f0cefbc3
|
|
MD5 |
1ce17ecbe81fca1331a109d65d5f1339
|
|
BLAKE2b-256 |
40752d8d7dddd8a9fdb3444ef3bb8982a14c30ba82ee2be42defcc8354449f2a
|
File details
Details for the file pyverbplt-24.9-py3-none-any.whl
.
File metadata
- Download URL: pyverbplt-24.9-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b9e19fa85d48324e78df23561198f2aa79ba6fbfac49fd0e665f6c43ed0c83bf
|
|
MD5 |
e2f2e11e4bf52f9d5223fa5fe2976b04
|
|
BLAKE2b-256 |
b54ec7f9f66ed87443567f7f94d448c9bb9cafddbf987aa90c165fd92528a8ca
|