Skip to main content

Ring Current Proton Artifician Neural Network Model

Project description

RCPANN - Ring Current Proton ANN Model

N|Solid

The Ring Current Proton Artificial Neural Network (RCPANN) model specifies the ring current proton distribution using artificial neural network (multi-layer perceptron).

This model is based on RBSP/RBSPICE measurements from 2013-2018. The RBSPICE measures proton flux at 14 energy channels from 45 keV to 598 keV, and this model provides proton spin-averaged flux in those 14 energy channels. The data for the training and modeling are available at https://doi.org/10.5281/zenodo.7651736. The training program are available ar https://github.com/jinxingli87/RCPANN.

How to use the RCPANN model

First, pip install the 'rcpann' package. Tensorflow and Pytorch packages are required.

pip3 install rcpann

✨ Example 1: Predict proton flux at a specific moment

Input: iek, coord in shape of either (4,) or (1,4), and tstr in form of 'yyyy-mm-dd hh:mm:ss' The iek should be a number between 0 and 13, and the corresponding energy is listed below.

iek 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Energy (keV) 45 55 67 82 99 121 148 181 220 269 328 400 489 598
from rcpann import *
iek=1
coord=np.array([3.5, 0.0, 1.0, 0.0]) # L=3.5, cos(theta)=0, sin(theta)=1.0, Lat=0.0, which means MLT = 6h
print(pflux(iek,coord,tstr = '2017-03-01 22:42:00'))

✨ Example 2. Model the global distribution of proton flux

from rcpann import *
iek=1
tstr1='2017-03-01 22:42:00'
tstr2='2017-03-04 23:59:00'
rcpann_global_dist(iek,tstr1,tstr2)

Please contact jinxing.li.87@gmail.com for support.

License

MIT

Free Software, Hell Yeah!

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

rcpann-0.0.7.tar.gz (17.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rcpann-0.0.7-py3-none-any.whl (17.8 MB view details)

Uploaded Python 3

File details

Details for the file rcpann-0.0.7.tar.gz.

File metadata

  • Download URL: rcpann-0.0.7.tar.gz
  • Upload date:
  • Size: 17.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for rcpann-0.0.7.tar.gz
Algorithm Hash digest
SHA256 07577c616244655b4fc71c27db4e505adc87d1935b262f78bff2dbeb94d1b371
MD5 5bbe33747ba6af2ee47460e044eaf763
BLAKE2b-256 6888bfd4aa114c84c480ebd110376a77e89e0880ca4640c8b631c6417655cdef

See more details on using hashes here.

File details

Details for the file rcpann-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: rcpann-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 17.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for rcpann-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 668b019848e7530e5d34126594b9aafd770f3f81d888e6e9beca36880ee74bae
MD5 2531aaeb896ef6ebc9f2c3e90310d452
BLAKE2b-256 d85e457c1a759dbe8964e40312b0c6c07f9eca6933ed80ca6ed3e1e703d4cc90

See more details on using hashes here.

Supported by

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