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 · Printable sheets: connect-the-dots constellations, the constellations for a latitude, a star wheel to cut out and a sky map for each month

skyMapSvgfunction

The evening sky of a month over a latitude as an SVG string measured in millimetres: the stars to magnitude 3.2 (kid) or 4.5 (normal) above the horizon, the figures, the names of the best known constellations that are up, N, E, S and W round the horizon, and the words that say how to hold it. It is the sky at about 21:00 by the Sun on the 15th of the month, the same all along a line of latitude.

Import it

import { skyMapSvg } from "@johnmorrisdotca/hoshi-stars/sheets";

Definition

function skyMapSvg(latitude: number, month: number, options: { widthMm: number; heightMm: number; lang?: Lang; type?: "kid" | "normal"; }): string

Parameters

NameTypeDescription
latitudenumber

Degrees north of the equator (negative south), -90 to 90.

monthnumber

1 to 12.

options{ widthMm: number; heightMm: number; lang?: Lang; type?: "kid" | "normal"; }

widthMm and heightMm (the room of the page's body), lang and type (kid or normal).

Returns

string

The <svg> markup.

Examples

import { skyMapSvg } from "@johnmorrisdotca/hoshi-stars/sheets";

const map = skyMapSvg(45, 11, { widthMm: 184.6, heightMm: 200, lang: "en" });
console.log(map.includes("November"), map.includes('data-horizon=""'));
true true

What it prints (run when this page was built)

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