{
 "ocl_version": "0.1.0",
 "name": "Castle Street",
 "slug": "castle-street",
 "confidence": "A",
 "reported_claims": [],
 "ladder": [
  {
   "window_m": 2.0,
   "max_gradient_pct": 24.933753810229042,
   "diagnostic": true,
   "flags": [],
   "start_distance_m": 242.0,
   "end_distance_m": 244.0,
   "start_elevation_m": 29.18162454499998,
   "end_elevation_m": 29.68029962120456,
   "min_gradient_pct": 1.7425062603663832
  },
  {
   "window_m": 3.0,
   "max_gradient_pct": 24.86233038558545,
   "diagnostic": true,
   "flags": [],
   "start_distance_m": 216.0,
   "end_distance_m": 219.0,
   "start_elevation_m": 22.920852896124092,
   "end_elevation_m": 23.666722807691656,
   "min_gradient_pct": 2.0046298079246108
  },
  {
   "window_m": 5.0,
   "max_gradient_pct": 24.610091459887613,
   "diagnostic": false,
   "flags": [],
   "start_distance_m": 214.0,
   "end_distance_m": 219.0,
   "start_elevation_m": 22.436218234697275,
   "end_elevation_m": 23.666722807691656,
   "min_gradient_pct": 2.344092064262604
  },
  {
   "window_m": 10.0,
   "max_gradient_pct": 24.26596525041898,
   "diagnostic": false,
   "flags": [],
   "start_distance_m": 221.0,
   "end_distance_m": 231.0,
   "start_elevation_m": 24.11775329824582,
   "end_elevation_m": 26.544349823287718,
   "min_gradient_pct": 2.5239231171949505
  },
  {
   "window_m": 20.0,
   "max_gradient_pct": 24.20079360466465,
   "diagnostic": false,
   "flags": [],
   "start_distance_m": 220.0,
   "end_distance_m": 240.0,
   "start_elevation_m": 23.880021526219743,
   "end_elevation_m": 28.720180247152673,
   "min_gradient_pct": 2.5954748678011885
  },
  {
   "window_m": 25.0,
   "max_gradient_pct": 24.140856814590236,
   "diagnostic": false,
   "flags": [],
   "start_distance_m": 216.0,
   "end_distance_m": 241.0,
   "start_elevation_m": 22.920852896124092,
   "end_elevation_m": 28.95606709977165,
   "min_gradient_pct": 2.6299050379692233
  },
  {
   "window_m": 50.0,
   "max_gradient_pct": 23.63446963571041,
   "diagnostic": false,
   "flags": [],
   "start_distance_m": 205.0,
   "end_distance_m": 255.0,
   "start_elevation_m": 20.388730952232034,
   "end_elevation_m": 32.20596577008724,
   "min_gradient_pct": 2.8505892076988637
  },
  {
   "window_m": 100.0,
   "max_gradient_pct": 21.723822855224107,
   "diagnostic": false,
   "flags": [],
   "start_distance_m": 186.0,
   "end_distance_m": 286.0,
   "start_elevation_m": 16.645659469228754,
   "end_elevation_m": 38.36948232445286,
   "min_gradient_pct": 3.111226119232804
  }
 ],
 "shape": {
  "ascent_concentration": 0.495,
  "concentration_window_frac": 0.25,
  "longest_pitch_10pct_m": 166.0,
  "shape_class": "stepped"
 },
 "length_m": 326.13702367054424,
 "start_elevation_m": 6.84803977865254,
 "end_elevation_m": 44.15984611447574,
 "endpoint_gain_m": 37.3118063358232,
 "overall_gradient_pct": 11.44053070574247,
 "accumulated_ascent_m": 37.3118063358232,
 "window_maxima": {
  "max_5m": {
   "gradient_pct": 24.610091459887613,
   "start_distance_m": 214.0,
   "end_distance_m": 219.0,
   "midpoint_distance_m": 216.5,
   "start_elevation_m": 22.436218234697275,
   "end_elevation_m": 23.666722807691656,
   "start_xy": [
    1375084.5733351693,
    4898973.257639008
   ],
   "end_xy": [
    1375088.813472348,
    4898970.6088774055
   ]
  },
  "max_10m": {
   "gradient_pct": 24.26596525041898,
   "start_distance_m": 221.0,
   "end_distance_m": 231.0,
   "midpoint_distance_m": 226.0,
   "start_elevation_m": 24.11775329824582,
   "end_elevation_m": 26.544349823287718,
   "start_xy": [
    1375090.5260805401,
    4898969.575933467
   ],
   "end_xy": [
    1375099.0891215007,
    4898964.411213773
   ]
  },
  "max_20m": {
   "gradient_pct": 24.20079360466465,
   "start_distance_m": 220.0,
   "end_distance_m": 240.0,
   "midpoint_distance_m": 230.0,
   "start_elevation_m": 23.880021526219743,
   "end_elevation_m": 28.720180247152673,
   "start_xy": [
    1375089.669776444,
    4898970.092405436
   ],
   "end_xy": [
    1375106.8089142037,
    4898959.7847465845
   ]
  },
  "max_25m": {
   "gradient_pct": 24.140856814590236,
   "start_distance_m": 216.0,
   "end_distance_m": 241.0,
   "midpoint_distance_m": 228.5,
   "start_elevation_m": 22.920852896124092,
   "end_elevation_m": 28.95606709977165,
   "start_xy": [
    1375086.2550623615,
    4898972.175144827
   ],
   "end_xy": [
    1375107.668023158,
    4898959.272953849
   ]
  },
  "max_50m": {
   "gradient_pct": 23.63446963571041,
   "start_distance_m": 205.0,
   "end_distance_m": 255.0,
   "midpoint_distance_m": 230.0,
   "start_elevation_m": 20.388730952232034,
   "end_elevation_m": 32.20596577008724,
   "start_xy": [
    1375077.0055628049,
    4898978.128862821
   ],
   "end_xy": [
    1375119.5169992456,
    4898951.826906093
   ]
  },
  "max_100m": {
   "gradient_pct": 21.723822855224107,
   "start_distance_m": 186.0,
   "end_distance_m": 286.0,
   "midpoint_distance_m": 236.0,
   "start_elevation_m": 16.645659469228754,
   "end_elevation_m": 38.36948232445286,
   "start_xy": [
    1375061.772424068,
    4898989.40143477
   ],
   "end_xy": [
    1375143.6328158116,
    4898932.391741821
   ]
  }
 },
 "window_minima": {
  "min_5m": {
   "gradient_pct": 2.344092064262604,
   "start_distance_m": 100.0,
   "end_distance_m": 105.0,
   "midpoint_distance_m": 102.5,
   "start_elevation_m": 10.65009372732642,
   "end_elevation_m": 10.76729833053955,
   "start_xy": [
    1374994.1356154545,
    4899042.059557039
   ],
   "end_xy": [
    1374998.2783077555,
    4899039.259896256
   ]
  },
  "min_10m": {
   "gradient_pct": 2.5239231171949505,
   "start_distance_m": 99.0,
   "end_distance_m": 109.0,
   "midpoint_distance_m": 104.0,
   "start_elevation_m": 10.630594073577353,
   "end_elevation_m": 10.882986385296848,
   "start_xy": [
    1374993.3070769943,
    4899042.619489196
   ],
   "end_xy": [
    1375001.5924615962,
    4899037.02016763
   ]
  },
  "min_20m": {
   "gradient_pct": 2.5954748678011885,
   "start_distance_m": 89.0,
   "end_distance_m": 109.0,
   "midpoint_distance_m": 99.0,
   "start_elevation_m": 10.36389141173661,
   "end_elevation_m": 10.882986385296848,
   "start_xy": [
    1374985.0836634994,
    4899048.308591162
   ],
   "end_xy": [
    1375001.5924615962,
    4899037.02016763
   ]
  },
  "min_25m": {
   "gradient_pct": 2.6299050379692233,
   "start_distance_m": 87.0,
   "end_distance_m": 112.0,
   "midpoint_distance_m": 99.5,
   "start_elevation_m": 10.308057086428256,
   "end_elevation_m": 10.965533345920562,
   "start_xy": [
    1374983.4489675744,
    4899049.460879855
   ],
   "end_xy": [
    1375004.0780769768,
    4899035.34037116
   ]
  },
  "min_50m": {
   "gradient_pct": 2.8505892076988637,
   "start_distance_m": 67.0,
   "end_distance_m": 117.0,
   "midpoint_distance_m": 92.0,
   "start_elevation_m": 9.687061641893763,
   "end_elevation_m": 11.112356245743195,
   "start_xy": [
    1374969.3720060685,
    4899063.508526523
   ],
   "end_xy": [
    1375008.220769278,
    4899032.5407103775
   ]
  },
  "min_100m": {
   "gradient_pct": 3.111226119232804,
   "start_distance_m": 32.0,
   "end_distance_m": 132.0,
   "midpoint_distance_m": 82.0,
   "start_elevation_m": 8.52285073231565,
   "end_elevation_m": 11.634076851548453,
   "start_xy": [
    1374941.6486833566,
    4899058.599422769
   ],
   "end_xy": [
    1375020.6488461809,
    4899024.141728029
   ]
  }
 },
 "diagnostic_window_maxima": {
  "max_2m": {
   "gradient_pct": 24.933753810229042,
   "start_distance_m": 242.0,
   "end_distance_m": 244.0,
   "midpoint_distance_m": 243.0,
   "start_elevation_m": 29.18162454499998,
   "end_elevation_m": 29.68029962120456,
   "start_xy": [
    1375108.5271321123,
    4898958.761161113
   ],
   "end_xy": [
    1375110.2453500212,
    4898957.737575641
   ]
  },
  "max_3m": {
   "gradient_pct": 24.86233038558545,
   "start_distance_m": 216.0,
   "end_distance_m": 219.0,
   "midpoint_distance_m": 217.5,
   "start_elevation_m": 22.920852896124092,
   "end_elevation_m": 23.666722807691656,
   "start_xy": [
    1375086.2550623615,
    4898972.175144827
   ],
   "end_xy": [
    1375088.813472348,
    4898970.6088774055
   ]
  }
 },
 "diagnostic_note": "Windows <=3 m are at raster-noise scale (1-sigma raster noise alone is roughly +/-7 pp at 2 m and +/-5 pp at 3 m on a 1 m DTM). Diagnostic use only: never a headline or ranking value.",
 "quality_summary": {
  "overhead_obstruction": {
   "obstruction_threshold_m": 2.0,
   "obstructed_fraction": 0.006,
   "obstruction_max_height_m": 4.01,
   "flagged_windows_m": []
  },
  "review": [],
  "extent": [
   "may_continue_beyond_end"
  ]
 },
 "provenance": {
  "analysis_version": "0.1.0",
  "run_manifest": {
   "manifest_version": "1",
   "code_git_sha": "f5ccc1713da600fbea2ba1433fb64f96644949ee",
   "code_git_dirty": "false",
   "analysis_version": "0.1.0",
   "analysis_config_digest": "sha256:8c94015b54267da4",
   "python": "3.14.4",
   "numpy": "2.5.3",
   "rasterio": "1.5.1",
   "pyproj": "3.8.0",
   "laspy": "2.7.0",
   "shapely": "2.1.2",
   "pyosmium": "4.3.1",
   "libosmium": "2.23.1",
   "gdal": "3.12.4",
   "proj": "9.8.1",
   "run_id": "nz-s1",
   "road_pbf": "block-batch-nz-s1.osm.pbf",
   "region_key": "nz",
   "crs": "EPSG:2193",
   "elevation_provider_key": "nz-linz",
   "tile_index": "stac",
   "authority": "linz",
   "registry_pbf": "new-zealand-2026-09-26.osm.pbf",
   "tile_index_snapshot": "sha256:65f98740b9968e3e"
  },
  "sample_interval_m": 1.0,
  "interpolation": "bilinear",
  "smoothing": "none",
  "gradient_windows_m": [
   5.0,
   10.0,
   20.0,
   25.0,
   50.0,
   100.0
  ],
  "diagnostic_windows_m": [
   2.0,
   3.0
  ],
  "elevation_crs": "EPSG:2193",
  "elevation_resolution_m": 1.0,
  "elevation_tiles": [
   "data/cache/nz/CF16.tiff"
  ],
  "calculated_at": "2026-09-28T05:17:09+00:00",
  "road_source": "OpenStreetMap (local PBF extract)",
  "road_attribution": "\u00a9 OpenStreetMap contributors, ODbL",
  "osm_pbf_path": "data/cache/pbf/block-batch-nz-s1.osm.pbf",
  "osm_snapshot": "",
  "run_id": "nz-s1",
  "elevation_provider": "LINZ nz-elevation",
  "elevation_licence": "CC BY 4.0 \u2014 Toit\u016b Te Whenua Land Information New Zealand \u2014 https://nz-elevation.s3.ap-southeast-2.amazonaws.com/LICENSE",
  "elevation_dataset": "New Zealand 1 m DEM/DSM national LiDAR mosaic \u2014 Toit\u016b Te Whenua Land Information New Zealand (LINZ), vertical datum NZVD2016 (LINZ documentation; not re-verified against a benchmark)",
  "elevation_tile_ids": [
   "CF16"
  ],
  "climb_origin": "discovered",
  "seam_filled_samples": {
   "count": 0,
   "distances_m": []
  },
  "seam_filled_in_maximum": false,
  "structure_own_ways": 2,
  "carriageway": {
   "stations": 20,
   "stations_resolved": 20,
   "width_median_m": 6.5,
   "width_p10_m": 5.75,
   "width_min_m": 5.5,
   "width_max_m": 12.0,
   "bounded_share": 0.0,
   "unbounded_share": 1.0,
   "confidence_median": 0.0,
   "window_m": [
    216.0,
    241.0
   ],
   "width_at_max25_m": 6.0,
   "window_stations": 7,
   "single_track": false,
   "single_track_rule": "PROVISIONAL (2026-09-15): width_p10_m <= 3.0 m with bounded_share >= 0.6; recorded, not a rule",
   "status": "ok",
   "source": "dtm",
   "station_m": 25.0,
   "window_station_m": 5.0,
   "halfwidth_m": 6.0,
   "step_m": 0.25,
   "level_tol_m": 0.12,
   "break_min_m": 0.3,
   "stations_failed": 0,
   "hedge_to_hedge": {
    "stations": 20,
    "stations_resolved": 20,
    "width_median_m": 10.88,
    "width_p10_m": 8.97,
    "width_min_m": 2.5,
    "width_max_m": 12.0,
    "bounded_share": 0.3,
    "unbounded_share": 0.7,
    "confidence_median": 0.0,
    "width_median_bounded_m": 9.25,
    "window_m": [
     216.0,
     241.0
    ],
    "width_at_max25_m": 10.0,
    "window_stations": 7,
    "status": "ok",
    "source": "dsm",
    "station_m": 25.0,
    "window_station_m": 5.0,
    "halfwidth_m": 6.0,
    "step_m": 0.25,
    "level_tol_m": 0.5,
    "break_min_m": 0.3,
    "stations_failed": 0
   }
  },
  "license": "ODbL-1.0",
  "license_url": "https://howsteep.org/licensing"
 },
 "area": {
  "place": "Otago",
  "county": "Otago",
  "source": "OpenStreetMap administrative boundaries (\u00a9 OpenStreetMap contributors, ODbL)"
 }
}