{
 "ocl_version": "0.1.0",
 "name": "Main Road",
 "slug": "main-road-2",
 "confidence": "U",
 "reported_claims": [],
 "ladder": [
  {
   "window_m": 2.0,
   "max_gradient_pct": 53.32292885485117,
   "diagnostic": true,
   "flags": [
    "structure_excluded",
    "structure_excluded_min",
    "texture_excluded",
    "texture_excluded_min",
    "canopy_or_structure"
   ],
   "start_distance_m": 7031.0,
   "end_distance_m": 7033.0,
   "start_elevation_m": 905.3871397464414,
   "end_elevation_m": 906.4535983235385,
   "min_gradient_pct": -49.870326562250966,
   "suppressed_max_gradient_pct": 95.03350217933644,
   "suppressed_location_m": [
    2211.0,
    2213.0
   ],
   "suppressed_min_gradient_pct": -85.93071617403893,
   "suppressed_min_location_m": [
    4647.0,
    4649.0
   ]
  },
  {
   "window_m": 3.0,
   "max_gradient_pct": 46.93147963719563,
   "diagnostic": true,
   "flags": [
    "structure_excluded",
    "structure_excluded_min",
    "texture_excluded",
    "texture_excluded_min",
    "canopy_or_structure"
   ],
   "start_distance_m": 5165.0,
   "end_distance_m": 5168.0,
   "start_elevation_m": 867.7603800711444,
   "end_elevation_m": 869.1683244602602,
   "min_gradient_pct": -46.41997666536023,
   "suppressed_max_gradient_pct": 80.20520561057462,
   "suppressed_location_m": [
    2211.0,
    2214.0
   ],
   "suppressed_min_gradient_pct": -75.19371396651877,
   "suppressed_min_location_m": [
    4646.0,
    4649.0
   ]
  },
  {
   "window_m": 5.0,
   "max_gradient_pct": 38.193250028020884,
   "diagnostic": false,
   "flags": [
    "structure_excluded",
    "structure_excluded_min",
    "texture_excluded",
    "suppression_unstable",
    "canopy_or_structure"
   ],
   "start_distance_m": 1979.0,
   "end_distance_m": 1984.0,
   "start_elevation_m": 791.826149666418,
   "end_elevation_m": 793.7358121678191,
   "min_gradient_pct": -43.00012136152873,
   "suppressed_max_gradient_pct": 60.27548467101951,
   "suppressed_location_m": [
    4976.0,
    4981.0
   ],
   "suppressed_min_gradient_pct": -54.8472333812947,
   "suppressed_min_location_m": [
    7023.0,
    7028.0
   ]
  },
  {
   "window_m": 10.0,
   "max_gradient_pct": 26.659301407756857,
   "diagnostic": false,
   "flags": [
    "structure_excluded",
    "no_bench_excluded",
    "texture_excluded",
    "canopy_or_structure"
   ],
   "start_distance_m": 4923.0,
   "end_distance_m": 4933.0,
   "start_elevation_m": 846.6933970144629,
   "end_elevation_m": 849.3593271552386,
   "min_gradient_pct": -40.75468934402579,
   "suppressed_max_gradient_pct": 47.669123593641416,
   "suppressed_location_m": [
    4975.0,
    4985.0
   ]
  },
  {
   "window_m": 20.0,
   "max_gradient_pct": 21.972497179608013,
   "diagnostic": false,
   "flags": [
    "structure_excluded",
    "canopy_or_structure"
   ],
   "start_distance_m": 4924.0,
   "end_distance_m": 4944.0,
   "start_elevation_m": 846.8176769300244,
   "end_elevation_m": 851.212176365946,
   "min_gradient_pct": -28.452949218770414,
   "suppressed_max_gradient_pct": 30.912008882730788,
   "suppressed_location_m": [
    4975.0,
    4995.0
   ]
  },
  {
   "window_m": 25.0,
   "max_gradient_pct": 21.003086505631018,
   "diagnostic": false,
   "flags": [
    "structure_excluded",
    "canopy_or_structure"
   ],
   "start_distance_m": 4924.0,
   "end_distance_m": 4949.0,
   "start_elevation_m": 846.8176769300244,
   "end_elevation_m": 852.0684485564321,
   "min_gradient_pct": -26.289931716983574,
   "suppressed_max_gradient_pct": 27.68241118067681,
   "suppressed_location_m": [
    4976.0,
    5001.0
   ]
  },
  {
   "window_m": 50.0,
   "max_gradient_pct": 17.489500070008035,
   "diagnostic": false,
   "flags": [
    "structure_excluded",
    "no_bench_excluded_min",
    "canopy_or_structure"
   ],
   "start_distance_m": 4908.0,
   "end_distance_m": 4958.0,
   "start_elevation_m": 845.2619566457179,
   "end_elevation_m": 854.0067066807219,
   "min_gradient_pct": -13.287881447610971,
   "suppressed_max_gradient_pct": 20.853849175628966,
   "suppressed_location_m": [
    4975.0,
    5025.0
   ],
   "suppressed_min_gradient_pct": -15.448917829137372,
   "suppressed_min_location_m": [
    5651.0,
    5701.0
   ]
  },
  {
   "window_m": 100.0,
   "max_gradient_pct": 15.692437833438476,
   "diagnostic": false,
   "flags": [
    "structure_excluded",
    "no_bench_excluded_min",
    "canopy_or_structure"
   ],
   "start_distance_m": 4868.0,
   "end_distance_m": 4968.0,
   "start_elevation_m": 840.1907417282285,
   "end_elevation_m": 855.883179561667,
   "min_gradient_pct": -5.7302292817003035,
   "suppressed_max_gradient_pct": 17.316704062766803,
   "suppressed_location_m": [
    4924.0,
    5024.0
   ],
   "suppressed_min_gradient_pct": -8.27607678522702,
   "suppressed_min_location_m": [
    5518.0,
    5618.0
   ]
  }
 ],
 "shape": {
  "ascent_concentration": 0.364,
  "concentration_window_frac": 0.25,
  "longest_pitch_10pct_m": 52.0,
  "shape_class": "sustained"
 },
 "length_m": 7486.674803267063,
 "start_elevation_m": 781.3952823791425,
 "end_elevation_m": 914.6417563613526,
 "endpoint_gain_m": 133.2464739822101,
 "overall_gradient_pct": 1.7797817787419254,
 "accumulated_ascent_m": 418.8872239515721,
 "window_maxima": {
  "max_5m": {
   "gradient_pct": 38.193250028020884,
   "start_distance_m": 1979.0,
   "end_distance_m": 1984.0,
   "midpoint_distance_m": 1981.5,
   "start_elevation_m": 791.826149666418,
   "end_elevation_m": 793.7358121678191,
   "start_xy": [
    1908629.7956255064,
    5698511.26239885
   ],
   "end_xy": [
    1908631.7198385242,
    5698506.647487772
   ]
  },
  "max_10m": {
   "gradient_pct": 26.659301407756857,
   "start_distance_m": 4923.0,
   "end_distance_m": 4933.0,
   "midpoint_distance_m": 4928.0,
   "start_elevation_m": 846.6933970144629,
   "end_elevation_m": 849.3593271552386,
   "start_xy": [
    1910692.78243647,
    5696878.3744627405
   ],
   "end_xy": [
    1910698.7423504821,
    5696870.344554585
   ]
  },
  "max_20m": {
   "gradient_pct": 21.972497179608013,
   "start_distance_m": 4924.0,
   "end_distance_m": 4944.0,
   "midpoint_distance_m": 4934.0,
   "start_elevation_m": 846.8176769300244,
   "end_elevation_m": 851.212176365946,
   "start_xy": [
    1910693.3784278713,
    5696877.571471925
   ],
   "end_xy": [
    1910705.2982558955,
    5696861.511655616
   ]
  },
  "max_25m": {
   "gradient_pct": 21.003086505631018,
   "start_distance_m": 4924.0,
   "end_distance_m": 4949.0,
   "midpoint_distance_m": 4936.5,
   "start_elevation_m": 846.8176769300244,
   "end_elevation_m": 852.0684485564321,
   "start_xy": [
    1910693.3784278713,
    5696877.571471925
   ],
   "end_xy": [
    1910708.2782129014,
    5696857.496701539
   ]
  },
  "max_50m": {
   "gradient_pct": 17.489500070008035,
   "start_distance_m": 4908.0,
   "end_distance_m": 4958.0,
   "midpoint_distance_m": 4933.0,
   "start_elevation_m": 845.2619566457179,
   "end_elevation_m": 854.0067066807219,
   "start_xy": [
    1910683.842565452,
    5696890.419324972
   ],
   "end_xy": [
    1910713.6421355123,
    5696850.2697842
   ]
  },
  "max_100m": {
   "gradient_pct": 15.692437833438476,
   "start_distance_m": 4868.0,
   "end_distance_m": 4968.0,
   "midpoint_distance_m": 4918.0,
   "start_elevation_m": 840.1907417282285,
   "end_elevation_m": 855.883179561667,
   "start_xy": [
    1910660.0029094038,
    5696922.538957589
   ],
   "end_xy": [
    1910719.6020495244,
    5696842.239876045
   ]
  }
 },
 "window_minima": {
  "min_5m": {
   "gradient_pct": -43.00012136152873,
   "start_distance_m": 5691.0,
   "end_distance_m": 5696.0,
   "midpoint_distance_m": 5693.5,
   "start_elevation_m": 862.254703217997,
   "end_elevation_m": 860.1046971499205,
   "start_xy": [
    1911045.4781060196,
    5696230.6515201405
   ],
   "end_xy": [
    1911049.6488487802,
    5696227.89382095
   ]
  },
  "min_10m": {
   "gradient_pct": -40.75468934402579,
   "start_distance_m": 5686.0,
   "end_distance_m": 5696.0,
   "midpoint_distance_m": 5691.0,
   "start_elevation_m": 864.1801660843231,
   "end_elevation_m": 860.1046971499205,
   "start_xy": [
    1911041.3073632591,
    5696233.409219331
   ],
   "end_xy": [
    1911049.6488487802,
    5696227.89382095
   ]
  },
  "min_20m": {
   "gradient_pct": -28.452949218770414,
   "start_distance_m": 5676.0,
   "end_distance_m": 5696.0,
   "midpoint_distance_m": 5686.0,
   "start_elevation_m": 865.7952869936746,
   "end_elevation_m": 860.1046971499205,
   "start_xy": [
    1911032.965877738,
    5696238.924617712
   ],
   "end_xy": [
    1911049.6488487802,
    5696227.89382095
   ]
  },
  "min_25m": {
   "gradient_pct": -26.289931716983574,
   "start_distance_m": 5675.0,
   "end_distance_m": 5700.0,
   "midpoint_distance_m": 5687.5,
   "start_elevation_m": 866.0001966711135,
   "end_elevation_m": 859.4277137418676,
   "start_xy": [
    1911032.131729186,
    5696239.476157551
   ],
   "end_xy": [
    1911052.9854429886,
    5696225.6876615975
   ]
  },
  "min_50m": {
   "gradient_pct": -13.287881447610971,
   "start_distance_m": 5673.0,
   "end_distance_m": 5723.0,
   "midpoint_distance_m": 5698.0,
   "start_elevation_m": 865.9621843610141,
   "end_elevation_m": 859.3182436372086,
   "start_xy": [
    1911030.463432082,
    5696240.579237226
   ],
   "end_xy": [
    1911072.1708596868,
    5696213.002245321
   ]
  },
  "min_100m": {
   "gradient_pct": -5.7302292817003035,
   "start_distance_m": 2998.0,
   "end_distance_m": 3098.0,
   "midpoint_distance_m": 3048.0,
   "start_elevation_m": 814.203764916108,
   "end_elevation_m": 808.4735356344077,
   "start_xy": [
    1909320.517411483,
    5697787.001266478
   ],
   "end_xy": [
    1909396.1796814292,
    5697721.616093031
   ]
  }
 },
 "diagnostic_window_maxima": {
  "max_2m": {
   "gradient_pct": 53.32292885485117,
   "start_distance_m": 7031.0,
   "end_distance_m": 7033.0,
   "midpoint_distance_m": 7032.0,
   "start_elevation_m": 905.3871397464414,
   "end_elevation_m": 906.4535983235385,
   "start_xy": [
    1911694.5766021912,
    5695330.509514981
   ],
   "end_xy": [
    1911695.7980664165,
    5695328.92584041
   ]
  },
  "max_3m": {
   "gradient_pct": 46.93147963719563,
   "start_distance_m": 5165.0,
   "end_distance_m": 5168.0,
   "midpoint_distance_m": 5166.5,
   "start_elevation_m": 867.7603800711444,
   "end_elevation_m": 869.1683244602602,
   "start_xy": [
    1910803.5404834857,
    5696670.592668675
   ],
   "end_xy": [
    1910803.5733941684,
    5696667.5928492
   ]
  }
 },
 "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": {
  "structure_suppression": {
   "masked_fraction": 0.024,
   "windows_resited": [
    2.0,
    3.0,
    5.0,
    10.0,
    20.0,
    25.0,
    50.0,
    100.0
   ],
   "windows_unresolved": [],
   "minima_resited": [
    2.0,
    3.0,
    5.0
   ],
   "minima_unresolved": []
  },
  "no_bench_suppression": {
   "masked_fraction": 0.077,
   "windows_resited": [
    10.0
   ],
   "windows_unresolved": [],
   "minima_resited": [
    50.0,
    100.0
   ],
   "minima_unresolved": []
  },
  "texture_suppression": {
   "masked_fraction": 0.081,
   "windows_resited": [
    2.0,
    3.0,
    5.0,
    10.0
   ],
   "windows_unresolved": [],
   "minima_resited": [
    2.0,
    3.0
   ],
   "minima_unresolved": []
  },
  "texture_windows": {
   "rounds": 1,
   "windows_masked": [
    {
     "window_m": 10.0,
     "start_m": 2553.0,
     "end_m": 2563.0,
     "raw_pct": 27.18,
     "reason": "short-step"
    },
    {
     "window_m": 5.0,
     "start_m": 1919.0,
     "end_m": 1924.0,
     "raw_pct": 47.21,
     "reason": "short-step"
    }
   ],
   "advisory": [],
   "unresolved": [],
   "unstable": [
    {
     "window_m": 5.0,
     "start_m": 1979.0,
     "end_m": 1984.0,
     "raw_pct": 38.19,
     "reason": "mask-edge+short-step",
     "perturbations": [
      "phase+0.000/mask+0",
      "phase+0.333/mask+1",
      "phase+0.667/mask-1"
     ],
     "perturbation_reasons": [
      "",
      "short-step",
      "mask-edge+short-step"
     ]
    }
   ]
  },
  "overhead_obstruction": {
   "obstruction_threshold_m": 2.0,
   "obstructed_fraction": 0.691,
   "obstruction_max_height_m": 27.5,
   "flagged_windows_m": [
    2,
    3,
    5,
    10,
    20,
    25,
    50,
    100
   ]
  },
  "excluded_ranges_m": [
   [
    64.0,
    69.0
   ],
   [
    810.0,
    816.0
   ],
   [
    1018.0,
    1024.0
   ],
   [
    1215.0,
    1220.0
   ],
   [
    1258.0,
    1268.0
   ],
   [
    1820.0,
    1862.0
   ],
   [
    1917.0,
    1926.0
   ],
   [
    1972.0,
    1978.0
   ],
   [
    2188.0,
    2199.0
   ],
   [
    2206.0,
    2215.0
   ],
   [
    2230.0,
    2260.0
   ],
   [
    2266.0,
    2277.0
   ],
   [
    2285.0,
    2290.0
   ],
   [
    2343.0,
    2348.0
   ],
   [
    2551.0,
    2565.0
   ],
   [
    4157.0,
    4163.0
   ],
   [
    4586.0,
    4591.0
   ],
   [
    4607.0,
    4618.0
   ],
   [
    4628.0,
    4634.0
   ],
   [
    4645.0,
    4654.0
   ],
   [
    4970.0,
    4975.0
   ],
   [
    4977.0,
    4983.0
   ],
   [
    5387.0,
    5392.0
   ],
   [
    5550.0,
    5580.0
   ],
   [
    5620.0,
    5660.0
   ],
   [
    5740.0,
    5830.0
   ],
   [
    6130.0,
    6160.0
   ],
   [
    6356.0,
    6362.0
   ],
   [
    6367.0,
    6372.0
   ],
   [
    6490.0,
    6530.0
   ],
   [
    6640.0,
    6670.0
   ],
   [
    6800.0,
    6830.0
   ],
   [
    7024.0,
    7030.0
   ],
   [
    7155.0,
    7160.0
   ],
   [
    7290.0,
    7320.0
   ]
  ],
  "review": [
   "short_window_divergence"
  ],
  "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-n5",
   "road_pbf": "block-batch-nz-n5.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:5991b43afbe40ae2"
  },
  "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/BG38.tiff"
  ],
  "calculated_at": "2026-09-28T05:41:59+00:00",
  "road_source": "OpenStreetMap (local PBF extract)",
  "road_attribution": "\u00a9 OpenStreetMap contributors, ODbL",
  "osm_pbf_path": "data/cache/pbf/block-batch-nz-n5.osm.pbf",
  "osm_snapshot": "",
  "run_id": "nz-n5",
  "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": [
   "BG38"
  ],
  "climb_origin": "discovered",
  "seam_filled_samples": {
   "count": 0,
   "distances_m": []
  },
  "seam_filled_in_maximum": false,
  "structure_own_ways": 1,
  "suppression_unstable": [
   5.0
  ],
  "carriageway": {
   "stations": 306,
   "stations_resolved": 306,
   "width_median_m": 3.75,
   "width_p10_m": 2.25,
   "width_min_m": 1.0,
   "width_max_m": 12.0,
   "bounded_share": 0.31,
   "unbounded_share": 0.69,
   "confidence_median": 0.0,
   "width_median_bounded_m": 3.0,
   "window_m": [
    4924.0,
    4949.0
   ],
   "width_at_max25_m": 2.25,
   "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": 306,
    "stations_resolved": 306,
    "width_median_m": 1.88,
    "width_p10_m": 0.75,
    "width_min_m": 0.5,
    "width_max_m": 12.0,
    "bounded_share": 0.922,
    "unbounded_share": 0.078,
    "confidence_median": 1.0,
    "width_median_bounded_m": 1.62,
    "window_m": [
     4924.0,
     4949.0
    ],
    "width_at_max25_m": 1.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": "Bay of Plenty",
  "county": "Bay of Plenty",
  "source": "OpenStreetMap administrative boundaries (\u00a9 OpenStreetMap contributors, ODbL)"
 }
}