Reference · Satellites: orbital elements in, positions out
missionOffunction
One flight by its name or number: "STS-31", "sts-31", "31", 31 and "STS-41B" all work (STS-51-L is "51L" or "STS-51-L").
Import it
import { missionOf } from "@johnmorrisdotca/chikyu-earth/satellites";
Definition
function missionOf(id: string | number): Mission | undefined
Parameters
| Name | Type | Description |
|---|---|---|
id | string | number | The flight's name or number. |
Returns
Mission | undefined
The flight, or undefined when there was none by that name.
Examples
import { missionOf } from "@johnmorrisdotca/chikyu-earth/satellites";
console.log(missionOf("STS-125")?.hubble, missionOf(135)?.orbiter, missionOf("STS-136"));SM4 Atlantis undefinedWhat it prints (run when this page was built)