faintTilesForfunction
The tiles that cover a round patch of sky, for stars to a magnitude: every tile of the levels that hold stars that bright whose rectangle the patch may touch. A tile it only comes near is included; a tile it misses is not, by more than a rounding.
Import it
import { faintTilesFor } from "@johnmorrisdotca/hoshi-stars/faint";
Definition
function faintTilesFor(field: FaintField, limit?: number): FaintTileId[]
Parameters
| Name | Type | Description |
|---|---|---|
field | FaintField | The patch: its middle and radius in degrees. |
limit (optional) | number | The faintest magnitude wanted; 12 where left out. Level 0 holds the stars to 10, level 1 those to 11. |
Returns
FaintTileId[]
The tiles, brightest level first.
Examples
import { faintTilePath, faintTilesFor } from "@johnmorrisdotca/hoshi-stars/faint";
const orion = { rightAscension: 83.8, declination: -5.4, radius: 2 };
console.log(faintTilesFor(orion, 12).map(faintTilePath));[
'L0/8-8.bin',
'L1/13-13.bin',
'L1/13-14.bin',
'L1/14-13.bin',
'L1/14-14.bin',
'L2/16-16.bin',
'L2/17-16.bin',
'L2/17-17.bin'
]What it prints (run when this page was built)