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

The whole sky on one wide 2:1 map: galactic or equatorial, Mollweide, Hammer or plate carrée, with lines cut cleanly at the seam

import { … } from "@johnmorrisdotca/hoshi-stars/all-sky";

3.4 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
ALL_SKY_FRAMESconstantThe two orientations of the whole-sky picture: galactic puts the Galaxy's plane along the middle with the centre of the Galaxy (in Sagittarius) in the middle of the picture, equatorial puts the celestial equator along the middle.
ALL_SKY_PROJECTIONSconstantThe projections that fill a 2:1 box exactly: Mollweide's and Hammer's equal-area ovals and the plain longitude and latitude rectangle.
AllSkyFrametypeAn orientation of the whole-sky picture.
allSkyGridfunctionThe grid of the picture: a meridian every every degrees of longitude and a parallel every every degrees of latitude, in the picture's own frame (the galactic grid for a galactic picture), the poles left out.
AllSkyGridLinetypeOne line of the grid of the picture: a meridian (a line of constant longitude) or a parallel (constant latitude) of the picture's own frame.
allSkyLinefunctionA line on the sky (a figure's segment, a boundary, a meridian) as runs of points of the picture.
AllSkyOptionstypeHow to lay the whole sky out.
allSkyOutlinefunctionThe edge of the whole-sky picture as a closed run of points: the oval of Mollweide and Hammer, or the rectangle.
AllSkyPointtypeA point of the picture: x to the right and y DOWN from the top left corner, as a screen has it.
allSkyProjectfunctionWhere a point of the sky lands in the picture.
AllSkyProjectiontypeA projection of the whole-sky picture.
allSkyUnprojectfunctionThe sky under a point of the picture: the inverse of allSkyProject, with the same options.

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