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
| Name | Type | Description |
|---|---|---|
options (optional) | Ucac4Options | Where the tiles are, and the |
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));