{
 "_about": "The 1 m terrain engine of /watershed-map/ checked on USGS 3DEP terrain against an independent implementation of the same published method. Written by _workspace/tools/dem_verify.mjs --write.",
 "checked": "2026-11-15",
 "method": "Priority-Flood depression filling with an epsilon gradient (Barnes, Lehman & Mulla 2014), D8 flow directions (O'Callaghan & Mark 1984), outlet moved to the highest flow accumulation within 15 m, upstream trace from the outlet",
 "reference": "A separate implementation of the same method written in Python (_workspace/tools/dem_reference_pf.py), run on the same terrain from the same click point",
 "passLine": "area within 5 % and overlap (IoU) of at least 0.90",
 "streamstats": "USGS StreamStats Texas (built by USGS from 3 m lidar terrain with its own stream grid) from the same point, queried 2026-11-15; shown for context, not a pass/fail line",
 "terrain": "USGS 3DEP elevation, 1 m cells, recorded 2026-11-15",
 "cases": [
  {
   "id": "austin-hills",
   "place": "Austin west hills (Barton Creek tributaries)",
   "cellM": 1,
   "windowCells": 680,
   "referenceAcres": 26.389,
   "engineAcres": 26.389,
   "diffPct": 0,
   "iou": 1,
   "filledAcres": 0.51,
   "pass": true,
   "seconds": 0.1,
   "streamstats": {
    "acres": 29.12,
    "iou": 0.861,
    "outletDistanceM": 13.2
   }
  },
  {
   "id": "austin-urban",
   "place": "Austin urban (north central)",
   "cellM": 1,
   "windowCells": 839,
   "referenceAcres": 67.769,
   "engineAcres": 67.769,
   "diffPct": 0,
   "iou": 1,
   "filledAcres": 4.05,
   "pass": true,
   "seconds": 0.17,
   "streamstats": {
    "acres": 61.5,
    "iou": 0.033,
    "outletDistanceM": 14.5
   }
  },
  {
   "id": "houston-flat",
   "place": "Houston west (flat coastal plain)",
   "cellM": 1,
   "windowCells": 623,
   "referenceAcres": 24.755,
   "engineAcres": 24.755,
   "diffPct": 0,
   "iou": 1,
   "filledAcres": 4.06,
   "pass": true,
   "seconds": 0.09,
   "streamstats": {
    "acres": 20.73,
    "iou": 0.794,
    "outletDistanceM": 14.8
   }
  },
  {
   "id": "dallas-urban",
   "place": "Dallas northeast (urban)",
   "cellM": 1,
   "windowCells": 726,
   "referenceAcres": 39.972,
   "engineAcres": 39.972,
   "diffPct": 0,
   "iou": 1,
   "filledAcres": 0.86,
   "pass": true,
   "seconds": 0.12,
   "streamstats": {
    "acres": null,
    "note": "StreamStats placed its outlet on another stream nearby"
   }
  },
  {
   "id": "san-antonio-north",
   "place": "San Antonio north (Hill Country edge)",
   "cellM": 1,
   "windowCells": 762,
   "referenceAcres": 37.289,
   "engineAcres": 37.289,
   "diffPct": 0,
   "iou": 1,
   "filledAcres": 0.86,
   "pass": true,
   "seconds": 0.16,
   "streamstats": {
    "acres": null,
    "note": "StreamStats could not place an outlet at this point"
   }
  }
 ]
}
