# healpix-subdivision

> iteratively divide sections of a healpix H=4,K=3 grid

Latest version **1.0.2** (published 2016-07-25) · BSD license · 0 weekly downloads

## Install

```sh
npm install healpix-subdivision
pnpm add healpix-subdivision
yarn add healpix-subdivision
bun add healpix-subdivision
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-07-25 |
| First published | 2016-07-25 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | substack |
| Maintainers | substack |
| Keywords | healpix, geo, coordinates, equal area, grid |

## Links

- npm: https://www.npmjs.com/package/healpix-subdivision
- Repository: https://github.com/substack/healpix-subdivision
- Homepage: https://github.com/substack/healpix-subdivision#readme
- Issues: https://github.com/substack/healpix-subdivision/issues
- npm.io page: https://npm.io/package/healpix-subdivision

## Dependencies (1)

- [healpix](https://npm.io/package/healpix.md) ^1.0.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-07-25
- 1.0.1 — 2016-07-25
- 1.0.0 — 2016-07-25

## README

# healpix-subdivision

iteratively divide sections of a [healpix][1] H=4,K=3 grid

[1]: http://web.ipac.caltech.edu/staff/fmasci/home/astro_refs/HEALPix_Calabretta.pdf

# example

``` js
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][2]

[2]: https://substack.neocities.org/healpix.html

# api

``` js
var hgrid = require('healpix-subdivision')
```

## var grid = hgrid(size)

Create a `grid()` function that will subdivide areas into `size*size` divisions.

## var divisions = grid(shapes)

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.

# install

```
npm install healpix-subdivision
```

# license

BSD

---
_Source: https://npm.io/package/healpix-subdivision · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
