本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 距離で見る空 (10・50・100・500・1,000光年より近い星や銀河を層に分けて、距離の帯ごとに色分けします。距離がはっきりしないものは別にし、推測で置くことはしません)

LayeredThing型

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

A thing in a layer: where it is, how far, and which band it is in.

インポート

import type { LayeredThing } from "@johnmorrisdotca/hoshi-stars/distance";

定義

interface LayeredThing extends Omit<DistanceInput, "lightYears" | "low" | "high" | "certainty"> {
    lightYears: number;
    low: number;
    high: number;
    certainty: Certainty;
    band: number;
    uncertain: boolean;
}

メンバー

名前型説明
lightYearsnumber

The best distance in light-years. For an uncertain thing it is the catalogue's value, not a place to draw it at.

lownumber

The nearest and the farthest it can be, in light-years.

highnumber
certaintyCertainty
bandnumber

The band of lightYears: 0 under 10 light-years, 1 under 50, 2 under 100, 3 under 500, 4 under 1,000, 5 beyond.

uncertainboolean

True when the distance is rough (certainty): the thing belongs to the uncertain band, not to band, and is drawn as a mark with no exact place, or as a streak along its line of sight from low to high.

kindLayerKind
magnitudenumber | undefined

Visual magnitude, or undefined.

namestring | undefined
rightAscensionnumber

J2000 right ascension and declination in degrees.

declinationnumber
idstring

A key that stays the same: hr-2491 for a bright star, gctp-3278 for a nearby star, M31 for a deep-sky object.

例

import type { LayeredThing } from "@johnmorrisdotca/hoshi-stars/distance";

const far = (thing: LayeredThing): boolean => thing.band >= 4;
console.log(typeof far);
function

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

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

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