Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

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

NameKindWhat it is
decodeFaintTilefunctionDecode 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_LEVELSconstantThe tile levels, brightest first.
FAINT_LIMITconstantThe faintest magnitude in the tiles.
FAINT_TILES_URLconstantWhere the tiles are by default: the package's GitHub Pages site.
FaintFieldtypeA round patch of sky, in degrees: its middle and its radius.
faintGridfunctionHow many bands and how many tiles a level has.
faintSkyfunctionMake the loader for the faint stars.
FaintSkytypeThe faint stars of a page: loads the tiles a patch of sky needs, and answers from the ones it has.
FaintSkyOptionstypeWhat faintSky takes.
FaintStartypeOne faint star.
faintStarsInfunctionThe stars of some decoded tiles that lie in a round patch of sky and are as bright as a limit, brightest first.
faintStarsWithTilesfunctionThe 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.
FaintTiletypeA tile, decoded: the stars of one tile as parallel arrays, sorted by declination.
faintTileBoundsfunctionThe sky a tile covers: right ascension and declination from and to, in degrees.
FaintTileIdtypeA tile: its level, its band of declination (0 at the south pole) and its column along the band (0 at right ascension 0).
faintTilePathfunctionWhere a tile's file is, under the folder that holds the tiles: L2/17-12.bin.
faintTilesForfunctionThe 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.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.