iteratively divide sections of a healpix H=4,K=3 grid
var grid = require('healpix-subdivision')(4)
var data = grid()
data = data.concat(grid(data[5]))
data = data.concat(grid(data[6]))
data = data.concat(grid(data[26]))
console.log(JSON.stringify(data,null,2))
click here for an interactive demo
var hgrid = require('healpix-subdivision')
Create a grid()
function that will subdivide areas into size*size
divisions.
If shapes
is not given, return the 6 initial areas.
Otherwise, return size*size
divisions for the provided area given as an array
of shapes which describe an equal-area tile for some zoom level.
divisions
is an array of shapes arrays.
npm install healpix-subdivision
BSD