Skip to main content

No project description provided

Project description

sunweather

Generate a 6-band grid animation of solar activity from NOAA SUVI data.
This CLI tool fetches the latest extreme ultraviolet (EUV) imagery from NOAA SWPC’s SUVI archive and creates an animated MP4, AVI, or GIF showing the solar corona across 6 wavelengths.


Installation

pip install sunweather

Requires: Python 3.8+, ffmpeg in PATH


Usage

python -m sunweather [options]

Basic Examples

Simple invocation

By default, sunweather creates a 6-band grid animation as an MP4 using the most recent frames available from NOAA. Uses a fast AVI intermediate to ensure compatibility and re-encodes with libx264 for better visual quality.

python -m sunweather

Specifying an output filename

python -m sunweather -o sun.mp4

Custom framerate

python -m sunweather --fps 12

Options

Option Description Default
--output Output filename (.mp4, .avi, or .gif) (Alias: -o) suvi_grid.mp4
--fps Frames per second 20
--frames Max frames to use (per band) auto-detected
--retries Retry attempts per image 3
--strict Fail hard if any image is missing (soft fallback)
--keep Keep downloaded frames instead of using a temp folder (disabled)
--keep-avi Preserve the intermediate .avi before MP4 encoding (disabled)
--debug Enable verbose logging (disabled)

Output

  • Produces a 2×3 grid of concurrent SUVI images across these bands:
    • 94 Å, 131 Å, 171 Å, 195 Å, 284 Å, 304 Å
  • All frames are temporally aligned, with automatic gap-filling for any missing wavelengths.
  • MP4 output uses high-quality H.264 encoding via FFmpeg with -crf 18 -preset slow.
  • AVI output (via -o output.avi) uses fast Xvid encoding with wide compatibility.
  • GIF output is supported but not recommended due to large file size (>100MB).

Requirements

  • Python: 3.8 or higher
  • Dependencies: Automatically handled by pip:
    • httpx[http2], tqdm, Pillow, numpy
  • ffmpeg: Must be installed and available in your system PATH.

To install ffmpeg:

Ubuntu/Debian:

sudo apt install ffmpeg

Termux (Android):

pkg install ffmpeg

Windows:

winget install ffmpeg
# OR
choco install ffmpeg

Example Output

Example Video


License

MIT © 2025 DJ Stomp


Source & Issues

GitHub: https://github.com/DJStompZone/sunweather

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

sunweather-1.2.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

sunweather-1.2.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file sunweather-1.2.2.tar.gz.

File metadata

  • Download URL: sunweather-1.2.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Windows/11

File hashes

Hashes for sunweather-1.2.2.tar.gz
Algorithm Hash digest
SHA256 e87a4aeff9deb2709bbaef91c87f1ad2b8836544b849e6ccbadebf8891bffaa4
MD5 baa12a0d904336f4bb8b65cc13c9bd9c
BLAKE2b-256 f4f66d0b8c4ac58afef1e26782d93a950ac2bf77a489448d566edebc0707f0f6

See more details on using hashes here.

File details

Details for the file sunweather-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: sunweather-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Windows/11

File hashes

Hashes for sunweather-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b588e4f3ac83b6a479a383f20366a34a71dd6fa563280138e76b3afe4987e99
MD5 0ffb9e20c0d7bfb1be2bb6640fe9ff91
BLAKE2b-256 554322053f1afc1f6332f4cff15411097b113ce3cee6603d109d1d674e85cc9f

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