本文へ移動

Hoshi Stars星

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

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

目次

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

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. A tile it only comes near is included; a tile it misses is not, by more than a rounding.

インポート

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

定義

function faintTilesFor(field: FaintField, limit?: number): FaintTileId[]

引数

名前型説明
fieldFaintField

The patch: its middle and radius in degrees.

limit (省略可)number

The faintest magnitude wanted; 12 where left out. Level 0 holds the stars to 10, level 1 those to 11.

戻り値

FaintTileId[]

The tiles, brightest level first.

例

import { faintTilePath, faintTilesFor } from "@johnmorrisdotca/hoshi-stars/faint";

const orion = { rightAscension: 83.8, declination: -5.4, radius: 2 };
console.log(faintTilesFor(orion, 12).map(faintTilePath));
[
  'L0/8-8.bin',
  'L1/13-13.bin',
  'L1/13-14.bin',
  'L1/14-13.bin',
  'L1/14-14.bin',
  'L2/16-16.bin',
  'L2/17-16.bin',
  'L2/17-17.bin'
]

出力(このページを作ったときに実行した結果)

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

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