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

Horizontaltype

Where a star or a planet is in your sky: degrees above the horizon (negative below it) and degrees round from north through east.

Import it

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

Definition

interface Horizontal {
    altitude: number;
    azimuth: number;
}

Members

NameTypeDescription
altitudenumber

Degrees above the horizon, -90 (straight down) to 90 (the zenith). Negative means below the horizon.

azimuthnumber

Degrees from north through east: 0 north, 90 east, 180 south, 270 west. 0 up to but not including 360; 0 at the zenith and nadir, where it has no meaning.

Examples

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

const view: Horizontal = { altitude: 45, azimuth: 90 };
console.log(view.altitude, view.azimuth); // 45 degrees up, due east
45 90

What it prints (run when this page was built)

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