radbelt: An Astropy-friendly wrapper for the AE-8/AP-8 Van Allen belt model
This is small Python library to model the fluxes of charged particles trapped in the Van Allen belt. It provides a fast, simple, and convenient Python interface to the International Geomagnetic Reference Field (IGRF) model and NASA's AE-8/AP-8 models of electron and proton fluxes, which are both implemented in Fortran. The package is integrated with the Astropy ecosystem for easy conversion of coordinate systems, time scales, and units. With this package, it is easy and fast to determine the flux of particles above any given energy, at any position, at any time.
Acknowledging radbelt
This package is wraps the following Fortran codes, which have been retrieved from NASA Goddard Space Flight Center's (GSFC) Community Coordinated Modeling Center (CCMC):
- https://ccmc.gsfc.nasa.gov/models/modelinfo.php?model=IGRF
- https://ccmc.gsfc.nasa.gov/models/modelinfo.php?model=AE-8/AP-8%20RADBELT
When publishing results derived from this Python package, please cite the following articles:
- Vette, J.I., Lucero, A.B., Wright, J.A., et al. 1966, "Models of the Trapped Radiation Environment." NASA SP-3024.
- Sawyer, D.M. & Vette, J.I. 1976, "AP-8 trapped proton environment for solar maximum and solar minimum." NASA WDC-A-R&S 76-06, NASA-TM-X-72605.
- Vette, J.I. 1991, "The AE-8 trapped electron model environment." NSSDC/WDC-A-R&S 91-24.
- Thébault, E., Finlay, C.C., Beggan, C.D., et al. 2015, "International Geomagnetic Reference Field: the 12th generation." Earth, Planets, and Space, 67, 79.
To install
$ pip install .
Example
>>> from radbelt import get_flux
>>> from astropy import units as u
>>> from astropy.coordinates import EarthLocation
>>> from astropy.time import Time
>>> coords = EarthLocation(-45 * u.deg, -30 * u.deg, 500 * u.km)
>>> time = Time('2021-03-01')
>>> energy = 20 * u.MeV
>>> get_flux(coords, time, energy, 'p', 'max') # doctest: +FLOAT_CMP
<Quantity 2642.50268555 1 / (s cm2)>
Known issues
- The CCMC IGRF code has spatially varying errors of a few percent, which will result in a striped pattern in the resulting particle flux.
Metadata
Release files for radbelt 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| radbelt-0.1.8.tar.gz | 135.8 kB | Without provenance | Details for radbelt-0.1.8.tar.gz |
Built distributions (wheels)
Total release size: 17.9 MB
Release files / radbelt-0.1.8.tar.gz
| Download URL | radbelt-0.1.8.tar.gz |
|---|---|
| Size | 135.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d30f3afeb988db04f286227d6208ae115a04385b9704393fca82f9d4059ad03
|
|
BLAKE2b-256 checksum How to use checksums |
257e95183860a96991b0660b5eab9cc943e2c049cba7a6a195c222295018e9f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp312-cp312-win_amd64.whl
| Download URL | radbelt-0.1.8-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 465.9 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1206e248606cc68b53a5052d9d2c1609d7d0d4736b2a1a38bfa681f571259ccb
|
|
BLAKE2b-256 checksum How to use checksums |
836cf6d950025236fe0af0c882e4e5d5bb1ea6028173e257c302cdb289b42f77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | radbelt-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b1d2fc62366d63fae5e38ea650ffdf4c1a7c628c0e1054eefe704d9d44028b46
|
|
BLAKE2b-256 checksum How to use checksums |
d33d7531b5596cc8b50448d3859ac4ba4ef309de65dd35fae2eff650a907dae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | radbelt-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 598.1 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
a47a2a5136f01717fb8797aa3ec579f15afd56123b61b0bd0dbaf281dd598907
|
|
BLAKE2b-256 checksum How to use checksums |
3d75c04786783888da8300ce20f3fde68cb2a4fffa0b1b3f6c56f2498009c711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | radbelt-0.1.8-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 855.6 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2319ae70f643e27a241591f9de376b857c466abe1c54a35e6880ec27d22a122b
|
|
BLAKE2b-256 checksum How to use checksums |
57762a5de996e4f3131df67ab83b6c27ae818304281a2b5c08cc51babbcb9322
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp312-cp312-macosx_10_9_x86_64.whl
| Download URL | radbelt-0.1.8-cp312-cp312-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.12 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
18c38821aab18365f7a1ff03e2665117ce95251dfdb17c37dfa73c587a026ac9
|
|
BLAKE2b-256 checksum How to use checksums |
178daa2325c106739c208c5e2a41160a3f84dd2790e3ad79d099ca5368058280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp311-cp311-win_amd64.whl
| Download URL | radbelt-0.1.8-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 465.8 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
813af60ddc184b208165f6028ad1b3298c1197e36e52751b8aea8ca04c98b2af
|
|
BLAKE2b-256 checksum How to use checksums |
b9a4fa73d629780891a64dd8739f01bae0b4ac8dadbd3a7ace941962274ad969
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | radbelt-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e1f32a793ec4e125167e0920480711738a1d7bce231d0cf516655020eb8a2e0f
|
|
BLAKE2b-256 checksum How to use checksums |
bfc5cf5276a28b3bc3faa43776d122e104dd822ea051aadbaf4ccb3de913b7d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | radbelt-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 598.0 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
fa2d1f18e01c83a343de53358663972b6ac26efcb9a39e15cf0aa7fcd39354c8
|
|
BLAKE2b-256 checksum How to use checksums |
f5c0f5cabd087778fa97bde6488f5c2a6545fddb24a18588a644357b09600eae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | radbelt-0.1.8-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 855.5 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6b34894a8506f858a2b41f2953cb6d55a44b574893b442af56a12edf10a35e20
|
|
BLAKE2b-256 checksum How to use checksums |
c89d921b3e04d1a18ef572d457251f147869caa126e458e0a9a1fee5854bc641
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | radbelt-0.1.8-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
dcffed9210726f7942f7b106210e327393a3fdbda11a9f55dc97cf2ba47b2f69
|
|
BLAKE2b-256 checksum How to use checksums |
151b12544f5ebe1704d3542c97a3d76eac906e73b5828fb5a861050540845fb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp310-cp310-win_amd64.whl
| Download URL | radbelt-0.1.8-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 465.8 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9eeea17f0d7fc1f9daf4aa437359f3dad2a51def2bc7c552cab5a16f607fb9b2
|
|
BLAKE2b-256 checksum How to use checksums |
610d30a67b4a65e3bee828d046af240f074f89585dec1d88ca80fcc617ba194c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | radbelt-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
804c2132ddd0d487ce5433779e903d160b7d3c63a1da2016376bf1caf3a74502
|
|
BLAKE2b-256 checksum How to use checksums |
85989cbbb746dda8a47ac5d2da29f797abcc23de09f8f6dfc3249bc3d5e4c1a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | radbelt-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 598.0 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
e97623c923aacaa4a2080f33d39efe7910f5ad0c62e48b96c49ff9c300ba9b74
|
|
BLAKE2b-256 checksum How to use checksums |
d4aac61c1450bf6d05c8812725523bef8c916eb67848240118ea128e58fdea24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | radbelt-0.1.8-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 855.5 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
023669828f5ae93bcb9f41f7d8a7f4b3867e2bcd3a2226027c2cf380d40b6783
|
|
BLAKE2b-256 checksum How to use checksums |
84a4a9b7f7da5f8ff476cef078d6f5fbf964dc9bb5597c2af1ed286c88d83634
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | radbelt-0.1.8-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
11d1ed55ac046f7ea4511fe1d1a38423043e4e6e5773b3fe4729bb9143d76f88
|
|
BLAKE2b-256 checksum How to use checksums |
dfb8a5f2d7f3f5df79bfe974a1b8b138fe657f153366e931ae03f98794ba19b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp39-cp39-win_amd64.whl
| Download URL | radbelt-0.1.8-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 465.8 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f7a3cb863896daf4a9a60d314d17b385c6fb12dc4f7b8c7ad1f3968c24c21039
|
|
BLAKE2b-256 checksum How to use checksums |
f876160bac01431b3f50eb4f80c8c58385264c3be98e455518526381bbd75fc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | radbelt-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
87ba56586a8b8b5281bc6b097982ceb06413a87c1369dbdeba289b722e52b6f3
|
|
BLAKE2b-256 checksum How to use checksums |
f7093f85ba224a36ad11cb6f0b6f556470708e5ef99a8f434d8cd5d813c6b651
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | radbelt-0.1.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 598.0 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
dcb97dc209e50bcf4686b469e4fb112d4d414fb72a0b9a044a593520e8c583db
|
|
BLAKE2b-256 checksum How to use checksums |
2b4909fcdaf9ee01c629802f0e060ffffbeb1967195dca48d9223ed904dc04cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | radbelt-0.1.8-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 855.5 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a62352a81eb0bb90373a71838ecda26348118a6bfcd4461ee07651abf9780bcd
|
|
BLAKE2b-256 checksum How to use checksums |
700b2b24764d521c9a07a36287cf0c2942addb5df0899190d19539f11bea155c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / radbelt-0.1.8-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | radbelt-0.1.8-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
ca98310a45d0717ceb30045daa2d114ac06dc14c5478b727c213e9a0120a8cd6
|
|
BLAKE2b-256 checksum How to use checksums |
7e781467b9cd1b4722870c29680bf35fcd05d6588a403d5d1d1adab755f92c8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for radbelt 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.