allSkyGridfunction
The grid of the picture: a meridian every every degrees of longitude and a parallel every every degrees of latitude, in the picture's own frame (the galactic grid for a galactic picture),
the poles left out.
Import it
import { allSkyGrid } from "@johnmorrisdotca/hoshi-stars/all-sky";
Definition
function allSkyGrid(options: AllSkyOptions, every?: number): AllSkyGridLine[]
Parameters
| Name | Type | Description |
|---|---|---|
options | AllSkyOptions | The picture. |
every (optional) | number | The spacing in degrees, a divisor of 90; 30 by default. |
Returns
AllSkyGridLine[]
The meridians, then the parallels from south to north.
Examples
import { allSkyGrid } from "@johnmorrisdotca/hoshi-stars/all-sky";
const grid = allSkyGrid({ width: 1000, frame: "galactic" });
console.log(grid.filter((line) => line.kind === "parallel").map((line) => line.degrees)); // [ -60, -30, 0, 30, 60 ][ -60, -30, 0, 30, 60 ]What it prints (run when this page was built)