Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 835 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 835 Bytes

find-modis-tile Build Status Coverage Status

Find the MODIS X/Y for a given Longitude/Latitude

Install

$ npm install --save find-modis-tile

Usage

const findModisTile = require('find-modis-tile');

const long = 0;
const lat = 0;

findModisTile(long, lat);
//=> { x: 17,
//=>   y: 8,
//=>   lonMin: -10.1532,
//=>   lonMax: 0.0085,
//=>   latMin: 0,
//=>   latMax: 10 }

API

findModisTile(lonLat)

lonLat

Type: array[2]/number

Longitude, Latitude array.

License

MIT © Ben Evans