Skip to content

🌐 Get URLs for Himawari 8 image tiles based on a given date.

License

Notifications You must be signed in to change notification settings

ungoldman/himawari-urls

Repository files navigation

himawari-urls

Get URLs for Himawari 8 image tiles based on a given date.

npm downloads

Install

npm install himawari-urls

Usage

const himawariURLs = require('himawari-urls')

himawariURLs({
  date: 'latest',   // default: 'latest' (must be Date object, timestamp, or 'latest')
  infrared: true,   // default: false
  zoom: 1,          // default: 2
  timeout: 20000    // default: 10000 (milliseconds)
}, function (err, tiles) {
  if (err) console.error(err)
  tiles.map(function (t) { console.log(t) })
})

// { name: '0_0.png',
//  url: 'http://himawari8-dl.nict.go.jp/himawari8/img/INFRARED_FULL/1d/550/2016/02/10/192000_0_0.png',
//  x: 0,
//  y: 0 }

Contributing

Contributions welcome! Please read the contributing guidelines first.

Acknowledgment

All source code in index.js has been adapted from jakiestfu's work in himawari.js.

See Also

License

Original and modified work is released under the MIT license.

About

🌐 Get URLs for Himawari 8 image tiles based on a given date.

Resources

License

Stars

Watchers

Forks

Packages

No packages published