Skip to main content

Python package for solar wind data analysis.

Project description

Build Status Docs Status License Black Code

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 will soon be installable from pip via pip install solarwindpy. We plant to target conda quickly there after, most likely through the conda-forge channel.

User

Install from pip (when available):

pip install solarwindpy  # Requires Python 3.10+

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.4.tar.gz (1.4 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.4-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: solarwindpy-0.1.4.tar.gz
  • Upload date:
  • Size: 1.4 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.4.tar.gz
Algorithm Hash digest
SHA256 7b13d799d0c1399ec13e653632065f03a524cb57eeb8e2a0e2a41dab54897dfe
MD5 797e49bbe1386a6012a6483f106104a8
BLAKE2b-256 b0da25656a2ab4d8d428043ab7b46bc1774e4a97ecc74e8d74d2cd52764b72f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: solarwindpy-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 102b93245bfc32536e8573099d75ce96863ea31e79406cd0b7435d798476f7d0
MD5 61b2f911dba5436a5fc37af22801b2cf
BLAKE2b-256 ca404e65206c7af5b5b85aba98897243e62afe2460416c690ccc47ea32362175

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