リファレンス · 暗い星 (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;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | FaintTileId | |
count | number | |
rightAscension | Float64Array<ArrayBufferLike> | |
declination | Float64Array<ArrayBufferLike> | |
magnitude | Float64Array<ArrayBufferLike> | |
colourIndex | Float64Array<ArrayBufferLike> | |
parallaxMas (省略可) | Float64Array<ArrayBufferLike> | undefined | Optional, from a source that has them (the package's own tiles do not): the parallax in milliarcseconds, |
properMotionRa (省略可) | Float64Array<ArrayBufferLike> | undefined | Optional: the proper motion along right ascension in milliarcseconds a year, already times cos(declination) (the usual |
properMotionDec (省略可) | Float64Array<ArrayBufferLike> | undefined | Optional: the proper motion along declination in milliarcseconds a year, |
例
import { decodeFaintTile } from "@johnmorrisdotca/hoshi-stars/faint";
const tile = decodeFaintTile({ level: 0, band: 9, column: 0 }, new Uint8Array(0));
console.log(tile.count); // 00出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。