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

allSkyGridfunction

The 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.

Import it

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

Definition

function allSkyGrid(options: AllSkyOptions, every?: number): AllSkyGridLine[]

Parameters

NameTypeDescription
optionsAllSkyOptions

The picture.

every (optional)number

The spacing in degrees, a divisor of 90; 30 by default.

Returns

AllSkyGridLine[]

The meridians, then the parallels from south to north.

Examples

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

const grid = allSkyGrid({ width: 1000, frame: "galactic" });
console.log(grid.filter((line) => line.kind === "parallel").map((line) => line.degrees)); // [ -60, -30, 0, 30, 60 ]
[ -60, -30, 0, 30, 60 ]

What it prints (run when this page was built)

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