<!-- Generated by `pnpm registry build` (tools/registry/skill.ts). Do not edit: change the source it names. -->

# Functions

What `compute {fn}` and `dk.engine.<fn>` run. Arguments use the same names everywhere; units and defaults are below. Each function runs its default model unless you name another with `model`. `describe {topic:"functions", name}` gives the same facts for one function.

| fn | Does | Plan |
|---|---|---|
| `visibility` | Satellites above an elevation mask, per station over time; above the terrain's horizon when one is wired. | all |
| `footprint` | A beam pattern projected on the Earth: at each instant of the satellites' positions, each level curve projected from each satellite to the WGS 84 ellipsoid under the entity's pointing. The window draws contours and gain on the H3 grid at the clock's instant. Gain series hold the best gain any satellite's beam puts at each cell's centre at every sampled instant, dB below the peak; the static gain output remains available at Gain at. | pro |
| `beam_pattern` | The gain of one or several beams over directions in the beam frame, relative to each beam's peak: from the contours of an ITU GXT file. A satellite points it (beams on the entity); a footprint projects it on the Earth. | pro |
| `walker` | Circular Walker orbits: 360 degree delta or 180 degree star plane spacing. | all |
| `coverage_summary` | Per station, over the period of a visibility series: coverage, longest gap, mean count. | all |
| `grid_count` | How many sites fall in each cell of an H3 grid. | all |
| `grid_coverage` | At the centre of every cell of an H3 grid, over the sampled instants of an ephemeris: the share with enough satellites in view, the longest sampled gap, the mean count. The criterion is the elevation mask or the satellite's nadir cone, as for grid.revisit. | all |
| `grid_revisit` | The passes over every cell of an H3 grid during the period of an ephemeris: one row per interval during which a satellite (or a cluster of satellites) has the cell's centre in view, exact to the propagate step. The criterion is the elevation mask from the ground, or the satellite's cone (the constellation's field of view). The window colours the grid by the time since the last pass at the clock's instant as the clock plays, from this one table. | all |
| `ascent` | A launch's ascent from its pad to insertion: positions over time along a climb and a downrange run at the launch azimuth, the Earth's rotation included. A profile, not a trajectory simulation. | all |
| `links` | Which satellites of a constellation can talk to each other, and which satellites its ground sites talk to: the pairs joined, by an algorithm the implementation names (in-plane neighbours, a grid across the planes, the nearest within range, or ground links from the stations listed to the satellites they see above their elevation mask and the terrain's horizon, held with a hysteresis), from the constellation's elements or its sampled positions. The window draws them as lines between the members, and between a site and its satellite. | all |
| `network` | Joins line features into a routable network: lines meet where they share a vertex, dead ends are stitched, landing points join their cable, each link has its length in km. | pro |
| `path` | Minimum one-way propagation plus processing delay between two stations, through supplied ground and optional inter-satellite Links at one exact nominal instant. No queueing, congestion, RF or capacity model. | all |
| `propagate` | Positions over time from elements. | all |
| `horizon` | What hides the sky from each station: the terrain's horizon by degree of azimuth, out to 100 km. | all |
| `sunlight` | When each satellite is in sunlight, in the penumbra or in the umbra of the Earth or the Moon, the share of the Sun's disc it sees, and its beta angle. | pro |
| `trajectory` | A spacecraft's coast and impulsive burns between the Earth and the Moon: its motion integrated under the gravity of the Earth (with J2), the Moon and the Sun from JPL DE440s, from a state or an orbit at an instant, with each burn's delta-v, the closest approach to the Moon and the orbit after every event. | all |
| `cloud_cover` | Cloud cover at ground stations, from historical data, forecasts or monthly climate averages. | pro |

## visibility

Visibility from stations. Satellites above an elevation mask, per station over time; above the terrain's horizon when one is wired.

Inputs:

| Input | Takes |  |
|---|---|---|
| `of` | a movers layer (propagated for the window) |  |
| `stations` | a points layer |  |
| `horizon` | a areas layer | optional |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `min_elevation` | number |  | unit deg; default 10; 0 to 90; Elevation mask |
| `refraction` | "radio" \| "optical" \| "none" |  | default "radio"; Radio: ITU-R P.834; optical: Saemundsson; none: geometric. |
| `site_keys` | string[] |  | Site keys; omit for all. Strip layer/. |
| `frequency` | number |  | unit MHz; default 0; 0 to 1,000,000; A carrier for doppler_shift_hz on the pairs; 0: none. |
| `start` | string |  | Defaults to the project clock's start. |
| `duration` | number |  | unit s; default 7200; at least 1; Duration |
| `step` | number |  | unit s; default 60; greater than 0; Step |

The window (`start`, `duration`, `step`) defaults to the project clock and the duration of the call block; the satellites are propagated for it.

Outputs:

- `visibility`: Visibility over time (`series.visibility`: station_id, time, visible)
- `pairs`: Station satellite access pairs (`series.access-pairs`: station_id, station_name, sat_id, satellite_name, time, azimuth_deg (deg), azimuth_defined, elevation_deg (deg), apparent_elevation_deg (deg), range_km (km), visible, sample_valid)
- `passes`: Passes from ground stations (`table.station-passes`: station_id, station_name, sat_id, satellite_name, rise, set, max_elevation_deg (deg), max_time, duration_s (s), range_at_max_km (km), rise_clipped, set_clipped, step_s (s), rise_unknown, set_unknown)

Models:

- `geometric` (default): Geometric, WGS 84 Earth.

## footprint

Footprint. A beam pattern projected on the Earth: at each instant of the satellites' positions, each level curve projected from each satellite to the WGS 84 ellipsoid under the entity's pointing. The window draws contours and gain on the H3 grid at the clock's instant. Gain series hold the best gain any satellite's beam puts at each cell's centre at every sampled instant, dB below the peak; the static gain output remains available at Gain at.

Inputs:

| Input | Takes |  |
|---|---|---|
| `satellites` | a movers layer (propagated for the window) |  |
| `pattern` | a table layer |  |
| `grid` | a cells layer | optional |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `levels` | number[] |  | default [-3,-6,-10]; at most 8 items; The levels below the beam's peak to draw, dB. |
| `beam` | integer |  | default 0; 0 to 63; Which of the entity's beams this footprint is (its pointing), counted from 0; past the list, the nadir. |
| `every` | integer |  | default 1; 1 to 100,000; Read one instant of the positions in this many for contours: a result holds at most 20,000 contours. Gain sampling is independent, under Gain every. |
| `gain_every` | integer |  | default 1; 1 to 100,000; Read one positions instant in this many for animated gain, independently of contour thinning. At most 2,000,000 gain rows and 100,000,000 cell/satellite/beam evaluations; increase this, coarsen the grid or shorten the span when the series is too large. |
| `at` | string |  | The instant the static gain output is read at (the positions' instant nearest it); left empty, the first instant. Animated gain follows the positions' whole sampled span instead. |

Outputs:

- `footprint`: Footprints (`table.footprint`: sat_id, time, beam, level_db (dB), geometry)
- `gain`: Values per H3 cell (`table.cells`: cell)
- `gain_series`: Values per H3 cell over time (`table.cells.series`: cell, time)

Models:

- `ellipsoid` (default): On the WGS 84 ellipsoid. Each level curve projected along its directions from the satellite to the ellipsoid at each instant; a keyed set read at each satellite's scan angle. Accuracy: Rays to the ellipsoid at sea level; past the limb the tangent direction; the Earth turned by the orientation kernel

## beam_pattern

Beam pattern. The gain of one or several beams over directions in the beam frame, relative to each beam's peak: from the contours of an ITU GXT file. A satellite points it (beams on the entity); a footprint projects it on the Earth.

Inputs:

| Input | Takes |  |
|---|---|---|
| `file` | a table layer | optional |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `peak_gain` | number |  | unit dBi; default 0; 0 to 80; The beam's gain at its peak, dBi, said in the result; the pattern itself is relative to the peak. |

Outputs:

- `pattern`: Beam pattern (`table.beam-pattern`: beam, az_deg (deg), el_deg (deg), gain_db (dB), contour, order)

Models:

- `gxt-contours` (default): GXT contours (ITU, FCC Schedule S). Reads an ITU GXT file from the node's file input: per beam, its contours of longitude and latitude at levels in dB relative to the peak, turned into directions from the GEO satellite at the file's nominal longitude pointed at the nadir. Accuracy: Gain known on the contours only; the file's nominal longitude and a GEO altitude of 35,786 km
- `gxt-set`: GXT set at several scan angles (a non-GEO filing). Reads several ITU GXT files held as one text through the node's file input, each the same beam filed at a scan angle off the nadir (Starlink's Schedule S gives its Ku beam at 0, 45 and 57 degrees; the angle read from the end of the beam id, or given as keys): each file's contours turned into directions from the satellite at the shell's height over the equator, in the frame of the beam steered by its angle toward north. Accuracy: Gain known on the contours only; the filed height is the person's; a shape blended linearly between two filed angles, the nearest set past the range Its own arguments: `altitude` (unit km; default 550; 100 to 40,000; The height of the shell the contours were drawn from, km (a GXT file does not say it): 550 for Starlink's first shells, 1,200 for OneWeb.); `keys` (at most 64 items; The scan angle off the nadir each file was filed at, in the files' order; left empty, read from the end of each beam id (KU_PHI45 is 45).).

## walker

Walker constellation. Circular Walker orbits: 360 degree delta or 180 degree star plane spacing.

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `total` | integer |  | default 24; 1 to 100,000; Satellites |
| `planes` | integer |  | default 6; 1 to 1,000; Planes |
| `raan_spread` | number |  | unit deg; default 360; at most 360; greater than 0; RAAN span: 360 delta, 180 star. Use 180 for few polar/near-polar planes or when specified by the filing. Phase offset stays F*360/total. |
| `phasing` | integer |  | default 1; at least 0; Walker F: the phase offset between neighbouring planes, in units of 360 degrees over total. |
| `altitude` | number |  | unit km; default 550; 200 to 2,000,000; Altitude |
| `inclination` | number |  | unit deg; default 53; 0 to 180; Inclination |
| `epoch` | string |  | The epoch of the elements; the project clock's time by default. Defaults to the project clock's time. |

Outputs:

- `elements`: Orbital elements (`ephemeris.elements`: sat_id, semi_major_axis (km), eccentricity, inclination (deg), raan (deg), arg_perigee (deg), mean_anomaly (deg))

Models:

- `delta` (default): Walker delta / star.

## coverage_summary

Coverage summary. Per station, over the period of a visibility series: coverage, longest gap, mean count.

Inputs:

| Input | Takes |  |
|---|---|---|
| `of` | a table layer |  |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `min_satellites` | integer |  | default 1; 1 to 1,000; Satellites needed |

Outputs:

- `coverage`: Coverage per station (`table.coverage`: station_id, coverage_fraction, longest_gap (s), mean_visible)

Models:

- `gaps` (default): Gaps and fractions.

## grid_count

Count per cell. How many sites fall in each cell of an H3 grid.

Inputs:

| Input | Takes |  |
|---|---|---|
| `grid` | a cells layer |  |
| `of` | a points layer |  |

Outputs:

- `cells`: Values per H3 cell (`table.cells`: cell)

Models:

- `h3` (default): H3.

## grid_coverage

Coverage over a grid. At the centre of every cell of an H3 grid, over the sampled instants of an ephemeris: the share with enough satellites in view, the longest sampled gap, the mean count. The criterion is the elevation mask or the satellite's nadir cone, as for grid.revisit.

Inputs:

| Input | Takes |  |
|---|---|---|
| `of` | a movers layer (propagated for the window) |  |
| `grid` | a cells layer |  |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `criterion` | "elevation" \| "field_of_view" |  | default "elevation"; elevation: over the mask from the cell's centre. field_of_view: also inside the satellite's nadir cone (the constellation's half angle). |
| `min_elevation` | number |  | unit deg; default 10; 0 to 90; Minimum elevation |
| `min_satellites` | integer |  | default 1; 1 to 1,000; Satellites needed |
| `refraction` | "radio" \| "optical" \| "none" |  | default "radio"; Radio: ITU-R P.834; optical: Saemundsson; none: geometric. |
| `start` | string |  | Defaults to the project clock's start. |
| `duration` | number |  | unit s; default 86400; at least 1; Duration |
| `step` | number |  | unit s; default 60; greater than 0; Step |

The window (`start`, `duration`, `step`) defaults to the project clock and the duration of the call block; the satellites are propagated for it.

Outputs:

- `cells`: Values per H3 cell (`table.cells`: cell)

Models:

- `h3` (default): H3.

## grid_revisit

Time since the last pass over a grid. The passes over every cell of an H3 grid during the period of an ephemeris: one row per interval during which a satellite (or a cluster of satellites) has the cell's centre in view, exact to the propagate step. The criterion is the elevation mask from the ground, or the satellite's cone (the constellation's field of view). The window colours the grid by the time since the last pass at the clock's instant as the clock plays, from this one table.

Inputs:

| Input | Takes |  |
|---|---|---|
| `of` | a movers layer (propagated for the window) |  |
| `grid` | a cells layer |  |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `criterion` | "elevation" \| "field_of_view" |  | default "elevation"; elevation: over the mask from the cell's centre. field_of_view: also inside the satellite's nadir cone (the constellation's half angle). |
| `min_elevation` | number |  | unit deg; default 10; 0 to 90; Minimum elevation |
| `cluster` | "none" \| "by_name" |  | default "none"; by_name: satellites named alike but for a trailing letter (HAWK-7A, HAWK-7B) count as one. |
| `min_satellites` | integer |  | default 1; 1 to 1,000; Satellites (or clusters) needed |
| `refraction` | "radio" \| "optical" \| "none" |  | default "radio"; Radio: ITU-R P.834; optical: Saemundsson; none: geometric. |
| `start` | string |  | Defaults to the project clock's start. |
| `duration` | number |  | unit s; default 86400; at least 1; Duration |
| `step` | number |  | unit s; default 60; greater than 0; Step |

The window (`start`, `duration`, `step`) defaults to the project clock and the duration of the call block; the satellites are propagated for it.

Outputs:

- `passes`: Passes over H3 cells (`table.passes`: cell, start, end)

Models:

- `h3` (default): H3.

## ascent

Launch ascent. A launch's ascent from its pad to insertion: positions over time along a climb and a downrange run at the launch azimuth, the Earth's rotation included. A profile, not a trajectory simulation.

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `liftoff` | string | yes | Liftoff |
| `latitude` | number | yes | unit deg; -90 to 90; Pad latitude |
| `longitude` | number | yes | unit deg; -180 to 180; Pad longitude |
| `altitude` | number |  | unit m; default 0; -500 to 9,000; Pad altitude |
| `inclination` | number |  | unit deg; default 51.6; 0 to 180; The inclination of the orbit at insertion; the launch azimuth follows from it and the pad's latitude. |
| `northbound` | boolean |  | default true; Insert on the ascending leg (heading north-east or north-west) or the descending one (south). |
| `target_altitude` | number |  | unit km; default 300; 100 to 2,000; Insertion altitude |
| `duration` | number |  | unit s; default 540; 60 to 3,600; Liftoff to insertion. |
| `step` | number |  | unit s; default 5; greater than 0; Step |
| `name` | string |  | default "vehicle"; at most 80 characters; Vehicle |

Outputs:

- `ephemeris`: Positions over time (`ephemeris.sampled`: sat_id, time, x (km), y (km), z (km))

Models:

- `profile` (default): Profile. Accuracy: A profile: a smooth climb and a downrange run to the circular speed at the insertion altitude along the great circle at the launch azimuth, the Earth's rotation included; no thrust, no drag, no staging, no dog-leg.

## links

Links. Which satellites of a constellation can talk to each other, and which satellites its ground sites talk to: the pairs joined, by an algorithm the implementation names (in-plane neighbours, a grid across the planes, the nearest within range, or ground links from the stations listed to the satellites they see above their elevation mask and the terrain's horizon, held with a hysteresis), from the constellation's elements or its sampled positions. The window draws them as lines between the members, and between a site and its satellite.

Inputs:

| Input | Takes |  |
|---|---|---|
| `of` | a movers layer (propagated for the window) | optional |
| `stations` | a points layer | optional |
| `horizon` | a areas layer | optional |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `start` | string |  | The first instant; the start of the clock's range by default. Defaults to the project clock's start. |
| `duration` | number |  | unit s; default 7200; at least 0; Duration |
| `step` | number |  | unit s; default 60; greater than 0; Step |
| `site_keys` | string[] |  | Site keys; omit for all. Strip layer/. |
| `clearance` | any |  | Earth clearance margin. |
| `refraction` | any |  | Radio: ITU-R P.834; optical: Saemundsson; none: geometric. |
| `links_per_site` | any |  | Simultaneous links per site. |
| `hysteresis` | any |  | Replacement satellite elevation advantage. |
| `hold` | any |  | Minimum hold before replacing a visible satellite. |
| `neighbours` | any |  | Nearest neighbours per satellite. |

Outputs:

- `links`: Links over time (`series.links`: time, a, b, range_km (km))

Models:

- `grid` (default): Grid. In-plane neighbours plus each satellite's nearest member of the next plane at the epoch, preserving the original Grid candidates and nominal Earth-clearance decisions. Its own arguments: `clearance` (unit km; default 100; 0 to 1,000; A pair whose line of sight at an instant passes under this height above the Earth's surface (WGS 84 equatorial radius plus this margin, the atmosphere) is behind the Earth at that instant: left out of it, and the result says how many pairs are behind it at every instant.).
- `ground`: Ground links. Each station the node lists to the satellites it sees above its elevation mask (the apparent elevation, refracted) and above the terrain's horizon when one is wired, up to a number at a time, the highest first; a link ends when its satellite is no longer seen, and one held at least the hold time gives way to an unlinked satellite higher by more than the hysteresis. Its own arguments: `min_elevation` (unit deg; default 10; 0 to 90; Elevation mask); `refraction` (default "radio"; The atmosphere's bending of the line of sight: the mask is on the apparent elevation. Radio: ITU-R P.834 (reference atmosphere, by the site's height); optical: Saemundsson (10 C, 1010 hPa); none: geometric.); `links_per_site` (default 1; 1 to 16; How many satellites a site talks to at a time (its antennas).); `hysteresis` (unit deg; default 5; 0 to 90; A held link gives way only to a satellite higher than its own by more than this.); `hold` (unit s; default 60; at least 0; A new link is kept at least this long before a higher satellite may replace it; a satellite that sets below the mask ends its link at once.).
- `nearest`: Nearest within range. At every instant, each satellite to its k nearest satellites within the maximum range whose line of sight clears the Earth by the margin (the atmosphere); a pair either end chose is one link. Its own arguments: `neighbours` (default 4; 1 to 16; How many nearest satellites each one links to.); `max_range` (unit km; default 5000; greater than 0; Maximum range); `clearance` (unit km; default 100; 0 to 1,000; The line of sight must pass this far above the Earth's surface (WGS 84 equatorial radius plus this margin, the atmosphere).).
- `plane`: In-plane neighbours. Neighbours ahead and behind in the nominal orbital-plane grouping, with pairs behind the Earth at epoch omitted. Its own arguments: `clearance` (unit km; default 100; 0 to 1,000; A neighbour pair whose line of sight at the epoch passes under this height above the Earth's surface (WGS 84 equatorial radius plus this margin, the atmosphere) is behind the Earth: dropped, and the result says how many.).

## network

Build a network. Joins line features into a routable network: lines meet where they share a vertex, dead ends are stitched, landing points join their cable, each link has its length in km.

Inputs:

| Input | Takes |  |
|---|---|---|
| `features` | a paths layer |  |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `snap_m` | number |  | unit m; default 450; 10 to 10,000; Snapping distance |
| `stitch_km` | number |  | unit km; default 6; 0 to 100; Stitch dead ends within |
| `landing_km` | number |  | unit km; default 150; 0 to 1,000; Join landing points within |

Outputs:

- `network`: Network (`table.network`: link_id, a, b, km (km), kind, name, geometry, properties)

Models:

- `snap` (default): Snap and stitch.

## path

Geometric path latency. Minimum one-way propagation plus processing delay between two stations, through supplied ground and optional inter-satellite Links at one exact nominal instant. No queueing, congestion, RF or capacity model.

Inputs:

| Input | Takes |  |
|---|---|---|
| `stations` | a points layer |  |
| `ground` | a links layer |  |
| `links` | a links layer | optional |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `instant` | string |  | The instant of the path; the clock's time by default. Defaults to the project clock's time. |
| `origin` | string | yes | Origin station id |
| `destination` | string | yes | Destination station id |
| `processing_ms` | number |  | unit ms; default 0; at least 0; Processing per segment (ms) |
| `route_stretch` | number |  | default 1; at least 1; Fibre route stretch |
| `fibre_speed_km_s` | number |  | unit km/s; default 200000; greater than 0; Fibre speed (km/s) |

Outputs:

- `path`: Geometric path and fibre bound (`table.path`: segment, time, status, cause, a, b, kind, range_km (km), delay_ms (ms), total_ms (ms), round_trip_ms (ms), hop_count, geodesic_km (km), fibre_km (km), fibre_ms (ms), processing_ms (ms), route_stretch, fibre_speed_km_s (km/s), fibre_round_trip_ms (ms), a_kind, b_kind)

Models:

- `dijkstra` (default): Minimum delay. Dijkstra over positive link lengths divided by 299792.458 km/s, plus stated processing per segment.

## propagate

Orbit propagation. Positions over time from elements.

Inputs:

| Input | Takes |  |
|---|---|---|
| `of` | a movers layer |  |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `start` | string |  | The first instant; the start of the clock's range by default. Defaults to the project clock's start. |
| `duration` | number |  | unit s; default 86400; at least 1; Duration |
| `step` | number |  | unit s; default 60; greater than 0; Step |

Outputs:

- `ephemeris`: Positions over time (`ephemeris.sampled`: sat_id, time, x (km), y (km), z (km))

Models:

- `j2` (default): J2. Accuracy: Mean elements under J2's secular rates (the planes precess, the period is the nodal one): no short-period terms (a few km), no drag, no J3. For designed orbits; a GP set (a catalogue's published elements) needs SGP4.
- `sgp4`: SGP4. Accuracy: SGP4 from GP mean elements (Vallado et al. 2006), TEME: a GP set is typically good to about a kilometre at its epoch and degrades by a few kilometres a day.
- `two-body`: Two-body. Accuracy: No perturbation: for sketching, not for precise ephemerides.

## horizon

Horizon from stations. What hides the sky from each station: the terrain's horizon by degree of azimuth, out to 100 km.

Inputs:

| Input | Takes |  |
|---|---|---|
| `stations` | a points layer |  |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `terrain` | "ground" \| "ground and obstructions" |  | default "ground"; The ground (GEDTM30, bare earth, which smooths sharp summits), or the higher of the ground and Copernicus GLO-30 with its trees and buildings (the conservative mask). |
| `site_keys` | string[] |  | Site keys; omit for all. Strip layer/. |

Outputs:

- `horizon`: Horizon of the terrain per station (`table.horizon`: station_id, azimuth_deg (deg), elevation_deg (deg), station_height_m (m), ground_m (m), raised)

Models:

- `terrain` (default): From the terrain models (GEDTM30, Copernicus GLO-30).

## sunlight

Sunlight and eclipses. When each satellite is in sunlight, in the penumbra or in the umbra of the Earth or the Moon, the share of the Sun's disc it sees, and its beta angle.

Inputs:

| Input | Takes |  |
|---|---|---|
| `of` | a movers layer (propagated for the window) |  |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `start` | string |  | Defaults to the project clock's start. |
| `duration` | number |  | unit s; default 86400; at least 1; Duration |
| `step` | number |  | unit s; default 60; greater than 0; Step |

The window (`start`, `duration`, `step`) defaults to the project clock and the duration of the call block; the satellites are propagated for it.

Outputs:

- `intervals`: Sunlight and eclipse intervals (`table.sunlight-intervals`: sat_id, satellite_name, state, start, end, duration_s (s), min_sun_fraction, start_clipped, end_clipped)
- `series`: Sunlight on satellites (`series.sunlight`: sat_id, time, sun_fraction, lighting, beta_deg (deg))

Models:

- `conical` (default): Conical shadows: WGS 84 Earth and the Moon, JPL DE440s.

## trajectory

Cislunar trajectory. A spacecraft's coast and impulsive burns between the Earth and the Moon: its motion integrated under the gravity of the Earth (with J2), the Moon and the Sun from JPL DE440s, from a state or an orbit at an instant, with each burn's delta-v, the closest approach to the Moon and the orbit after every event.

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `start` | string |  | The instant of the initial state; the start of the clock's range by default. Defaults to the project clock's start. |
| `duration` | number |  | unit s; default 432000; 60 to 3,456,000; From the start to the end of the trajectory, at most 40 days. |
| `step` | number |  | unit s; default 60; 1 to 86,400; The step of the positions drawn and read; the integration itself takes its own steps. |
| `center` | "earth" \| "moon" |  | default "earth"; The body the initial state or orbit is about. |
| `orbit` | {periapsis_altitude, apoapsis_altitude, inclination, raan, arg_periapsis, true_anomaly} |  | The initial state as an orbit about the centre, angles in ICRF (the equator and equinox of J2000). Give orbit or state. |
| `state` | {x, y, z, vx, vy, vz} |  | The initial state about the centre, ICRF (J2000): position in km, velocity in km/s. Give state or orbit. |
| `burns` | {name, time, at, about, dv, to_altitude}[] |  | default []; at most 20 items; Impulsive burns in time order. Each happens at a time or at the next periapsis about its body, and changes the velocity by dv (m/s along the velocity, the orbit normal and V x N, relative to the body) or to the speed that puts the opposite apsis at to_altitude (circular at its own altitude). |
| `name` | string |  | default "spacecraft"; at most 80 characters; The craft, its id in the positions and the events. |

Outputs:

- `ephemeris`: Positions over time (`ephemeris.sampled`: sat_id, time, x (km), y (km), z (km))
- `moon`: Positions over time (`ephemeris.sampled`: sat_id, time, x (km), y (km), z (km))
- `events`: Trajectory burns and events (`table.trajectory-events`: event, kind, time, elapsed_s (s), about, altitude_km (km), speed_km_s (km/s), dv_m_s (m/s), dv_v_m_s (m/s), dv_n_m_s (m/s), dv_b_m_s (m/s), total_dv_m_s (m/s), periapsis_altitude_km (km), apoapsis_altitude_km (km), eccentricity, inclination_deg (deg), c3_km2_s2 (km2/s2), period_s (s), x_km (km), y_km (km), z_km (km), vx_km_s (km/s), vy_km_s (km/s), vz_km_s (km/s))

Models:

- `point-masses` (default): Point masses: Earth with J2, Moon and Sun, JPL DE440s. Accuracy: The point-mass gravity of the Earth (with its J2), the Moon and the Sun from DE440s, GM values of DE440, integrated by DOP853 at a relative tolerance of 1e-12; impulsive burns. No lunar gravity field (an orbit 100 km above the Moon drifts by kilometres a day from its mascons), no solar radiation pressure, no drag, no finite burns. Against JPL Horizons' as-flown Artemis I Orion: within 0.06 km over a 22 h translunar coast, and its 130 km perilune within 32 m and 0.14 s.

## cloud_cover

Cloud cover. Cloud cover at ground stations, from historical data, forecasts or monthly climate averages.

Inputs:

| Input | Takes |  |
|---|---|---|
| `sites` | a points layer |  |
| `atmosphere` | a layer of atmosphere | optional |

Arguments:

| Argument | Type | Required | Facts |
|---|---|---|---|
| `time_range` | any | yes |  |
| `variables` | any |  | default ["total_cloud_cover"] |
| `site_keys` | string[] |  | Site keys; omit for all. Strip layer/. |

Outputs:

- `cloud_cover`: Cloud cover at sites (`series.cloud-cover`: site_id, time, total_cloud_cover)

Models:

- `era5`: ERA5 read directly. Reads the public ERA5 store (Google ARCO) at run time, the value at each site's nearest 0.25 degree grid point every hour of the time range: no release, so a snapshot label makes a new result when the store's last months (ERA5T) have been revised. Accuracy: A reanalysis: clouds as a weather model reconstructs them, not local observations; past its last hour a forecast, replaced by every run Its own arguments: `snapshot` (default ""; A label of when the store was read (any text, a date): a new label is a new result; empty reads what the store holds now.).
- `skyclimate` (default): SkyClimate usual cover. The usual total cloud cover of each site at the month and UTC hour of every hour of the time range: the mean of 2018 to 2025 from the SkyClimate cloud-climatology release, the values the Clouds of the hour Layer shades past the forecast. Accuracy: An eight-year mean of a reanalysis: how cloudy it usually is, not the cloud of a day; model fields, not calibrated Its own arguments: `release` ().

## Engine size limits

A call past one of these is refused before it runs, with the step, window or count that fits; a visibility past the access pairs keeps its counts and lists passes and pairs under `withheld`. Split the work, lengthen the step, or shorten the window (`recipes/sweeps-and-limits.md`).

| Limit | Value | Counts |
|---|---|---|
| propagation samples | 5,000,000 | satellites x instants in one propagation |
| access pairs | 2,000,000 | stations x satellites x instants in visibility pairs and passes |
| access tests | 50,000,000 | stations x satellites x instants in visibility counts |
| input sites | 5,000 | selected rows from a sites table; select fewer with site_keys |
| horizon sites | 200 | selected sites before any terrain reads; select fewer with site_keys |
| ground link tests | 50,000,000 | sites x satellites x instants in one links call |
| link rows | 5,000,000 | rows in one links result |
| grid passes | 5,000,000 | rows (cell and pass) in one revisit result |
| grid elevations | 3,000,000,000 | cells x satellites x instants in one coverage or revisit call |
| grid cells | 200,000 | cells in one grid |
| whole-Earth grid resolution | 3 | the finest H3 resolution of a grid with no area |
| GP set elements | 100,000 | satellites in one GP set |
| features | 200,000 | features in one GeoJSON or KML |
