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.1.tar.gz (5.0 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.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sunweather-1.2.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.2.1-PRoot-Distro

File hashes

Hashes for sunweather-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a1f79b30b12e192a456d243f8628b18c24ed621ecf4d7f709564847131273513
MD5 b27d8c88c9a2de806cd8a78839c92942
BLAKE2b-256 a8ebe2022a844f665c1636b3bca233bb6c8d60c83bac04a577aba4bc2d156803

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sunweather-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.2.1-PRoot-Distro

File hashes

Hashes for sunweather-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70292cc7e36ec2070cc980cfeb77fe09d2c0a2e74468c9c449f3b7e78f70834f
MD5 f48d462cb240e2716a67a7e8d07bd998
BLAKE2b-256 36a0f0dc8d5f0b5e116bbc6dcc4b3b681001953310999b648cd14aa0b5281f45

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