本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · メシエ天体

GalaxyDistance型

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

The distance to a galaxy, with what is known of where it came from. The headline is the median of the distances the source gives; no value is averaged with a different method's, because none states a method.

インポート

import type { GalaxyDistance } from "@johnmorrisdotca/hoshi-stars/deep-sky";

ほかのエクスポート元: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic

定義

interface GalaxyDistance {
    lightYears: number;
    parsecs: number;
    error: DistanceValue | null;
    method: string;
    sources: GalaxyDistanceSource[];
    count: number;
    spread: {
        low: DistanceValue;
        high: DistanceValue;
    };
    disagree: boolean;
}

メンバー

名前型説明
lightYearsnumber

The distance in light-years (the median of the statements).

parsecsnumber

The distance in parsecs (the median of the statements).

errorDistanceValue | null

The error, or null where no statement states one. It is the half-width of the bounds the source gives, not a total error: the values that disagree with each other (see spread) often differ by more.

methodstring

How the distance was measured. For every distance here it is "compiled, method not stated": the source gathers published values and names no method.

sourcesGalaxyDistanceSource[]

Where the values were read, for the credit line and the trace back.

countnumber

The number of statements the distance is the median of.

spread{ low: DistanceValue; high: DistanceValue; }

The lowest and highest of the statements. The same value twice where there is one statement.

disagreeboolean

True where the highest statement is more than 1.2 times the lowest: the sources disagree and the distance is good to less than the headline's digits.

例

import { deepSkyObject, galaxyDistance, type GalaxyDistance } from "@johnmorrisdotca/hoshi-stars/deep-sky";

const distance: GalaxyDistance | null = galaxyDistance(deepSkyObject("M31")!);
console.log(distance?.lightYears, distance?.method);
2674482.297277295 compiled, method not stated

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

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

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