本文へ移動

Hoshi Stars星

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

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

目次

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

DistanceInput型

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

Something with a place on the sky and perhaps a distance, as layersByDistance takes it. Make one with starInput, nearbyInput or deepSkyInput, or write one for your own data.

インポート

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

定義

interface DistanceInput {
    id: string;
    kind: LayerKind;
    name: string | undefined;
    rightAscension: number;
    declination: number;
    magnitude: number | undefined;
    lightYears: number | undefined;
    low: number | undefined;
    high: number | undefined;
    certainty: Certainty | undefined;
}

メンバー

名前型説明
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.

kindLayerKind
namestring | undefined
rightAscensionnumber

J2000 right ascension and declination in degrees.

declinationnumber
magnitudenumber | undefined

Visual magnitude, or undefined.

lightYearsnumber | undefined

The best distance in light-years, or undefined where there is none: the thing is then counted as having no distance, and never placed.

lownumber | undefined

The nearest and farthest the distance can be within one standard error, in light-years; Infinity for no upper limit. The distance itself where no error is stated.

highnumber | undefined
certaintyCertainty | undefined

例

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

const proxima: DistanceInput = { id: "proxima", kind: "nearby", name: "Proxima Centauri", rightAscension: 217.43, declination: -62.68, magnitude: 11.1, lightYears: 4.24, low: 4.24, high: 4.24, certainty: "good" };
console.log(proxima.name);
Proxima Centauri

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

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

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