Reference · The Sun, Moon and planets: pure parts
readBeamfunction
What the beam's attributes say. beam is off when it is missing, off or false; a bare attribute, selected or on switches it on for the chosen satellite. The strength is from 0 to 1 (0.6 when left out),
the elevation from 0 to 80 degrees (25), the cells from 0 to 91 (none) and the cell size in kilometres (0 for the fit).
Import it
import { readBeam } from "@johnmorrisdotca/chikyu-earth/space";
Definition
function readBeam(get: (name: string) => string | null): BeamOptions
Parameters
| Name | Type | Description |
|---|---|---|
get | (name: string) => string | null | Reads an attribute by name, |
Returns
BeamOptions
The options.
Examples
import { readBeam } from "@johnmorrisdotca/chikyu-earth/space";
const read = readBeam((name) => ({ beam: "selected", "beam-cells": "19" })[name] ?? null);
console.log(read.on, read.cells);true 19What it prints (run when this page was built)