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
.pltfiles into structured numpy arrays. - Supports loading multiple variables from the
.pltfile. - 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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyverbplt-24.9.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|