Reference · The sky seen from another star, with the nearby stars moved too
skyFromWithNearbyfunction
skyFrom over the 5,080 bright stars and the 5,565 nearby stars together. A name is looked up among the bright stars first, then the nearby ones (Proxima Centauri, GJ 551, Barnard's Star). A nearby star with no magnitude (the catalogue gives one for most) cannot be given a brightness and is counted in skipped with the stars that have no distance. The Sun is among the stars.
Import it
import { skyFromWithNearby } from "@johnmorrisdotca/hoshi-stars/sky-from/nearby";
Definition
function skyFromWithNearby(viewpoint: SkyFromViewpoint, options?: Omit<SkyFromOptions, "among">): SeenSky
Parameters
| Name | Type | Description |
|---|---|---|
viewpoint | SkyFromViewpoint | As for |
options (optional) | Omit<SkyFromOptions, "among"> |
|
Returns
SeenSky
A new list of seen stars, brightest first, with a skipped count.
Examples
import { skyFromWithNearby } from "@johnmorrisdotca/hoshi-stars/sky-from/nearby";
const sky = skyFromWithNearby("Proxima Centauri", { magnitude: 0 });
console.log(sky.map((star) => star.name ?? star.designation));[ 'Rigil Kentaurus', 'Toliman', 'Sirius', 'Canopus', 'Arcturus' ]What it prints (run when this page was built)