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

nearbyStarsfunction

The nearby stars, nearest first (the ones with no distance last). They are the stars of the Yale parallax catalogue that the 5,080 bright stars do not hold, so a star is never in both lists.

Import it

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

Definition

function nearbyStars(options?: { magnitude?: number; maxRelativeError?: number; withDistance?: boolean; }): NearbyStar[]

Parameters

NameTypeDescription
options (optional){ magnitude?: number; maxRelativeError?: number; withDistance?: boolean; }

magnitude: the faintest V to include (a star of exactly that magnitude is in; a star with no magnitude is left out). maxRelativeError: only stars whose distance is known to this fraction or better (0.05 for under 5%, 0.2 for under 20%). withDistance: only stars with a distance.

Returns

NearbyStar[]

A fresh array of the shared, frozen stars.

Examples

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

const close = nearbyStars({ maxRelativeError: 0.05 }).filter((star) => star.lightYears! < 20);
console.log(close.length > 50, close[0]?.name);
true Proxima Centauri

What it prints (run when this page was built)

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