Skip to main content

SWVO @ GFZ

PyPI version Build Sphinx HTML SWVO Tests Python version Coverage Status REUSE status

Introduction

This package provides a set of tools for managing solar data in Python. It includes functionalities for reading, writing, and processing data from various sources.

Example

from datetime import datetime, timezone
from swvo.io.solar_wind import SWACE

ACE_DIR = "./ace_data/"  # data directory for ACE data

start = datetime(2024, 11, 20, 0, 0, tzinfo=timezone.utc)
end = datetime(2024, 11, 20, 6, 0, tzinfo=timezone.utc)

# Read ACE solar wind data with downloading
swace = SWACE(ACE_DIR)
ace_df = swace.read(start, end, download=True)

See here for a detailed example docs/examples/solar_wind_example.ipynb

Space Weather Data Overview

This package provides tools to read, process, and analyze several key solar and geomagnetic indices. For each index, the available data sources and the corresponding reader classes are listed below:

  • Kp Index: A global geomagnetic activity index with a 3-hour cadence, ranging from 0 (quiet) to 9 (extremely disturbed). Used to assess geomagnetic storm conditions.

    • Sources & Classes:
      • OMNI: KpOMNI
      • SWPC: KpSWPC
      • Niemegk: KpNiemegk
      • Ensemble: KpEnsemble
      • BSG: KpBGS
      • SIDC: KpSIDC
      • Combined: read_kp_from_multiple_models
  • Dst Index: The Disturbance Storm Time (Dst) index measures the intensity of the Earth's ring current, related to geomagnetic storms. Provided hourly and is negative during storm conditions.

    • Sources & Classes:
      • OMNI: DSTOMNI
      • WDC: DSTWDC
      • Combined: read_dst_from_multiple_models
  • Hp Index: The Hp30 and Hp60 indices are high-cadence (30-minute and 60-minute) geomagnetic indices provided by GFZ, used for detailed geomagnetic activity studies.

    • Sources & Classes:
      • GFZ: HpGFZ
      • Ensemble: HpEnsemble
      • Combined: read_hp_from_multiple_models
  • F10.7 Index: The F10.7 solar radio flux index is a daily measure of solar activity (flux density at 10.7 cm), a standard proxy for solar EUV emissions.

    • Sources & Classes:
      • OMNI: F107OMNI
      • SWPC: F107SWPC
      • Combined: read_f107_from_multiple_models
  • SuperMAG electrojet indices: SME, SML, and SMU describe the auroral electrojet using the SuperMAG ground-magnetometer network at one-minute cadence. Access requires a valid SuperMAG account.

    • Sources & Classes:
      • SuperMAG: SMESuperMAG
  • Substorm-onset events: Sparse onset catalogues identified from SuperMAG SML or auroral images. The available techniques are Newell, Forsyth/SOPHIE, Ohtani, Frey, and Liou.

    • Sources & Classes:
      • SuperMAG: SubstormsSuperMAG
  • Solar Wind Parameters: Access to solar wind data (speed, density, magnetic field components) from various spacecraft. Essential for solar-terrestrial interaction studies.

    • Sources & Classes:
      • ACE: SWACE
      • DSCOVR: DSCOVR
      • IMAP: SWIMAP
      • OMNI: SWOMNI
      • SWIFT: SWSWIFTEnsemble
      • ENLIL: SWENLIL_BKG (ambient background runs), SWENLIL_CME (CME simulation runs)
      • MIDL: SWMIDL (merged L1 record from ACE, DSCOVR, WIND and SOHO)
      • Combined: read_solar_wind_from_multiple_models
  • Plasmasphere Density Predictions: Reader utilities for PAGER plasmasphere density grids and model combined inputs.

    • Sources & Classes:
      • Density predictions: PlasmaspherePredictionReader
      • Combined inputs: PlasmasphereCombinedInputsReader
      • Density cube container: PlasmasphereDensityCube

Each index can be accessed via these dedicated reader classes, which handle downloading and read methods. See the code in swvo/io or API documentation for details on each index's implementation.

Installation

To install the package, run the following command:

uv venv

uv venv venv --python 3.11 --seed
source venv/bin/activate
uv pip install -e .

or it can be installed directly from PyPI:

uv pip install swvo

All the above uv commands assume you have uv installed, if not then remove uv prefix from the commands and run them directly.

Metadata

Release files for swvo 1.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swvo 1.2.7
File Size Uploaded
swvo-1.2.7.tar.gz 59.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for swvo 1.2.7
File Interpreter ABI Platform
swvo-1.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 59.8 MB

Release files / swvo-1.2.7.tar.gz

Download URL swvo-1.2.7.tar.gz
Size 59.7 MB
Tags Source
SHA-256 checksum
How to use checksums
712f3090f8f377eb2d1c0c5743795e4350bbd9b352e60f03621ca5193b3405f2
BLAKE2b-256 checksum
How to use checksums
f77e80058b5d6be4e02f7107c911909038cc8e311b828dedad76ab71db05f677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / swvo-1.2.7-py3-none-any.whl

Download URL swvo-1.2.7-py3-none-any.whl
Size 161.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d233a611b22cccd3620cd0facedddadeab62a5af7f1a4c84703af0de5df8f620
BLAKE2b-256 checksum
How to use checksums
940b924eee245a7cb8ea477f50a7db77f074ac8b33290062493ac9aedaf93174
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page