本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · 天の川 (明るさの地図と、描くための帯)

milkyWayBrightness関数

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

How bright the Milky Way is toward a point, as a display value from 0 (dark sky) to 1 (the brightest part of the core, in Sagittarius). It follows the band along the galactic equator, is brightest toward the Galactic centre, and is dimmer where the dust lanes cross it (the Great Rift, the Coalsack, the Cygnus Rift). The grid is 0.5 degrees on a side near the plane and holds thirty-two levels, so it is a smooth map for shading a chart or a texture, not a measurement; beyond 30 degrees of the plane it is 0. The values are already shaped for the eye (a gamma of about 0.45), so use them as a pixel's brightness directly.

インポート

import { milkyWayBrightness } from "@johnmorrisdotca/hoshi-stars/milky-way";

定義

function milkyWayBrightness(point: SkyPoint): number

引数

名前型説明
pointSkyPoint

A right ascension and declination in degrees (J2000).

戻り値

number

A number from 0 to 1.

例

import { milkyWayBrightness } from "@johnmorrisdotca/hoshi-stars/milky-way";

const sagittarius = milkyWayBrightness({ rightAscension: 266.4, declination: -28.9 });
const pole = milkyWayBrightness({ rightAscension: 192.9, declination: 27.1 });
console.log(sagittarius > pole); // true
true

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

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

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