本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 暗い星 (UCAC4の約300万個、12等まで。見ている空の部分のタイルだけを読み込みます)

FaintTile型

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

A tile, decoded: the stars of one tile as parallel arrays, sorted by declination. magnitude is in magnitudes, and colourIndex is NaN where there is none.

インポート

import type { FaintTile } from "@johnmorrisdotca/hoshi-stars/faint";

定義

interface FaintTile {
    id: FaintTileId;
    count: number;
    rightAscension: Float64Array;
    declination: Float64Array;
    magnitude: Float64Array;
    colourIndex: Float64Array;
    parallaxMas?: Float64Array;
    properMotionRa?: Float64Array;
    properMotionDec?: Float64Array;
}

メンバー

名前型説明
idFaintTileId
countnumber
rightAscensionFloat64Array<ArrayBufferLike>
declinationFloat64Array<ArrayBufferLike>
magnitudeFloat64Array<ArrayBufferLike>
colourIndexFloat64Array<ArrayBufferLike>
parallaxMas (省略可)Float64Array<ArrayBufferLike> | undefined

Optional, from a source that has them (the package's own tiles do not): the parallax in milliarcseconds, NaN where a star has none. Types only: nothing here reads it yet.

properMotionRa (省略可)Float64Array<ArrayBufferLike> | undefined

Optional: the proper motion along right ascension in milliarcseconds a year, already times cos(declination) (the usual pmRA), NaN where a star has none. Types only.

properMotionDec (省略可)Float64Array<ArrayBufferLike> | undefined

Optional: the proper motion along declination in milliarcseconds a year, NaN where a star has none. Types only.

例

import { decodeFaintTile } from "@johnmorrisdotca/hoshi-stars/faint";

const tile = decodeFaintTile({ level: 0, band: 9, column: 0 }, new Uint8Array(0));
console.log(tile.count); // 0
0

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

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

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