本文へ移動

Hoshi Stars星

肉眼で見える星の名前・色・距離、88星座の線と境界、メシエ天体、そしてそれらを描くための7種類の図法を使えます。

「星」(ほし) は、夜空に光って見えるものです。 名前について(英語)

目次

リファレンス

暗い星 (UCAC4の約300万個、12等まで。見ている空の部分のタイルだけを読み込みます)

import { … } from "@johnmorrisdotca/hoshi-stars/faint";

最小化と gzip 圧縮をしたサイズは 5.9 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
decodeFaintTile関数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定数The tile levels, brightest first.
FAINT_LIMIT定数The faintest magnitude in the tiles.
FAINT_TILES_URL定数Where the tiles are by default: the package's GitHub Pages site.
FaintField型A round patch of sky, in degrees: its middle and its radius.
faintGrid関数How many bands and how many tiles a level has.
faintSky関数Make the loader for the faint stars.
FaintSky型The faint stars of a page: loads the tiles a patch of sky needs, and answers from the ones it has.
FaintSkyOptions型What faintSky takes.
FaintStar型One faint star.
faintStarsIn関数The stars of some decoded tiles that lie in a round patch of sky and are as bright as a limit, brightest first.
faintStarsWithTiles関数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型A tile, decoded: the stars of one tile as parallel arrays, sorted by declination.
faintTileBounds関数The sky a tile covers: right ascension and declination from and to, in degrees.
FaintTileId型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関数Where a tile's file is, under the folder that holds the tiles: L2/17-12.bin.
faintTilesFor関数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.

ソースを見るGitHub で編集@johnmorrisdotca/hoshi-stars 0.47.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。