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 faint stars: about 3 million of UCAC4's, to magnitude 12, in sky tiles loaded for the part of the sky you show

faintStarsWithTilesfunction

The stars of some decoded tiles that lie in a round patch of sky and are as bright as a limit, brightest first, and the tile each came from. With max, the brightest max of them: the list is then complete only to depth, which is the magnitude the list is cut at. A star whose right ascension, declination or magnitude is not a finite number is left out and counted in skipped, so that a bad tile never reaches a drawing. This is faintStarsIn with the extra facts a view with several sources needs (whose star it is).

Import it

import { faintStarsWithTiles } from "@johnmorrisdotca/hoshi-stars/faint";

Definition

function faintStarsWithTiles(tiles: Iterable<FaintTile>, field: FaintField, limit?: number, max?: number): { stars: FaintStar[]; from: FaintTile[]; depth: number; skipped: number; }

Parameters

NameTypeDescription
tilesIterable<FaintTile>

Decoded tiles, from decodeFaintTile or from a source (any more than the field needs is fine).

fieldFaintField

The patch.

limit (optional)number

The faintest magnitude wanted; 12 where left out.

max (optional)number

The most stars to return; all of them where left out.

Returns

{ stars: FaintStar[]; from: FaintTile[]; depth: number; skipped: number; }

The stars, from (the tile of each star, in the same order), depth (see faintStarsIn) and skipped.

Examples

import { faintStarsWithTiles, type FaintTile } from "@johnmorrisdotca/hoshi-stars/faint";

const tiles: FaintTile[] = []; // fetched and decoded
const { stars, from, skipped } = faintStarsWithTiles(tiles, { rightAscension: 83.8, declination: -5.4, radius: 1 }, 11, 2000);
console.log(stars.length, from.length, skipped);
0 0 0

What it prints (run when this page was built)

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