These are some scripts to generate Himawari-8 GIFs using python
and ffmpeg
.
Here is an example of the output you can expect: https://imgur.com/Zonhp5y
Original idea: https://gist.github.com/celoyd/b92d0de6fae1f18791ef
The main difference between the original and this version is that this version works on Windows because it is almost entirely written in python
. For generating the GIF from the image sequence, ffmpeg
is called from a very simple batch file, that can be rewritten as a shell script for Linux users.
Needs at least Python 3.6 and ffmpeg (brew install ffmpeg
)
python3 -m venv venv
(creates a new virtual environment)source venv/bin/activate
(activates virtual environment)pip install -r requirements.txt
(installs dependencies)
- Edit
config.py
with the date range and zoom you want. - Run
python run.py
. This runs a couple of scripts.
fetch_many.py
. This downloads all the source imagesinterp.py
substitutes the "no image"-images at 14:40 and 2:40 with an interpolation of the images before and after the gap.label_and_rename.py
. Here you can determine how the timestamp should look. The images will be saved as "image1.png", "image2.png", because that makes life easier for step 4.make_gif.py
creates the GIF!