本文へ移動

Hoshi Stars星

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

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

目次

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

GalaxyDistanceSource型

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

Where a galaxy's distance was read: a database, its licence, the items of it that were read and how many statements they held.

インポート

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

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

定義

interface GalaxyDistanceSource {
    name: string;
    licence: string;
    items: string[];
    values: number;
}

メンバー

名前型説明
namestring

The database: Wikidata.

licencestring

The licence the values are given under: CC0 1.0.

itemsstring[]

The database's item numbers for the galaxy (Q2469), so each value can be looked up. Usually one.

valuesnumber

How many distance statements the median is of (deprecated ones are not counted).

例

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

const source: GalaxyDistanceSource = galaxyDistance(deepSkyObject("M31")!)!.sources[0]!;
console.log(source.name, source.licence, source.items, source.values);
Wikidata CC0 1.0 [ 'Q2469' ] 1

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

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

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