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 · Your sky: altitude and azimuth for a place and a moment

Observertype

Where you stand on Earth, in degrees.

Import it

import type { Observer } from "@johnmorrisdotca/hoshi-stars/sky";

Definition

interface Observer {
    latitude: number;
    longitude: number;
    heightM?: number;
}

Members

NameTypeDescription
latitudenumber

Degrees north of the equator, -90 to 90.

longitudenumber

Degrees east of Greenwich (west is negative). Any finite number; it wraps at 360.

heightM (optional)number | undefined

Metres above sea level; checked but not used, because a star is so far away that height changes its direction by nothing you could measure, and the horizon dip is left out.

Examples

import type { Observer } from "@johnmorrisdotca/hoshi-stars/sky";

const vancouver: Observer = { latitude: 49.28, longitude: -123.12 };
console.log(vancouver.latitude);
49.28

What it prints (run when this page was built)

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