showersOfParentfunction
The showers that come from one parent body, found by its designation (the whole designation, or just its number or name: 2P and Encke both find 2P/Encke).
Import it
import { showersOfParent } from "@johnmorrisdotca/chikyu-earth/meteors";
Definition
function showersOfParent(designation: string): MeteorShower[]
Parameters
| Name | Type | Description |
|---|---|---|
designation | string | A designation: |
Returns
MeteorShower[]
The showers, in the table's order (empty when none comes from it).
Examples
import { showersOfParent } from "@johnmorrisdotca/chikyu-earth/meteors";
console.log(showersOfParent("1P/Halley").map((shower) => shower.code), showersOfParent("2P").map((shower) => shower.name));[ 'ETA', 'ORI' ] [ 'Southern Taurids', 'Northern Taurids' ]What it prints (run when this page was built)