Oh boy, this gives me a chance to talk about one of the gems of astronomy software which deserves to be better known: HEALPixel tesselation!<p>HEALPixels stand for 'Hierarchical Equal-Area Iso-latitudinal Pixels'. It is a scheme that was developed to analyze signals that cover the entire sky, but with variable density.<p>Like HTM or Hilbert curves, this can be used to organize spatial data.<p>The tesselation looks kind of funny but has many good features - it doesn't have discontinuities at poles, and is always equal area. And with the "nested" healpixel formulation, pixels are identified by integers. Pixel IDs are hierarchical based on leading bits - so, for example, pixel 106 (=0110 1010) contains pixel 1709 (=0110 1010 1101). This lets you do some marvelous optimizations in queries if you structure your data appropriately. Nearest neighbor searches can be extremely quick if things are HEALPix-indexed - and so can radius searches, and arbitrary polygon searches.<p>HEALPixels are used today for more than just their original intent. LSST will use them for storing all-sky data and point source catalogs, for example.<p>More here:<p>- Original NASA/JPL site: <a href="https://healpix.jpl.nasa.gov/" rel="nofollow">https://healpix.jpl.nasa.gov/</a><p>- Popular Python implementation: <a href="https://healpy.readthedocs.io/en/latest/" rel="nofollow">https://healpy.readthedocs.io/en/latest/</a><p>- Good PDF primer: <a href="https://healpix.jpl.nasa.gov/pdf/intro.pdf" rel="nofollow">https://healpix.jpl.nasa.gov/pdf/intro.pdf</a><p>And an experimental database being built on healpix for extremely large data volumes (certainly many TB, maybe single-digit PB): <a href="https://github.com/astronomy-commons/hipscat">https://github.com/astronomy-commons/hipscat</a>