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

horizontalfunction

Where a star (or any J2000 position) stands in the sky of a place on Earth at a moment: its altitude above the horizon and azimuth from north through east. The position is carried from J2000 to the equinox of the date (precess), the hour angle comes from the local mean sidereal time, and the horizon formulas are Meeus's (chapter 13). The result is geometric (no refraction) unless you ask for it. UTC stands for UT; nutation, aberration and parallax are left out, so it is good to about an arc-minute, far finer than the eye. The star's own proper motion is not added: pass starPosition(star, when) if you want it.

Import it

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

Definition

function horizontal(position: SkyPoint, observer: Observer, when: When, options?: HorizontalOptions): Horizontal

Parameters

NameTypeDescription
positionSkyPoint

A right ascension and declination in degrees, J2000 (the catalogue's frame), or of the date with equinox: "date".

observerObserver

Latitude north and longitude east in degrees, and optionally heightM.

whenWhen

The moment, a Date or milliseconds since 1970.

options (optional)HorizontalOptions

equinox, and refraction with pressureHpa and temperatureC.

Returns

Horizontal

{ altitude, azimuth } in degrees.

Examples

import { starByName, starPosition } from "@johnmorrisdotca/hoshi-stars";
import { horizontal } from "@johnmorrisdotca/hoshi-stars/sky";

const polaris = starPosition(starByName("Polaris")!);
const view = horizontal(polaris, { latitude: 49.28, longitude: -123.12 }, new Date("2026-11-08T06:00:00Z"));
console.log(view.altitude.toFixed(1)); // 49.8: within a degree of the latitude, 49.28
49.8

What it prints (run when this page was built)

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