GENET Python library
Project description
GENET
GENET is a global machine learning model of the near-Earth electron environment.
The model is a neural network that can reconstruct pitch-angle distributions of 0.1–100 keV electron fluxes at distances within ~20 Earth radii. Trained on Cluster observations.
Installation
pip install genet-py
You need a valid SuperMAG account to download the SME index.
Usage
Inputs
time: UTC datetimecoords_gsm: position in GSM coordinates, in Earth radii (RE)energy: electron energy in keV, from 0.1 to 80pitch_angle: pitch angle in degreespercentile: predicted flux percentile, one of 5, 25, 50, 75, 95. The default is 50 (median).
Each input parameter can be either a single value or a list of values.
Output
- Electron flux in 1 / (cm2 s sr keV)
Example
from genet import GENET
from datetime import datetime
genet = GENET(supermag_username="your_supermag_username")
flux = genet.predict(
time=datetime(2015, 3, 17), # UTC
coords_gsm=(6.6, 0, 0), # GSM coordinates in RE
energy=50, # Energy in keV
pitch_angle=90, # Pitch angle in degrees
percentile=50 # 5, 25, 50, 75, or 95
)
# Flux in 1 / (cm2 s sr keV)
print(flux)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genet_py-0.1.1.tar.gz.
File metadata
- Download URL: genet_py-0.1.1.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fe63f42eaede2dad09104066a656eb82a7965f33011737156a2ca14462e8ca4
|
|
| MD5 |
c25eaed0693061b6ab804ed0af8c4894
|
|
| BLAKE2b-256 |
5ea045b62dca103e4c07929f152f7519de7d4cb75264fa975cc41eaf3b6c599f
|
Provenance
The following attestation bundles were made for genet_py-0.1.1.tar.gz:
Publisher:
publish.yml on DmitriiGurev/genet-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genet_py-0.1.1.tar.gz -
Subject digest:
0fe63f42eaede2dad09104066a656eb82a7965f33011737156a2ca14462e8ca4 - Sigstore transparency entry: 1409452564
- Sigstore integration time:
-
Permalink:
DmitriiGurev/genet-py@53272920467132b1dea37c1ed097329185a43afb -
Branch / Tag:
refs/heads/master - Owner: https://github.com/DmitriiGurev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@53272920467132b1dea37c1ed097329185a43afb -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file genet_py-0.1.1-py3-none-any.whl.
File metadata
- Download URL: genet_py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe31e15935118ad0151fef4cfa74dfa9a6448250c5c0cb5c03b419ab7e0b9b71
|
|
| MD5 |
c542fc8bf9ec9e49f5220776e5405374
|
|
| BLAKE2b-256 |
933ddb88aa823046196546b83e39bbf927d0cdaa499a88dfa97958a7f99055f9
|
Provenance
The following attestation bundles were made for genet_py-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on DmitriiGurev/genet-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genet_py-0.1.1-py3-none-any.whl -
Subject digest:
fe31e15935118ad0151fef4cfa74dfa9a6448250c5c0cb5c03b419ab7e0b9b71 - Sigstore transparency entry: 1409452579
- Sigstore integration time:
-
Permalink:
DmitriiGurev/genet-py@53272920467132b1dea37c1ed097329185a43afb -
Branch / Tag:
refs/heads/master - Owner: https://github.com/DmitriiGurev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@53272920467132b1dea37c1ed097329185a43afb -
Trigger Event:
workflow_dispatch
-
Statement type: