Skip to main content

GENET Python library

Project description

Pre-release PyPI

genet-py logo

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 datetime
  • coords_gsm: position in GSM coordinates, in Earth radii (RE)
  • energy: electron energy in keV, from 0.1 to 80
  • pitch_angle: pitch angle in degrees
  • percentile: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genet_py-0.1.2.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

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

genet_py-0.1.2-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

File details

Details for the file genet_py-0.1.2.tar.gz.

File metadata

  • Download URL: genet_py-0.1.2.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

Hashes for genet_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 79d6dd889d46fc28fb45a411d753b47b9940148a53e33b568737b9eb9bae834e
MD5 5cce17c806df5407ca37ccd99f03c274
BLAKE2b-256 d76a2ab0ecff51e1e847a3fd85237a71c100ee95b184c4979089c5e9e9865b09

See more details on using hashes here.

Provenance

The following attestation bundles were made for genet_py-0.1.2.tar.gz:

Publisher: publish.yml on DmitriiGurev/genet-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file genet_py-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: genet_py-0.1.2-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

Hashes for genet_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5f7b34f4cd2a15e40431e45b6a0bf8f3770d301037b30474cfbc873266f79e5
MD5 eda0bb898d001136683890abbc27e8fb
BLAKE2b-256 d096fa2cc224a7a21ad4679bcf21ca3a8a8eea39462e4f260a6fadcb1ab1af34

See more details on using hashes here.

Provenance

The following attestation bundles were made for genet_py-0.1.2-py3-none-any.whl:

Publisher: publish.yml on DmitriiGurev/genet-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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