# Go Around 3D weather terrain

Planning repository for a 3D weather view of South African flying areas, in Go Around navy and gold. Students and pilots would see the real landscape, live weather drawn on it, and gold pins for airfields and flight schools.

**Status: planning only. Nothing in this repository is deployed, and GitHub Pages is not enabled.** A small Cape Town prototype runs only on a local computer. MT’s rules apply: pictures first, one branch per job, a yes to merge, then a separate yes to deploy.

## What is here

| Path | What it is |
| --- | --- |
| [`docs/PLAN.md`](docs/PLAN.md) | Full plan (from the [Notion page](https://app.notion.com/p/41ae8f7324d981d4971ff99d34ef8199), 16 Nov 2026), with school counts for Gauteng and the Western Cape |
| [`docs/data/`](docs/data/) | Working files that produced those school counts (`count.py`, `rows.json`) |
| [`docs/DEVICE-TIERS.md`](docs/DEVICE-TIERS.md) | Suggested device support (runtime check, not a model block list). Not tested on real devices yet |
| [`docs/LEGAL.md`](docs/LEGAL.md) | Data and licence notes, plus the 15 Nov 2026 Windy research text (no Windy-branded images) |
| [`docs/NOTES.md`](docs/NOTES.md) | Decisions recorded on 16 Nov 2026 |
| [`prototype/`](prototype/) | Local Cape Town / Table Mountain / FACT 3D demo (three.js) |
| [`shots/`](shots/) | Preview screenshots of that prototype (phone 390 px and desktop 1440 px) |

## How to run the prototype locally

You need Python 3. The generated Cape Town assets (`prototype/assets/`) are already in this repository and are small (about 1.1 MB), so you do not need to rebuild them to look around.

From the `prototype` folder:

```bash
python3 server.py
```

Then open [http://127.0.0.1:8765/?view=table_mountain](http://127.0.0.1:8765/?view=table_mountain).

The server only binds to `127.0.0.1` by default. It serves the static demo and proxies NOAA Aviation Weather Center METAR/TAF (the AWC API has no CORS headers) plus a default Open-Meteo forecast for FACT. There are no API keys.

- Views: `table_mountain`, `peninsula`, `table_bay`, `fact`.
- Add `&shot=1` to hide the on-screen hint.
- Ideas are toggleable with `?fx=`: `weather`, `wind`, `clouds`, `sky`, `scrubber`, `runway`, `badge`, `orbit`, `sea`, `trees`, or `fx=all`.

Examples:

```
http://127.0.0.1:8765/?view=table_mountain&fx=clouds,runway
http://127.0.0.1:8765/?view=fact&fx=runway
http://127.0.0.1:8765/?fx=all
```

See [`prototype/README.md`](prototype/README.md) for the full flag list and data credits.

### Regenerating the landscape assets

`prototype/assets/` holds `heights.bin` (373 KB), `color.png` (694 KB) and `meta.json`. No file is over 50 MB.

To rebuild them, put the Copernicus DEM GLO-30 GeoTIFFs for tiles `S34 E018` and `S35 E018` at:

```
/tmp/dem/copernicus_S34_E018.tif
/tmp/dem/copernicus_S35_E018.tif
```

Install `numpy`, `tifffile` and `Pillow`, then from `prototype/` run:

```bash
python3 build_assets.py
```

Credit the DEM on screen if you use or regenerate these assets: Copernicus DEM GLO-30 © DLR e.V. & Airbus, provided by ESA / Copernicus Programme.

## Launch idea in brief

- **Regions:** Gauteng and the Cape Town / Western Cape cluster first; Durban next; Gqeberha and the coast later; a flat map everywhere else.
- **Layers:** precipitation, wind and temperature, plus clouds and a 24-hour slider. Open data only (see [`docs/LEGAL.md`](docs/LEGAL.md)).
- **Schools:** gold airfield pins, and softer town pins where a school has no airfield code.
- **Devices:** a WebGL 2 + short frame-rate check chooses Full, Lite, or a still image. Not tested on real hardware yet.

## Open questions for MT

Some of these are already leaning a certain way in [`docs/NOTES.md`](docs/NOTES.md); the rest are still open.

- [ ] Launch with **both** Gauteng and Cape Town together, or Cape Town first (the prototype is already there) and Gauteng a week later?
- [ ] Show **all** school types on the map, or only flying schools at launch, with paragliding, drone and ground schools behind a filter?
- [ ] Confirm **town pins** for schools with no airfield code (the current plan), or hide them until they confirm an airfield?
- [ ] Which weather layer is on by default: Wind (suggested), Rain or Temperature?
- [ ] Wind by height (flight levels) at launch, or surface wind only first?
- [ ] Which extra ideas in [`docs/PLAN.md`](docs/PLAN.md) section 6 are must-haves for launch (VFR colour, last light, share a snapshot, and so on)?
- [ ] Is this feature free for everyone, or are some parts (route line, flight-level wind) for Pro members?
- [ ] Where does it live: its own “3D Weather” page, or the top of each region / airfield page?
- [ ] OK to start Phase B (data clean-up of “FARM” codes and blank provinces) as its own job?

## What was left out

- Windy-branded research images (logos, Play Store shots, social images). The research **text** is in [`docs/LEGAL.md`](docs/LEGAL.md).
- The ATO master JSON. Counts were taken from it; the file itself stays in `sdzrxwfxd2-cloud/go-around-database-12nov`.
- Raw Copernicus GeoTIFF tiles (only the small derived `heights.bin` / `color.png` are here).
- Python `__pycache__` and any secrets. This repository has no passwords, tokens or private account information.
