Skip to main content

Tools for downloading and reading space-weather data and geomagnetic indices.

Project description

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
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
  • SME Index:
    The SME (SuperMAG Electrojet) index measures auroral electrojet strength based on SuperMAG ground magnetometers. Requires a valid SuperMAG account.

    • Sources & Classes:
      • SuperMAG: SMESuperMAG
  • 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
      • OMNI: SWOMNI
      • SWIFT: SWSWIFTEnsemble
      • 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

source .venv/bin/activate
python -m ensurepip --upgrade
uv pip install --upgrade pip
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.

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

swvo-1.2.2rc2.tar.gz (36.1 MB view details)

Uploaded Source

Built Distribution

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

swvo-1.2.2rc2-py3-none-any.whl (122.3 kB view details)

Uploaded Python 3

File details

Details for the file swvo-1.2.2rc2.tar.gz.

File metadata

  • Download URL: swvo-1.2.2rc2.tar.gz
  • Upload date:
  • Size: 36.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for swvo-1.2.2rc2.tar.gz
Algorithm Hash digest
SHA256 64b80d52c9e86f0f8fc1f435e43319727a0b2c0c9e53b1eb157a2d7902b39a87
MD5 c0dfae863c31cbcb4686470c2ab50a75
BLAKE2b-256 a87d74cb21a8ed28ade182ec77ccde26c8c5aea5ccb4aff12b96e2168810c915

See more details on using hashes here.

File details

Details for the file swvo-1.2.2rc2-py3-none-any.whl.

File metadata

  • Download URL: swvo-1.2.2rc2-py3-none-any.whl
  • Upload date:
  • Size: 122.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for swvo-1.2.2rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 5003fb0027fdd06ca426fb57d837557419ed63fcf927a99bff77dddc7152687c
MD5 5fc94eb353a56276d4eeafd775a746f5
BLAKE2b-256 33060b9ea7ce47ba2362f6d82a7c651266858775798c91cc952d1ae263c21d51

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