Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · Nearby stars: Proxima Centauri, Barnard's Star and about 5,600 more, with distance and error

NearbyStartype

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 it

import type { NearbyStar } from "@johnmorrisdotca/hoshi-stars/nearby";

Definition

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;
}

Members

NameTypeDescription
idstring

A key that stays the same: gctp- and the catalogue number (gctp-3278).

namestring | undefined

The common name for the few dozen well-known ones (Proxima Centauri), else undefined.

designationstring | undefined

The Bayer letter or Flamsteed number and constellation (ι Hor, 33 Psc) where the catalogue gives one, else undefined.

aliasesreadonly string[]

The catalogue's other names for it: Luyten, Giclas, Ross, variable-star and Durchmusterung names (G 158-027, CD-68 2378).

gctpstring

The Yale catalogue number, as a text: 3278 for Proxima, 1810.10 for a component.

hdnumber | undefined

The Henry Draper number, or undefined.

gliesestring | undefined

The Gliese-Jahreiss number as GJ 551, for the well-known ones, else undefined.

twoMassstring | undefined

The 2MASS designation (2MASS J14294291-6240465) of the source the position comes from, or undefined.

rightAscensionnumber

Right ascension in degrees at J2000, 0 up to 360.

declinationnumber

Declination in degrees at J2000, -90 to 90.

positionSourceNearbyPositionSource

Where the position comes from.

positionErrorArcsecnumber

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.

gctpOffsetArcsecnumber | 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); undefined for a Yale position.

parallaxMasnumber

The annual parallax in milliarcseconds; it can be 0 or less, because it is a measurement with an error.

parallaxErrorMasnumber | undefined

The standard error of the parallax in milliarcseconds, or undefined.

lightYearsnumber | undefined

The distance in light-years (3261.56 / parallax), or undefined for a parallax of 0 or less.

lightYearsErrornumber | undefined

The error of lightYears: the distance times the parallax's relative error (a first-order figure, good while that is small), or undefined.

parsecsnumber | undefined

The distance in parsecs, or undefined.

parsecsErrornumber | undefined

The error of parsecs, or undefined.

relativeErrornumber | undefined

The parallax's error divided by the parallax: 0.05 is 5%. undefined for a parallax of 0 or less or with no error. Under 0.05 is a good distance, 0.05 to 0.2 a fair one, over 0.2 a rough one.

properMotionRaMasnumber

Proper motion in right ascension, in milliarcseconds a year, already multiplied by cos(declination); 0 where the catalogue has none (properMotionSource is then undefined). J2000 axes.

properMotionDecMasnumber

Proper motion in declination, in milliarcseconds a year; 0 where the catalogue has none.

properMotionSource"GCTP" | undefined

Where the proper motion is from: "GCTP", or undefined where there is none.

magnitudenumber | undefined

The V magnitude of the Yale catalogue, or undefined.

magnitudeKindNearbyMagnitudeKind | undefined

What kind of magnitude it is, or undefined with no magnitude.

magnitudeSource"GCTP" | undefined

Where the magnitude is from: "GCTP", or undefined with no magnitude.

spectralTypestring

The spectral type as the catalogue gives it (M5.5eV), or an empty string.

flagsNearbyFlags

What to be careful about.

Examples

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

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.7.0.