# Methods — Giga Texas

Everything here is reproducible with `uv run python demos/construction-progress-us/pipeline.py <stage> --site giga-texas-austin`
(engine `templum`, open data only). AOI: OpenStreetMap relation 19162380 buffered by
200 m (15.612 km²); 1624 blocks of
100 m, 1084 of them on the site. Series 2017-01 → 2026-09.

## Inputs

- Sentinel-2 L2A (Earth Search; Planetary Computer fallback), cloud < 20 %, 517 scenes; reflectance with the
  reconciled BOA offset; monthly SCL-masked median at 20 m. Contains modified Copernicus Sentinel-2 data 2017–2026 (CC BY 4.0, ESA); processed by Auspex.
- Sentinel-1 RTC (Planetary Computer), relative orbit 107 ascending,
  269 scenes; monthly mean VV/VH (dB) at 20 m. Sentinel-1B was lost in Dec 2021: fewer scenes per month 2022–24. Contains modified Copernicus Sentinel-1 data 2017–2026 (CC BY 4.0, ESA); RTC by Microsoft Planetary Computer.
- NAIP epochs 2018-11, 2020-10, 2022-06 (Planetary Computer; nothing after 2022 there or on USGSNAIPPlus). USDA FSA National Agriculture Imagery Program (NAIP), public domain; via Microsoft Planetary Computer.
- 3DEP lidar HAG: 2017 (USGS_LPC_TX_Central_B1_2017_LAS_2019). USGS 3D Elevation Program (3DEP) lidar, public domain; derived COGs via Microsoft Planetary Computer.
- Overture Maps buildings 2026-09-23.0 and OpenStreetMap (landuse, parking, roads). Overture Maps Foundation buildings, ODbL 1.0 (includes OpenStreetMap and other open sources); © OpenStreetMap contributors, ODbL 1.0.

## Built-up share {#built-up}

A 20 m pixel is built-up in a month when NDVI < 0.2 and (VV ≥ -8.5 dB or BSI ≤ 0.1),
on inputs smoothed with a centred 3-month median. The three thresholds are a grid search maximising balanced accuracy between
Overture building pixels (cover ≥ 75 %) and open pixels (no footprint within 60 m) over 2025-10..2026-09: balanced accuracy
0.898 (true-positive rate 0.914, true-negative rate 0.882; 1322 and
54795 pixels). Built-up share = share of a block's valid pixels that are built-up.

## Activity index {#activity-index}

Rolling 12-month mean of the absolute month-on-month change in a block's built-up share, smoothed first with a centred
5-month median
(`templum.analyse.status.activity_index`); units: share of block per month. It is a trailing mean: an onset is dated when the
change accumulated over the last 12 months crosses the threshold, so it lags the first change by up to several months.

## Status {#status}

`templum.analyse.status.classify` with this site's calibrated thresholds (`sites/giga-texas-austin-thresholds.toml`):
built_min 0.15, built_complete 0.6, activity_min
0.0133, quiet months 12, minimum history 12.
activity_min: p99 of the 12-month activity index on 691 blocks that stay < 0.1. built_complete: lower quartile (0.880) of 2026-09 built-up on 58 blocks with Overture building share ≥ 0.4, capped at the default 0.6. Classes: undeveloped (built-up < built_min),
built (≥ built_complete), active (in between and not quiet), no measurable change (in between and 12
quiet months in a row), insufficient history (first months). Labels describe what the sensors measured, nothing about why.

## Site timeline and validation {#validation}

Site series = mean over the site's blocks. Site events use site_activity_min 0.0079 = 2.0 × the site's
quietest 12-month activity (0.0039): the site compared with itself. Onset: the activity index rises to ≥
that threshold from below; settles: it falls below and stays below 6 months. Every record has a row: a dated match to a phase
event or the site onset, or a stated reason (`validation.md`). Scheduled starts (TDLR TABS registrations, self-reported) match
the nearest phase onset from 6 months before to 12 months after; permits match the first phase onset from 6 months before to
24 months after, else the site onset; openings and production milestones match the nearest phase settle within ±18 months,
else the row gives the phases active at that month. Announcements are context. Every record has a source URL
(`sites/giga-texas-austin-records.csv`). Matching is by date only: phase events are dated anywhere on the site, so a match says
when, not where. With many phases nearly any month has an event in the window; the validation table gives, per record
kind, how often a random month matches and how often it matches as closely as the records do (`validate_stage.chance`).

## Construction phases (clusters) {#clusters}

A block's onset is the first month its activity index is ≥ 0.0133 for 3 consecutive months;
626 on-site blocks activate. A cluster is a connected group of activated blocks on the 100 m grid
(8-neighbour) whose onsets differ by ≤ 4 months from an adjacent member (single link) — widened once from 3 months because the 3-month window gave more than 12 clusters.
Clusters under 4 blocks join the nearest cluster whose median onset is within 6 months, else "other"
(29 blocks). Each cluster's events use the site rule on the cluster-mean activity: onset and settle at 2 × the
cluster's quietest 12-month value; events at 1.5× and 2.5× are in `clusters.md`. A cluster is named after a building only
with evidence (a building polygon within ±30 % of a registered floor area, or a permit naming the building with no other
cluster starting in its window); otherwise it is named by position and size. Evidence per cluster: `clusters.md`.

**Phases.** A cluster counts as a construction phase only if its mean activity over the 24 months before its onset
is ≤ 0.0066 (0.5 × the block threshold; at least 12 months of index): the ground was quiet before it
changed. 14 of 20 clusters pass. The others (A, B, H, I, K, L) were already changing (farmland, quarry ground, or an
earlier phase next door); they stay on the map in grey with their reason and are left out of the phase count, the timeline
and record matching. The threshold was set from the activity chart alone, before any record was re-matched.

The activity index is a 12-month trailing mean, so every onset lags the first change. **First measurable change** is reported
next to each onset: the first month in the onset's 12-month window whose unsmoothed month-on-month change in the cluster's
built-up share exceeds 0.087 (2 × p99 month-on-month |Δ| unsmoothed built-up, 691 always-empty blocks). It is a reported column, not an event.

## Footprints {#footprints}

Text-prompted SAM (segment-geospatial `LangSAM`: GroundingDINO SwinB boxes for a text prompt, SAM vit_h masks
inside them), zero-shot, nothing trained on this site. Prompts: building "building", parking "parking lot", laydown "construction laydown".
Each NAIP epoch (2018-11, 2020-10, 2022-06) is mosaicked to a 1 m grid, masked to the AOI and cut into
1024 × 1024 windows with 64 px overlap (GroundingDINO resizes its input to ~800 px, so a whole mosaic cannot go in at once);
one call per window per prompt, masks merged by maximum. Boxes covering more than half a window are dropped (for "parking lot"
and "construction laydown" GroundingDINO otherwise returns a box around the whole scene). Classes are independent: a pixel
can be in more than one. OSM through-roads are removed from building and laydown. Minimum object 4.0 m
(4 px × grid). CPU wall time per epoch: 2018 28 min, 2020 30 min, 2022 27 min.

Visual QA on NAIP 2022: 60 blocks (15 building, 15 parking, 15 laydown, 15 random), each class graded agree /
disagree against the image, reasons per block in the visual-QA CSV. Agreement: building 0.483 of 60 blocks, 0.25 of the 40 with a detection (withheld, below 0.7); laydown 0.567 of 60 blocks, 0.324 of the 37 with a detection (withheld, below 0.7); parking 0.45 of 60 blocks, 0.289 of the 45 with a detection (withheld, below 0.7). A class is published only at ≥
0.7 over all 60 blocks. Presence only: no counts, no equipment classes.

## Height {#height}

USGS 3DEP height above ground at 2 m per lidar flight; values outside −5…400 m are treated as noise. Per block: mean, p95, max
and share ≥ 2 m. Lidar confirms existence and height of structures at the flight date, not timing.

## Limits

- The activity index is a trailing 12-month mean: onsets lag the first change (first measurable change is reported beside them).
- Record matches are by date, not location, and a random month matches as often (the chance rows in validation.md).
- TDLR TABS entries are accessibility registrations with self-reported scheduled starts, not permits. City of Austin records at
  Tesla Rd are plumbing permits; the building-permit authority is not verified.
- Footprints: no class published; building withheld, laydown withheld, parking withheld (rates above).
- No lidar after 2017 for this site, so no height layer.
- NAIP is a handful of leaf-on snapshots at unequal intervals; the last is 2022.
- Permit records are the issuing authority's data; completeness varies; certificates of occupancy may lag use.
- Radar coverage is thinner 2022–24 (Sentinel-1B loss).
- 20 m pixels mix surfaces; built-up shares below ~0.1 are within noise (see activity_min).

## Imagery {#imagery}

Captures for looking, not for measuring: every number on this page comes from the monthly composites and the
block series above, never from a capture. Each view is one source on one time axis (ADR 0011).

### Sentinel-2, monthly {#imagery-sentinel-2}

One real capture per month, 2017-01 → 2026-09: of the month's catalogue scenes (cloud < 20 % per tile),
the one with the lowest cloud fraction over the AOI, from its SCL band (nodata, saturated, cloud shadow, cloud and
cirrus count as cloud), if that is ≤ 10%. True colour B04/B03/B02 at 10 m with the catalogue's scale and the
reconciled BOA offset (the optical stage's rule). Otherwise the month shows the cloud-masked monthly median at 20 m
(labelled “monthly composite”). 113 captures, 2 composites; months with neither have no image. One linear
stretch for the whole site: reflectance 0.0237–0.3877 (2nd–98th percentile over all members, the three
bands pooled), then gamma 0.6. JPEG tiles z10–z14. Contains modified Copernicus Sentinel-2 data 2017–2026 (CC BY 4.0, ESA); processed by Auspex.

### Sentinel-1, monthly (all-weather) {#imagery-sentinel-1}

The radar stage's monthly means at 20 m, 2017-01 → 2026-09, as false colour: red = VV, green = VH,
blue = VV/VH, all in dB, one stretch per channel for the whole site (VV -16.02…-1.98, VH -21.69…-9.64,
VV/VH 2.05…10.88 dB; 2nd–98th percentile over all months). A month with one scene carries its date; others
are monthly means. JPEG tiles z10–z14. Contains modified Copernicus Sentinel-1 data 2017–2026 (CC BY 4.0, ESA); RTC by Microsoft Planetary Computer.

### NAIP aerial, epochs {#imagery-naip}

The footprint stage's NAIP mosaics (2018, 2020, 2022), resampled to 1 m, RGB, no stretch beyond the
mosaic's own; dates are the first day of each epoch's flights. Leaf-on snapshots at unequal intervals; the
before/after swipe defaults to 2018 → 2022. JPEG tiles z12–z17. USDA FSA National Agriculture Imagery Program (NAIP), public domain; via Microsoft Planetary Computer.
