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

allSkyProjectfunction

Where a point of the sky lands in the picture.

Import it

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

Definition

function allSkyProject(point: SkyPoint, options: AllSkyOptions): AllSkyPoint

Parameters

NameTypeDescription
pointSkyPoint

The sky position in degrees (J2000): right ascension and declination.

optionsAllSkyOptions

The picture: its width, and optionally the frame, the projection, the centre and mirror.

Returns

AllSkyPoint

The point in the picture, x from the left and y from the top, inside the box 0..width by 0..width / 2.

Examples

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

// The Galaxy's centre (Sagittarius A*) is the middle of a galactic picture 1000 wide
console.log(allSkyProject({ rightAscension: 266.4168, declination: -29.0078 }, { width: 1000 })); // about { x: 500, y: 250 }
{ x: 500.15487994211435, y: 250.15809089059522 }

What it prints (run when this page was built)

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