Skip to main content

Python package for solar wind data analysis.

Project description

Build Status Docs Status Black Code

PyPI Conda

Python License Zenodo

Python data analysis tools for solar wind measurements.

Quick Start

After installation, import the package and create a plasma object:

import solarwindpy as swp
# Load plasma data (example with sample data)
plasma = swp.Plasma()
# Access ion species and magnetic field data
print(plasma.data.columns)  # View available measurements

See the documentation for detailed usage examples and API reference.

Installation

SolarWindPy requires Python 3.10 or later.

SolarWindPy is available via PyPI and conda-forge:

User

Install from PyPI:

pip install solarwindpy  # Requires Python 3.10+

Or install from conda-forge:

conda install -c conda-forge solarwindpy

Development

  1. Fork the repository and clone your fork.

  2. Create a Conda environment using the provided YAML file (Python 3.10+):

    conda env create -f solarwindpy.yml  # Python 3.10+
    conda activate solarwindpy
    pip install -e .

    Alternatively generate the environment from requirements-dev.txt:

    python scripts/requirements_to_conda_env.py --name solarwindpy
    conda env create -f solarwindpy.yml
    conda activate solarwindpy
    pip install -e .
  3. Run the test suite with pytest:

    pytest -q
  4. Regenerate the Conda recipe if the version or dependencies change:

    python scripts/update_conda_recipe.py
  5. Optionally install the pre-commit hooks:

    pre-commit install

    This will run black and flake8 automatically when committing.

  6. Build the documentation and fail on warnings:

    cd docs
    make html SPHINXOPTS=-W

License

SolarWindPy is licensed under a standard 3-clause BSD license. See LICENSE.rst.

Acknowledging and Citing SolarWindPy

See CITATION.rst for instructions on citing SolarWindPy.

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

solarwindpy-0.1.5.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

solarwindpy-0.1.5-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file solarwindpy-0.1.5.tar.gz.

File metadata

  • Download URL: solarwindpy-0.1.5.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for solarwindpy-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e361d8e453b9a214d797b506b4c68568b0d8ef3d6eb75ff7b5a1c41b7392b6dd
MD5 0fdf6466324a6a1f5a2d70ab401ae693
BLAKE2b-256 6416ed796fac704c7c9ef947b32215eda075881e39e5c9b031bf7a1ae579cc7d

See more details on using hashes here.

File details

Details for the file solarwindpy-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: solarwindpy-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for solarwindpy-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1558d4a116668690dbc5c8a13092e3cd31194fb974fc75b912d6f9935bba33ff
MD5 56029c1350ee9e9f7c0780d826ef2a3f
BLAKE2b-256 94a636165e02d4774e26b991b4cbc0727e37b9fbfa9432ab42501dc101f6fe9a

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