Reference · Passes: when a satellite crosses the sky over a place
skyAtfunction
The name of the sky for a Sun altitude.
Import it
import { skyAt } from "@johnmorrisdotca/chikyu-earth/passes";
Definition
function skyAt(sunAltitudeDeg: number): SkyName
Parameters
| Name | Type | Description |
|---|---|---|
sunAltitudeDeg | number | The Sun's altitude in degrees: above 0 it is up. |
Returns
SkyName
day above -0.833 degrees (sunrise and sunset), then civil, nautical, astronomical and night at -6, -12 and -18.
Examples
import { skyAt } from "@johnmorrisdotca/chikyu-earth/passes";
console.log(skyAt(-8));nauticalWhat it prints (run when this page was built)