# Comparing design options by sunlight

Question shape: "which of these options gives the courtyard (or the facades) the most sun, on the
days that matter?" Answer with numbers per option and day, and captures with legends.

## Set up each option

Put each option on its own layer (`jifto_geometry` add with `"layer": "Option A"`). The ground is
shared.

## For each option and each day

```json
jifto_geometry {"action": "layers", "only": ["Site", "Option A"]}
jifto_analysis {"module": "sunlight", "analysis": ["<ground id>", "<option A building ids>..."]}
jifto_settings {"set": {"sunlight.day": "equinox"}}
jifto_run {"module": "sunlight", "wait_seconds": 120}
jifto_results {"module": "sunlight", "points": true, "path": "<folder>/A-equinox.csv"}
jifto_capture {"view": "top", "frame": ["<ground id>"], "width": 1200, "height": 1200, "path": "<folder>/A-equinox.png"}
```

- `sunlight.day`: `equinox` (20 March, 6-18 h), `summer` (21 June, 5-21 h), `winter` (21 December,
  9-15 h), `autumn`, or `MM-DD` with `sunlight.hours` [start, end]. The southern hemisphere swaps
  summer and winter.
- Buildings given as **analysis** surfaces get their own sun hours on roofs and facades, and still
  cast shadows. Give them as `context` when only the ground is studied.
- The points file has `object_id, x, y, z, Sun hours`. Average the points inside the courtyard's
  outline for the courtyard's figure; count the share with at least 2 hours on the equinox (the
  BRE guideline for amenity space).
- The job's `result.statistics` and `jifto_results`' `legend.statistics` give the area in each band,
  for the whole analysis.
- Fit the legend to the question before the runs: `sunlight.MaxSunHours` is the panel's Range (the
  top of the sun-hours legend, 2 to 24 h). Comparing days, set it to the longest day studied (16 h
  for a 5 to 21 h summer day) so summer does not saturate and one scale serves every day. For energy
  it is `sunlight.MaxDayEnergy`, for a season `sunlight.MaxSeasonalHours`. `jifto_settings
  find="range"` finds these by the panel's word.
- Other kinds: `energy`, `planting`, `season` (every day from `sunlight.SeasonStartMonth`/`Day` to
  `sunlight.EndMonth`/`Day`, progress in days) and `shadows`.

## Report

Lead with the answer (which option, by how much, on which day), then a table of options by day, then
the captures in a grid with one legend per day. No interventions section: the options are the
interventions. See `html-reports`.
