skyFromWithNearby関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
skyFrom over the 5,080 bright stars and the 5,565 nearby stars together. A name is looked up among the bright stars first, then the nearby ones (Proxima Centauri, GJ 551, Barnard's Star). A nearby star with no magnitude (the catalogue gives one for most) cannot be given a brightness and is counted in skipped with the stars that have no distance. The Sun is among the stars.
インポート
import { skyFromWithNearby } from "@johnmorrisdotca/hoshi-stars/sky-from/nearby";
定義
function skyFromWithNearby(viewpoint: SkyFromViewpoint, options?: Omit<SkyFromOptions, "among">): SeenSky
引数
| 名前 | 型 | 説明 |
|---|---|---|
viewpoint | SkyFromViewpoint | As for |
options (省略可) | Omit<SkyFromOptions, "among"> |
|
戻り値
SeenSky
A new list of seen stars, brightest first, with a skipped count.
例
import { skyFromWithNearby } from "@johnmorrisdotca/hoshi-stars/sky-from/nearby";
const sky = skyFromWithNearby("Proxima Centauri", { magnitude: 0 });
console.log(sky.map((star) => star.name ?? star.designation));[ 'Rigil Kentaurus', 'Toliman', 'Sirius', 'Canopus', 'Arcturus' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。