Skip to content

Instantly share code, notes, and snippets.

@nrabinowitz
nrabinowitz / icosahedron.json
Created July 12, 2019 22:09
Icosahedron geojson (great arcs)
{
"type": "MultiLineString",
"coordinates": [
[
[-176.51528829392126, 56.22382026488319],
[-177.666887558162, 56.2558355327094],
[-178.82009217995488, 56.27714350189036],
[-179.97425867250774, 56.287723610665964],
[-180, 56.28772008819492],
[-179.97425867250772, 56.287723610665964],
@nrabinowitz
nrabinowitz / README.md
Last active February 8, 2021 17:38
Images and Data for H3 Tutorials

Images and data for H3 tutorials

{
UNITS: h3v4.UNITS,
h3IndexToSplitLong: h3v4.h3IndexToSplitLong,
splitLongToH3Index: h3v4.splitLongToH3Index,
h3IsValid: h3v4.isValidCell,
h3IsPentagon: h3v4.isPentagon,
h3IsResClassIII: h3v4.isResClassIII,
h3GetBaseCell: h3v4.getBaseCellNumber,
h3GetFaces: h3v4.getIcosahedronFaces,
h3GetResolution: h3v4.getResolution,
id LastSeen_A hex7 Lat Lon PM2_5Value_A AirQualityIndex AirQualityIndex_Description
95 2020-11-07 00:00 871259724ffffff 52.11083221435547 -106.66564178466797 33.879999999999995 96.5 Moderate
130 2020-11-07 00:00 8712c0702ffffff 51.29340744018555 -116.96610260009766 12.18 51 Moderate
131 2020-11-07 00:00 8712c1014ffffff 51.090633392333984 -115.33135223388672 3.86 16 Good
132 2020-11-07 00:00 8712c1016ffffff 51.08929443359375 -115.34068298339844 2.58 11 Good
133 2020-11-07 00:00 8712c1b2bffffff 51.32834243774414 -114.59577178955078 10.09 42 Good
134 2020-11-07 00:00 8712c2185ffffff 51.00360870361328 -118.210693359375 2 8 Good
135 2020-11-07 00:00 8712c8295ffffff 49.199100494384766 -113.3031005859375 7.75 32 Good
136 2020-11-07 00:00 8712ca099ffffff 48.85100173950195 -114.93699645996094 4.42 18 Good
137 2020-11-07 00:00 8712cb598ffffff 48.443748474121094 -114.10562133789062 0.22 1 Good
@nrabinowitz
nrabinowitz / quantize.js
Created July 25, 2011 17:19
Javascript module for color quantization, based on Leptonica
/*!
* quantize.js Copyright 2008 Nick Rabinowitz.
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
// fill out a couple protovis dependencies
/*!
* Block below copied from Protovis: http://mbostock.github.com/protovis/
* Copyright 2010 Stanford Visualization Group
* Licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.php