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 data door: hand the package your own stars or objects as a source with its own licence and credit, and see whose data is on the screen

ucac4Sourcefunction

The package's own faint stars, UCAC4 to magnitude 12 in sky tiles, as a source: what faintSky has always loaded, through the door. The tiles are files served beside the page (by default from the package's Pages site), so a page that never asks for them pays nothing. A tile that cannot be fetched is an Error naming it.

Import it

import { ucac4Source } from "@johnmorrisdotca/hoshi-stars/door";

Definition

function ucac4Source(options?: Ucac4Options): StarSource

Parameters

NameTypeDescription
options (optional)Ucac4Options

Where the tiles are, and the fetch to use.

Returns

StarSource

The source: its id is ucac4, and starSky counts it as the package's own.

Examples

import { starSky, ucac4Source } from "@johnmorrisdotca/hoshi-stars/door";

const sky = starSky({ sources: [ucac4Source({ baseUrl: "/faint-tiles/" })] });
const orion = { rightAscension: 83.8, declination: -5.4, radius: 1 };
await sky.load(orion, 11);
console.log(sky.stars(orion, 11, 1000).stars.length, sky.credits().map((credit) => credit.source.id));

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