本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · データの入口(自分で用意した星やディープスカイ天体を、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)

ucac4Source関数

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

The package's own faint stars, UCAC4 to magnitude 12 in sky tiles, as a source: what faintSky has always loaded, through the door. The tiles are files served beside the page (by default from the package's Pages site), so a page that never asks for them pays nothing. A tile that cannot be fetched is an Error naming it.

インポート

import { ucac4Source } from "@johnmorrisdotca/hoshi-stars/door";

定義

function ucac4Source(options?: Ucac4Options): StarSource

引数

名前型説明
options (省略可)Ucac4Options

Where the tiles are, and the fetch to use.

戻り値

StarSource

The source: its id is ucac4, and starSky counts it as the package's own.

例

import { starSky, ucac4Source } from "@johnmorrisdotca/hoshi-stars/door";

const sky = starSky({ sources: [ucac4Source({ baseUrl: "/faint-tiles/" })] });
const orion = { rightAscension: 83.8, declination: -5.4, radius: 1 };
await sky.load(orion, 11);
console.log(sky.stars(orion, 11, 1000).stars.length, sky.credits().map((credit) => credit.source.id));

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

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