本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · NGC・IC天体も含む

galaxyDistance関数

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

The distance to a Messier, NGC or IC galaxy: the median of the distances Wikidata (CC0) gives, in light-years and parsecs, with the error where a statement has one, the lowest and highest statement, how many there are and whether they disagree (the highest more than 1.2 times the lowest). The method is always "compiled, method not stated": Wikidata gathers published values and names no method. About six in ten of the galaxies have one. Statements Wikidata marks deprecated are not used, and neither is any under 20 kiloparsecs (the nearest galaxy in the lists is the Small Magellanic Cloud, at 60).

インポート

import { galaxyDistance } from "@johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic";

定義

function galaxyDistance(object: DeepSkyObject): GalaxyDistance | null

引数

名前型説明
objectDeepSkyObject

A deep-sky object from deep-sky or deep-sky/ngc-ic.

戻り値

GalaxyDistance | null

The distance, frozen, or null for an object that is not a galaxy or one the source has no distance for.

例

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

const ngc253 = galaxyDistance(deepSkyObject("NGC 253")!);
console.log(ngc253?.lightYears, ngc253?.error, ngc253?.sources[0]?.items, ngc253?.disagree);
12067785.9755195 null [ 'Q487221' ] false

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

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

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