All Projects → jakiestfu → Himawari.js

jakiestfu / Himawari.js

Licence: mit
Download real-time images of Earth from the Himawari-8 satellite

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Himawari.js

Himawari 8 Chrome
🛰 Experience the latest image from the Himawari, GOES, Meteosat, and DSCOVR satellites
Stars: ✭ 48 (-97.28%)
Mutual labels:  satellite, earth
PWSat2OBC
Source code of the PW-Sat2 On Board Computer (OBC) software.
Stars: ✭ 53 (-96.99%)
Mutual labels:  space, satellite
Look4sat
Amateur radio and weather satellite tracker and passes predictor for Android inspired by Gpredict
Stars: ✭ 160 (-90.92%)
Mutual labels:  satellite, space
Mercury-GS
An Open Source Program that allows users to interact with a Spacecraft in a lab environment, pre-launch.
Stars: ✭ 18 (-98.98%)
Mutual labels:  space, satellite
Termtrack
Track satellites in your terminal
Stars: ✭ 375 (-78.73%)
Mutual labels:  satellite, space
WorldWeather
The largest three-dimensional web-based interactive browser of satellite, weather, climate, and other time-aware geospatial data on the web, built upon NASA's revolutionary WorldWind technology.
Stars: ✭ 49 (-97.22%)
Mutual labels:  satellite, earth
trusat-frontend
The React codebase for space-sustainability tool TruSat
Stars: ✭ 31 (-98.24%)
Mutual labels:  space, satellite
Gpredict
Gpredict satellite tracking application
Stars: ✭ 484 (-72.55%)
Mutual labels:  satellite, space
Himawari Bg
🌏 Set the latest image from Himawari 8 as your desktop background.
Stars: ✭ 81 (-95.41%)
Mutual labels:  satellite, earth
Tinyrenderer
A brief computer graphics / rendering course
Stars: ✭ 11,776 (+567.95%)
Mutual labels:  images
Imgaug
Image augmentation for machine learning experiments.
Stars: ✭ 12,107 (+586.73%)
Mutual labels:  images
Hiframeanimation
低内存消耗的序列帧动画库,只占用一张序列帧图片的内存,可用于直播大礼物的展示
Stars: ✭ 122 (-93.08%)
Mutual labels:  live
R2cloud
Decode satellite signals on Raspberry PI or any other 64-bit intel.
Stars: ✭ 125 (-92.91%)
Mutual labels:  satellite
Picpic
A awesome image host service driven by github pages and github actions.
Stars: ✭ 135 (-92.34%)
Mutual labels:  images
Lilliput
Resize images and animated GIFs in Go
Stars: ✭ 1,690 (-4.14%)
Mutual labels:  images
Media Server Go Demo
webrtc media server go demo
Stars: ✭ 140 (-92.06%)
Mutual labels:  live
Giftanim
直播礼物动画 送赞送礼物动画 仿映客礼物动画侧栏弹出送花人和礼物以及x1 x2 x3效果,支持队列 排序
Stars: ✭ 123 (-93.02%)
Mutual labels:  live
Vue Live
A component to demo components, inspired by react-live
Stars: ✭ 123 (-93.02%)
Mutual labels:  live
Zhnbilibili
👌 swift精仿bilibili(4.31.1版本)
Stars: ✭ 142 (-91.95%)
Mutual labels:  live
Desktoplivestreaming
DesktopLiveStreaming
Stars: ✭ 138 (-92.17%)
Mutual labels:  live

Download real-time images of Earth from the Himawari-8 satellite

npm

Himawari 8 is a geostationary weather satellite deployed by the Japan Meteorological Agency. It takes photographs of Earth every 10 minutes.

Getting Started

brew install imagemagick
brew install graphicsmagick
npm i himawari

If you would like to generate videos, ffmpeg is also required.

brew install ffmpeg

Usage

var himawari = require('himawari');

himawari({

  /**
   * The zoom level of the image. Can be 1-5 for non-infrared, and 1-3 for infrared (default: 1)
   * Each zoom level requires more images to be downloaded and therefore stitched
   * together. Higher zoom yields a higher resolution image.
   * @type {Number}
   */
  zoom: 1,

  /**
   * The time of the picture desired. If you want to get the latest image, use 'latest'
   * @type {String|Date}
   */
  date: 'latest', // Or new Date() or a date string

  /**
   * Turns on logging
   * @type {Boolean}
   */
  debug: false,

  /**
   * If set to true, an image on the infrared light spectrum will be generated. Please note that
   * infrared only supports zooms up to 3
   * @type {Boolean}
   */
  infrared: false,

  /**
   * The location to save the resulting image
   * @type {String}
   */
  outfile: '/path/to/output/earth.jpg',

  /**
   * Set to true to parallelize tile downloads. Can be CPU intensive but decreases time to download images.
   * @type {Boolean}
   */
  parallel: false,

  /**
   * Skip empty images from being saved
   * @type {Boolean}
   */
  skipEmpty: true,

  /**
   * The max duration in milliseconds before requests for images and data times out
   * @type {Number}
   */
  timeout: 30000,

  /**
   * If true, only prints the URLs of the images that would have been downloaded
   * @type {Boolean}
   */
  urls: false,

  /**
   * A success callback if the image downloads successfully
   * @type {Function}
   */
  success: function () { process.exit(); },

  /**
   * A callback if the image cannot be downloaded or saved
   * @type {Function}
   * @param  {Object} err An error object or information surrounding the issue
   */
  error: function (err) { console.log(err); },

  /**
   * A callback that is fired every time a tile has been downloaded.
   * @param  {Object} info Information about the download such as filepath, part, and total images
   */
  chunk: function (info) {
    console.log(info.outfile + ': ' + info.part + '/' + info.total);
  }
});

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. (Default: `1`)
    --date, -d            The time of the picture desired. If you want to get the latest image, use 'latest'. (Default: `"latest"`)
    --debug, -l           Turns on logging. (Default: `false`)
    --outfile, -o         The location to save the resulting image. (Default: `"himawari-{date}.jpg"` in current directory)
    --parallel, -p        Parallelize downloads for increased speeds (can be CPU intensive)
    --skipempty, -s       Skip saving images that contain no useful information (i.e. "No Image") (Default: `true`)
    --timeout, -t         The max duration in milliseconds before requests for images and data times out (Default: `30000`)
    --urls, -u            Only print the URLs of the images that would have been downloaded (Default: `false`)
    --infrared, -i        Capture picture on the infrared spectrum (Default: `false`)
    --version, -v         Prints the version of the package
    --help, -h            Show help

Acknowledgements

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].