Reference
The faint stars: about 3 million of UCAC4's, to magnitude 12, in sky tiles loaded for the part of the sky you show
import { … } from "@johnmorrisdotca/hoshi-stars/faint";
5.9 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
decodeFaintTile | function | Decode a tile file: n stars as six planes of n bytes (the step in declination, low and high byte; right ascension, low and high; magnitude; colour), the stars sorted by declination; n is the length over six. |
FAINT_LEVELS | constant | The tile levels, brightest first. |
FAINT_LIMIT | constant | The faintest magnitude in the tiles. |
FAINT_TILES_URL | constant | Where the tiles are by default: the package's GitHub Pages site. |
FaintField | type | A round patch of sky, in degrees: its middle and its radius. |
faintGrid | function | How many bands and how many tiles a level has. |
faintSky | function | Make the loader for the faint stars. |
FaintSky | type | The faint stars of a page: loads the tiles a patch of sky needs, and answers from the ones it has. |
FaintSkyOptions | type | What faintSky takes. |
FaintStar | type | One faint star. |
faintStarsIn | function | The stars of some decoded tiles that lie in a round patch of sky and are as bright as a limit, brightest first. |
faintStarsWithTiles | function | The stars of some decoded tiles that lie in a round patch of sky and are as bright as a limit, brightest first, and the tile each came from. |
FaintTile | type | A tile, decoded: the stars of one tile as parallel arrays, sorted by declination. |
faintTileBounds | function | The sky a tile covers: right ascension and declination from and to, in degrees. |
FaintTileId | type | A tile: its level, its band of declination (0 at the south pole) and its column along the band (0 at right ascension 0). |
faintTilePath | function | Where a tile's file is, under the folder that holds the tiles: L2/17-12.bin. |
faintTilesFor | function | The tiles that cover a round patch of sky, for stars to a magnitude: every tile of the levels that hold stars that bright whose rectangle the patch may touch. |