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.1.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.1-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

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

Hashes for genet_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0fe63f42eaede2dad09104066a656eb82a7965f33011737156a2ca14462e8ca4
MD5 c25eaed0693061b6ab804ed0af8c4894
BLAKE2b-256 5ea045b62dca103e4c07929f152f7519de7d4cb75264fa975cc41eaf3b6c599f

See more details on using hashes here.

Provenance

The following attestation bundles were made for genet_py-0.1.1.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.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

Hashes for genet_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe31e15935118ad0151fef4cfa74dfa9a6448250c5c0cb5c03b419ab7e0b9b71
MD5 c542fc8bf9ec9e49f5220776e5405374
BLAKE2b-256 933ddb88aa823046196546b83e39bbf927d0cdaa499a88dfa97958a7f99055f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for genet_py-0.1.1-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