本文へ移動

Hoshi Stars星

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

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

目次

リファレンス · ディープスカイ天体の写真と、それぞれの空での位置

DeepSkyPicture型

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

A picture of one deep-sky object. It is a tangent-plane image about its centre with north at the top and east on the left (the way sky photographs are), turned by rotation, so its place on the sky is exact and pictureCorners gives its corners.

インポート

import type { DeepSkyPicture } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";

定義

interface DeepSkyPicture {
    id: string;
    object: string;
    file: string;
    width: number;
    height: number;
    centre: SkyPoint;
    arcsecPerPixel: number;
    rotation: number;
    source: PictureSource;
    credit: string;
    address: string;
}

メンバー

名前型説明
idstring

The picture's own id: the object's id (M31) for the survey picture, which is the widest view, and the object's id and the release (M51-heic0506a) for a finer picture of part of it. Unique.

objectstring

The id of the deep-sky object the picture shows (M31), the same as DeepSkyObject.id.

filestring

The file's path under the folder the pictures are served from, pictures/M31.webp (the files are in the repository's pictures/ and on the demo site, not in the npm package); it is a WebP image with transparency, so laid over a dark sky it adds light and no rectangle.

widthnumber

Width in pixels.

heightnumber

Height in pixels.

centreSkyPoint

The sky point at the middle of the picture (J2000, degrees).

arcsecPerPixelnumber

The angular size of a pixel in arc-seconds.

rotationnumber

Degrees the picture's top is turned from north toward east; 0 for north up.

sourcePictureSource

Where the picture comes from.

creditstring

The credit line for this picture: the survey's, or the release's own for a picture from a space agency.

addressstring

Where the picture was read from: the SkyView address the first band was cut from (the one that says exactly what was asked), or the page of the release.

例

import { deepSkyPicture, type DeepSkyPicture } from "@johnmorrisdotca/hoshi-stars/deep-sky/pictures";

const picture: DeepSkyPicture = deepSkyPicture("M31")!;
console.log(picture.file, picture.width, picture.arcsecPerPixel);
pictures/M31.webp 1800 7.25

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

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

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