Skip to main content

Astropy-friendly wrapper for the AE-8/AP-8 Van Allen belt model

Project description

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):

When publishing results derived from this Python package, please cite the following articles:

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.

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

radbelt-0.1.8.tar.gz (135.8 kB view details)

Uploaded Source

Built Distributions

radbelt-0.1.8-cp312-cp312-win_amd64.whl (465.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

radbelt-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

radbelt-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (598.1 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

radbelt-0.1.8-cp312-cp312-macosx_11_0_arm64.whl (855.6 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

radbelt-0.1.8-cp312-cp312-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

radbelt-0.1.8-cp311-cp311-win_amd64.whl (465.8 kB view details)

Uploaded CPython 3.11 Windows x86-64

radbelt-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

radbelt-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (598.0 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

radbelt-0.1.8-cp311-cp311-macosx_11_0_arm64.whl (855.5 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

radbelt-0.1.8-cp311-cp311-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

radbelt-0.1.8-cp310-cp310-win_amd64.whl (465.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

radbelt-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

radbelt-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (598.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

radbelt-0.1.8-cp310-cp310-macosx_11_0_arm64.whl (855.5 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

radbelt-0.1.8-cp310-cp310-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

radbelt-0.1.8-cp39-cp39-win_amd64.whl (465.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

radbelt-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

radbelt-0.1.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (598.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

radbelt-0.1.8-cp39-cp39-macosx_11_0_arm64.whl (855.5 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

radbelt-0.1.8-cp39-cp39-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

File details

Details for the file radbelt-0.1.8.tar.gz.

File metadata

  • Download URL: radbelt-0.1.8.tar.gz
  • Upload date:
  • Size: 135.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for radbelt-0.1.8.tar.gz
Algorithm Hash digest
SHA256 3d30f3afeb988db04f286227d6208ae115a04385b9704393fca82f9d4059ad03
MD5 cbb88f87c405a02909dd44ab390e7dff
BLAKE2b-256 257e95183860a96991b0660b5eab9cc943e2c049cba7a6a195c222295018e9f3

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: radbelt-0.1.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 465.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for radbelt-0.1.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1206e248606cc68b53a5052d9d2c1609d7d0d4736b2a1a38bfa681f571259ccb
MD5 94f68081872f66fa7fa00c9f68f5c8b4
BLAKE2b-256 836cf6d950025236fe0af0c882e4e5d5bb1ea6028173e257c302cdb289b42f77

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1d2fc62366d63fae5e38ea650ffdf4c1a7c628c0e1054eefe704d9d44028b46
MD5 8372717bec37e392762db4e939721be7
BLAKE2b-256 d33d7531b5596cc8b50448d3859ac4ba4ef309de65dd35fae2eff650a907dae9

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a47a2a5136f01717fb8797aa3ec579f15afd56123b61b0bd0dbaf281dd598907
MD5 2b335c0a3ce69a3012a1efa7e234baf8
BLAKE2b-256 3d75c04786783888da8300ce20f3fde68cb2a4fffa0b1b3f6c56f2498009c711

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2319ae70f643e27a241591f9de376b857c466abe1c54a35e6880ec27d22a122b
MD5 c4aafd3be79499e2ec289a59598d0029
BLAKE2b-256 57762a5de996e4f3131df67ab83b6c27ae818304281a2b5c08cc51babbcb9322

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 18c38821aab18365f7a1ff03e2665117ce95251dfdb17c37dfa73c587a026ac9
MD5 774e2214eb1858f44a2658223b550114
BLAKE2b-256 178daa2325c106739c208c5e2a41160a3f84dd2790e3ad79d099ca5368058280

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: radbelt-0.1.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 465.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for radbelt-0.1.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 813af60ddc184b208165f6028ad1b3298c1197e36e52751b8aea8ca04c98b2af
MD5 ff7d2a848222b90626c84446e32c65f5
BLAKE2b-256 b9a4fa73d629780891a64dd8739f01bae0b4ac8dadbd3a7ace941962274ad969

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e1f32a793ec4e125167e0920480711738a1d7bce231d0cf516655020eb8a2e0f
MD5 1b3b5328929daa929315036ef3999954
BLAKE2b-256 bfc5cf5276a28b3bc3faa43776d122e104dd822ea051aadbaf4ccb3de913b7d7

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fa2d1f18e01c83a343de53358663972b6ac26efcb9a39e15cf0aa7fcd39354c8
MD5 6d51790f9f298906c17a96fb0f3b8258
BLAKE2b-256 f5c0f5cabd087778fa97bde6488f5c2a6545fddb24a18588a644357b09600eae

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b34894a8506f858a2b41f2953cb6d55a44b574893b442af56a12edf10a35e20
MD5 a203a607fee1aca722ea86216753ed51
BLAKE2b-256 c89d921b3e04d1a18ef572d457251f147869caa126e458e0a9a1fee5854bc641

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dcffed9210726f7942f7b106210e327393a3fdbda11a9f55dc97cf2ba47b2f69
MD5 393f7029430f626d35455731b743175e
BLAKE2b-256 151b12544f5ebe1704d3542c97a3d76eac906e73b5828fb5a861050540845fb9

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: radbelt-0.1.8-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 465.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for radbelt-0.1.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9eeea17f0d7fc1f9daf4aa437359f3dad2a51def2bc7c552cab5a16f607fb9b2
MD5 0988c4703a226bf913d662276b570c3f
BLAKE2b-256 610d30a67b4a65e3bee828d046af240f074f89585dec1d88ca80fcc617ba194c

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 804c2132ddd0d487ce5433779e903d160b7d3c63a1da2016376bf1caf3a74502
MD5 b32e3bbb65b5b185a3840beb08fcd22c
BLAKE2b-256 85989cbbb746dda8a47ac5d2da29f797abcc23de09f8f6dfc3249bc3d5e4c1a8

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e97623c923aacaa4a2080f33d39efe7910f5ad0c62e48b96c49ff9c300ba9b74
MD5 41f31d6fec739221536724806dac9b7a
BLAKE2b-256 d4aac61c1450bf6d05c8812725523bef8c916eb67848240118ea128e58fdea24

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 023669828f5ae93bcb9f41f7d8a7f4b3867e2bcd3a2226027c2cf380d40b6783
MD5 9f6c2d5e226b2b88f1bddfcec715aff5
BLAKE2b-256 84a4a9b7f7da5f8ff476cef078d6f5fbf964dc9bb5597c2af1ed286c88d83634

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 11d1ed55ac046f7ea4511fe1d1a38423043e4e6e5773b3fe4729bb9143d76f88
MD5 13b254c0f4f647a1b288bc4b3e5e61ae
BLAKE2b-256 dfb8a5f2d7f3f5df79bfe974a1b8b138fe657f153366e931ae03f98794ba19b9

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: radbelt-0.1.8-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 465.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for radbelt-0.1.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f7a3cb863896daf4a9a60d314d17b385c6fb12dc4f7b8c7ad1f3968c24c21039
MD5 e72dcf3a3cd4755bc8e2a5532f7c5076
BLAKE2b-256 f876160bac01431b3f50eb4f80c8c58385264c3be98e455518526381bbd75fc4

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 87ba56586a8b8b5281bc6b097982ceb06413a87c1369dbdeba289b722e52b6f3
MD5 04846e6ac39ad19913d679de8171b1d2
BLAKE2b-256 f7093f85ba224a36ad11cb6f0b6f556470708e5ef99a8f434d8cd5d813c6b651

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 dcb97dc209e50bcf4686b469e4fb112d4d414fb72a0b9a044a593520e8c583db
MD5 4e3cf912c94d985cb5c907daedfed8ae
BLAKE2b-256 2b4909fcdaf9ee01c629802f0e060ffffbeb1967195dca48d9223ed904dc04cb

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a62352a81eb0bb90373a71838ecda26348118a6bfcd4461ee07651abf9780bcd
MD5 c96b16572abae771c3dbe9b59146d7c8
BLAKE2b-256 700b2b24764d521c9a07a36287cf0c2942addb5df0899190d19539f11bea155c

See more details on using hashes here.

File details

Details for the file radbelt-0.1.8-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for radbelt-0.1.8-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ca98310a45d0717ceb30045daa2d114ac06dc14c5478b727c213e9a0120a8cd6
MD5 ce6a42c74638ee2e38471d30ddc0f365
BLAKE2b-256 7e781467b9cd1b4722870c29680bf35fcd05d6588a403d5d1d1adab755f92c8e

See more details on using hashes here.

Supported by

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