Download real-time images of Earth from the Himawari-8 satellite
Himawari 8 is a geostationary weather satellite deployed by the Japan Meteorological Agency. It takes photographs of Earth every 10 minutes.
- Getting Started
- Usage
- Command Line Interface
- Acknowledgements
- Example Images
- Example Scripts
- Licensing
Getting Started
brew install imagemagickbrew install graphicsmagicknpm i himawari
If you would like to generate videos, ffmpeg
is also required.
brew install ffmpeg
Usage
var himawari = ; ;
Command Line Interface
There is also a command-line interface available if you install it with -g
.
npm i -g himawari
This installs a program called himawari
that can be used like so:
Usage: himawari [options] --zoom, -z The zoom level of the image. Can be 1-5. --date, -d The time of the picture desired. If you want to get the latest image, use 'latest'. --debug, -l Turns on logging. --outfile, -o The location to save the resulting image. --parallel, -p Parallelize downloads
Acknowledgements
- Japan Meteorological Agency
- NICT
- Michael Pote created a Powershell Script that inspired this library.
Example Images
Example Scripts
There are two example files that showcase how Himawari.js can be used. The first, basic.js
, is to simply be executed and will download the latest image of earth and save it to your Desktop.
The second, video.js
, will get a particular date (one where it starts off all black), and will decrement 10 minutes from that date until it has been 24 hours. The resulting images will be saved to a directory, and then piped to ffmpeg
which will stitch the images together in a lovely video for you to oogle over.
Licensing
MIT