# Recipe: check your work (every time)

A call that succeeds can still answer the wrong question: a clock a day off, a sign lost on a longitude, a step longer than the gaps you report. Check in this order, and only then tell the person.

## 1. Numbers first

Read the answer's `summary` (compute), `inputs`, `outputs` and `run` (programs), or `data_read {stats:true}`. Ask: is this physically possible?

Quick references (WGS 84 equatorial radius 6,378.137 km, mu 398,600.4418 km^3/s^2):

| Shell | Period | Ground radius seen above 10 deg | above 25 deg | Slant range at 10 deg |
|---|---|---|---|---|
| 550 km | 95.6 min | 15.0 deg (1,665 km) | 8.4 deg (940 km) | 1,816 km |
| 780 km | 100.5 min | 18.7 deg | 11.1 deg | |
| 1,200 km | 109.4 min | 24.0 deg | 15.3 deg | |
| 20,200 km (GPS) | 11.98 h | 66.3 deg | 52.4 deg | |
| 35,786 km (GEO) | 23.93 h | 71.4 deg | 57.1 deg | |

Ground radius is the Earth central angle lambda = 90 deg - mask - asin(R cos(mask) / (R + h)).

Rules of thumb that catch most mistakes:
- **Latitude reach.** A shell is seen above the mask only up to about inclination + lambda. 53 deg at 550 km: about 68 deg above 10 deg, 61 deg above 25 deg. Svalbard (78 N) sees nothing; that is correct. Each `summary.stations` row carries its `latitude`, so this needs no extra read.
- **How many in view.** For N satellites spread evenly, about N (1 - cos lambda) / 2 are above the mask on average. 1,584 at 550 km: about 27 above 10 deg, 9 above 25 deg. More near the inclination's latitude, fewer at the equator. Zero or hundreds means a wrong input.
- **Pass length.** A LEO pass above 10 deg lasts minutes (under about 10 at 550 km). A GEO satellite is always or never in view.
- **Time.** Is the window the one the person asked for? It starts at `start` (the clock range's start, `clock.range.start` in `project_open`, unless you gave one) and lasts `duration`. A new station-visibility compute moves the project clock to that window, so `project_open {project}` shows it as `clock`, unless the answer carries `clock_skipped`. Times are UTC. A Walker's epoch is the project clock unless you set it.
- **Step.** A result at a 60 s step cannot show a gap shorter than 60 s. Say the step.
- **Data age.** A GP set is good to about a kilometre at its epoch and loses a few kilometres a day. Say the release you used.

## 2. Then a picture

For an analysis, `render {project,view:<a view id returned by compute>}` shows its result table or chart. Render one result view: a table and a chart of the same output show the same numbers, so a second picture adds nothing. A globe from `show` does not display those numbers. For the scene, `render {project}` (or a scene `view`, `tab`) returns what the person's window draws, with `drawn` per layer and per link set. Check:
- every layer and link set you expect is in `drawn` with a count above 0;
- the sky or globe at `time_of_max` shows the crowd the numbers claim;
- stations sit where they should (a station in the ocean is a lost sign).

If numbers and picture disagree, the numbers are not yet a result. Find out why before you answer.

## 3. Programs: read the answer

The `program_run` answer names each input's `release` (`inputs.<name>.release`) and each output's `assurance`. "supported" means an Engine function produced it from checked inputs; "custom" means your code built it, or it was computed from custom data. Report custom results as yours. Open the full record (`project_open {project, run}`: every Engine call with its function, implementation and inputs) only when you need a call the answer does not show.

## 4. Report

Give the numbers with units, the inputs (data and release, or your design), the defaults you relied on (mask, refraction, step, window, propagation model), and the `url`. If something is approximate (step, GP age, terrain off), say how much. Say plainly when a model is absent, a mask exceeds 90 deg or a project belongs to another organisation.
