Skip to main content

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

Metadata

Release files for sunweather 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sunweather 1.2.2
File Size Uploaded
sunweather-1.2.2.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sunweather 1.2.2
File Interpreter ABI Platform
sunweather-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / sunweather-1.2.2.tar.gz

Download URL sunweather-1.2.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e87a4aeff9deb2709bbaef91c87f1ad2b8836544b849e6ccbadebf8891bffaa4
BLAKE2b-256 checksum
How to use checksums
f4f66d0b8c4ac58afef1e26782d93a950ac2bf77a489448d566edebc0707f0f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.2 Windows/11

Release files / sunweather-1.2.2-py3-none-any.whl

Download URL sunweather-1.2.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b588e4f3ac83b6a479a383f20366a34a71dd6fa563280138e76b3afe4987e99
BLAKE2b-256 checksum
How to use checksums
554322053f1afc1f6332f4cff15411097b113ce3cee6603d109d1d674e85cc9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.2 Windows/11

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page