SWVO @ GFZ
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
- OMNI:
- Sources & Classes:
-
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
- OMNI:
- Sources & Classes:
-
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
- GFZ:
- Sources & Classes:
-
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
- OMNI:
- Sources & Classes:
-
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
- SuperMAG:
- Sources & Classes:
-
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
- SuperMAG:
- Sources & Classes:
-
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
- ACE:
- Sources & Classes:
-
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
- Density predictions:
- Sources & Classes:
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.
SuperMAG substorm-onset catalogues
SubstormsSuperMAG retrieves one of the five scientifically distinct onset
catalogues distributed by SuperMAG. Newell is the default, and sophie is
accepted as an alias for the official forsyth identifier:
from swvo.io.substorms import SubstormsSuperMAG
reader = SubstormsSuperMAG(username, data_dir=cache_directory)
newell = reader.read(start, end, download=True)
sophie = reader.read(start, end, download=True, catalog="sophie")
Results contain onset location, canonical catalogue name, UTC indexing, and local-file provenance. Annual self-documented caches retain SuperMAG revision and acknowledgement information. See the SuperMAG substorm catalogue guide for catalogue differences, coverage, location interpretation, caching, revisions, reliability, and publication requirements.
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.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swvo-1.2.6.tar.gz | 59.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swvo-1.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.8 MB
Release files / swvo-1.2.6.tar.gz
| Download URL | swvo-1.2.6.tar.gz |
|---|---|
| Size | 59.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9452e459fe5dbcd2874fa193e45d3ca8b57816618780edf36087d62e3dc819ae
|
|
BLAKE2b-256 checksum How to use checksums |
bd5e5cb8c9c13ef48139752fbf066fcdf9474d90582f40d7e64f0f14ebf6c357
|
| 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.6-py3-none-any.whl
| Download URL | swvo-1.2.6-py3-none-any.whl |
|---|---|
| Size | 138.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c52a47a8559ccc254583dd4e931a80c6c375e574baf09f59dfa130b7039d9d45
|
|
BLAKE2b-256 checksum How to use checksums |
ad541c231c7e039becc17a0b525a4832255d24dc0b5c6c04f9c58fb12b12b406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|