リファレンス · 近くの星 (プロキシマ・ケンタウリ、バーナード星など約5,600個、距離と誤差つき)
NearbyStar型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One nearby star, as the Yale General Catalogue of Trigonometric Stellar Parallaxes gives it, with a 2MASS position where there is one. Positions are J2000 (the ICRS to a fraction of an arc-second).
インポート
import type { NearbyStar } from "@johnmorrisdotca/hoshi-stars/nearby";
定義
interface NearbyStar {
id: string;
name: string | undefined;
designation: string | undefined;
aliases: readonly string[];
gctp: string;
hd: number | undefined;
gliese: string | undefined;
twoMass: string | undefined;
rightAscension: number;
declination: number;
positionSource: NearbyPositionSource;
positionErrorArcsec: number;
gctpOffsetArcsec: number | undefined;
parallaxMas: number;
parallaxErrorMas: number | undefined;
lightYears: number | undefined;
lightYearsError: number | undefined;
parsecs: number | undefined;
parsecsError: number | undefined;
relativeError: number | undefined;
properMotionRaMas: number;
properMotionDecMas: number;
properMotionSource: "GCTP" | undefined;
magnitude: number | undefined;
magnitudeKind: NearbyMagnitudeKind | undefined;
magnitudeSource: "GCTP" | undefined;
spectralType: string;
flags: NearbyFlags;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A key that stays the same: |
name | string | undefined | The common name for the few dozen well-known ones ( |
designation | string | undefined | The Bayer letter or Flamsteed number and constellation ( |
aliases | readonly string[] | The catalogue's other names for it: Luyten, Giclas, Ross, variable-star and Durchmusterung names ( |
gctp | string | The Yale catalogue number, as a text: |
hd | number | undefined | The Henry Draper number, or |
gliese | string | undefined | The Gliese-Jahreiss number as |
twoMass | string | undefined | The 2MASS designation ( |
rightAscension | number | Right ascension in degrees at J2000, 0 up to 360. |
declination | number | Declination in degrees at J2000, -90 to 90. |
positionSource | NearbyPositionSource | Where the position comes from. |
positionErrorArcsec | number | The error of the position in arc-seconds: 2MASS's own error plus the motion over the gap to 2000, or the catalogue's digits and a 3% error of its motion over a century. |
gctpOffsetArcsec | number | undefined | For a 2MASS position, the arc-seconds between it and where the Yale position and motion put the star (the star is where 2MASS says); |
parallaxMas | number | The annual parallax in milliarcseconds; it can be 0 or less, because it is a measurement with an error. |
parallaxErrorMas | number | undefined | The standard error of the parallax in milliarcseconds, or |
lightYears | number | undefined | The distance in light-years ( |
lightYearsError | number | undefined | The error of |
parsecs | number | undefined | The distance in parsecs, or |
parsecsError | number | undefined | The error of |
relativeError | number | undefined | The parallax's error divided by the parallax: 0.05 is 5%. |
properMotionRaMas | number | Proper motion in right ascension, in milliarcseconds a year, already multiplied by cos(declination); 0 where the catalogue has none ( |
properMotionDecMas | number | Proper motion in declination, in milliarcseconds a year; 0 where the catalogue has none. |
properMotionSource | "GCTP" | undefined | Where the proper motion is from: |
magnitude | number | undefined | The V magnitude of the Yale catalogue, or |
magnitudeKind | NearbyMagnitudeKind | undefined | What kind of magnitude it is, or |
magnitudeSource | "GCTP" | undefined | Where the magnitude is from: |
spectralType | string | The spectral type as the catalogue gives it ( |
flags | NearbyFlags | What to be careful about. |
例
import { nearbyStarByName, type NearbyStar } from "@johnmorrisdotca/hoshi-stars/nearby";
const proxima: NearbyStar = nearbyStarByName("Proxima Centauri")!;
console.log(proxima.lightYears?.toFixed(2), proxima.lightYearsError?.toFixed(2));4.24 0.03出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。