{"id":"v001","input":{"elevations":[{"row":"250.0, 252.5, 255.1"},{"row":"248.2, 251.0, 254.9"},{"row":"246.0, 249.3, 253.3"}],"cell_size":"10 m"},"expect":{"ok":true,"result.slope.value":19.633284438913535,"result.slope_percent":35.67386998911112},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v002","input":{"elevations":[{"row":"500.0, 498.0, 495.0"},{"row":"503.0, 500.0, 497.0"},{"row":"507.0, 504.0, 500.0"}],"cell_size":"10 m"},"expect":{"ok":true,"result.slope.value":22.989767773608854,"result.slope_percent":42.42640687119285},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v003","input":{"elevations":[{"row":"10.0, 12.0, 11.0"},{"row":"9.0, 13.0, 14.0"},{"row":"8.5, 11.5, 12.5"}],"cell_size":"5 m"},"expect":{"ok":true,"result.slope.value":20.597847294514036,"result.slope_percent":37.583240945932275},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v004","input":{"elevations":[{"row":"1210.4, 1225.9, 1218.2"},{"row":"1204.7, 1220.0, 1231.6"},{"row":"1199.3, 1212.8, 1226.1"}],"cell_size":"30 m"},"expect":{"ok":true,"result.slope.value":21.214702128270694,"result.slope_percent":38.81696722368246},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v005","input":{"elevations":[{"row":"842.0, 845.5, 841.2"},{"row":"846.1, 851.3, 847.0"},{"row":"840.4, 844.8, 839.9"}],"cell_size":"30 m"},"expect":{"ok":true,"result.slope.value":1.0333539211482112,"result.slope_percent":1.8037384018260005},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v006","input":{"elevations":[{"row":"75.0, 75.0, 75.0"},{"row":"75.0, 75.0, 75.0"},{"row":"75.0, 75.0, 75.0"}],"cell_size":"30 m"},"expect":{"ok":true,"result.slope.value":0.0,"result.slope_percent":0.0},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v007","input":{"elevations":[{"row":"12.0, 14.0, 16.0"},{"row":"10.0, 12.0, 14.0"},{"row":"8.0, 10.0, 12.0"}],"cell_size":"1 m"},"expect":{"ok":true,"result.slope.value":70.52877936550931,"result.slope_percent":282.842712474619},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v008","input":{"elevations":[{"row":"979.11, 979.11, 979.11"},{"row":"979.11, 979.11, 979.11"},{"row":"979.11, 979.11, 979.1"}],"cell_size":"1 m"},"expect":{"ok":true,"result.slope.value":0.1012854800642648,"result.slope_percent":0.17677669530049553},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v009","input":{"elevations":[{"row":"502.45, 502.51, 502.52"},{"row":"502.44, 502.48, 502.5"},{"row":"502.42, 502.44, 502.5"}],"cell_size":"5 m"},"expect":{"ok":true,"result.slope.value":0.4728964221560506,"result.slope_percent":0.8253787009610002},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v010","input":{"elevations":[{"row":"1381.98, 1391.53, 1395.01"},{"row":"1385.05, 1390.74, 1397.16"},{"row":"1381.87, 1388.96, 1392.76"}],"cell_size":"5 m"},"expect":{"ok":true,"result.slope.value":50.613807788464314,"result.slope_percent":121.80182675149086},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v011","input":{"elevations":[{"row":"700.23, 700.31, 700.39"},{"row":"700.19, 700.29, 700.34"},{"row":"700.18, 700.25, 700.31"}],"cell_size":"10 m"},"expect":{"ok":true,"result.slope.value":0.45891561017470905,"result.slope_percent":0.8009759671802072},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v012","input":{"elevations":[{"row":"1800.5, 1773.86, 1758.73"},{"row":"1777.49, 1757.76, 1766.29"},{"row":"1761.29, 1762.23, 1736.25"}],"cell_size":"30 m"},"expect":{"ok":true,"result.slope.value":27.170400179595394,"result.slope_percent":51.32773001074102},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v013","input":{"elevations":[{"row":"912.5, 908.84, 902.93"},{"row":"910.05, 903.95, 897.33"},{"row":"904.25, 899.04, 896.52"}],"cell_size":"10 m"},"expect":{"ok":true,"result.slope.value":34.39964295836102,"result.slope_percent":68.470513726713},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v014","input":{"elevations":[{"row":"2726.87, 2731.76, 2733.98"},{"row":"2738.87, 2740.59, 2742.04"},{"row":"2744.39, 2747.95, 2749.37"}],"cell_size":"10 m"},"expect":{"ok":true,"result.slope.value":40.29850770328667,"result.slope_percent":84.80168962054839},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v015","input":{"elevations":[{"row":"2870.07, 2870.11, 2870.14"},{"row":"2870.11, 2870.13, 2870.17"},{"row":"2870.15, 2870.18, 2870.19"}],"cell_size":"5 m"},"expect":{"ok":true,"result.slope.value":0.5080325981522853,"result.slope_percent":0.886707392548533},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v016","input":{"elevations":[{"row":"2897.94, 2898.74, 2900.07"},{"row":"2900.69, 2902.46, 2902.1"},{"row":"2903.41, 2905.31, 2905.61"}],"cell_size":"10 m"},"expect":{"ok":true,"result.slope.value":17.475439787171144,"result.slope_percent":31.482758178088606},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v017","input":{"elevations":[{"row":"1402.2, 1323.95, 1302.25"},{"row":"1449.7, 1405.36, 1370.75"},{"row":"1533.85, 1471.66, 1420.39"}],"cell_size":"30 m"},"expect":{"ok":true,"result.slope.value":70.00685418628665,"result.slope_percent":274.850041247243},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v018","input":{"elevations":[{"row":"1168.75, 1162.29, 1150.41"},{"row":"1154.88, 1147.16, 1134.57"},{"row":"1144.36, 1137.66, 1124.76"}],"cell_size":"5 m"},"expect":{"ok":true,"result.slope.value":72.46813156391015,"result.slope_percent":316.5454509229261},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v019","input":{"elevations":[{"row":"1142.22, 1141.63, 1139.77"},{"row":"1140.83, 1140.47, 1139.73"},{"row":"1139.38, 1137.94, 1136.68"}],"cell_size":"10 m"},"expect":{"ok":true,"result.slope.value":10.761118106952793,"result.slope_percent":19.005698158709855},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v020","input":{"elevations":[{"row":"1677.48, 1550.85, 1506.1"},{"row":"1714.45, 1591.42, 1429.73"},{"row":"1600.81, 1444.85, 1385.02"}],"cell_size":"90 m"},"expect":{"ok":true,"result.slope.value":55.322159491117176,"result.slope_percent":144.53774728305584},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v021","input":{"elevations":[{"row":"2841.01, 2835.79, 2830.7"},{"row":"2836.11, 2830.79, 2823.65"},{"row":"2825.59, 2822.49, 2817.84"}],"cell_size":"90 m"},"expect":{"ok":true,"result.slope.value":5.529888626358759,"result.slope_percent":9.68155661968923},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v022","input":{"elevations":[{"row":"2262.51, 2261.59, 2259.59"},{"row":"2261.34, 2259.33, 2257.62"},{"row":"2259.59, 2258.17, 2256.87"}],"cell_size":"5 m"},"expect":{"ok":true,"result.slope.value":24.321336841739342,"result.slope_percent":45.19657066637029},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v023","input":{"elevations":[{"row":"2721.33, 2671.19, 2712.76"},{"row":"2558.63, 2540.8, 2516.42"},{"row":"2357.48, 2435.66, 2426.32"}],"cell_size":"90 m"},"expect":{"ok":true,"result.slope.value":57.302200815824264,"result.slope_percent":155.7791699419686},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v024","input":{"elevations":[{"row":"1211.65, 1178.0, 1145.47"},{"row":"1279.1, 1246.19, 1163.13"},{"row":"1334.73, 1309.08, 1258.56"}],"cell_size":"90 m"},"expect":{"ok":true,"result.slope.value":40.87974363237662,"result.slope_percent":86.56085432094342},"source":"Horn's formulas and the TRI and TPI definitions in Python, each window checked against gdaldem 3.13.3 (tools/vectors/gen_terrain_views.py)","sourceVersion":"2026-10-14","tolerance":{"result.slope.value":{"abs":1e-09},"result.slope_percent":{"abs":1e-09}}}
{"id":"v025","input":{"elevations":[{"row":"1, 2, 3"},{"row":"4, 5, 6"}],"cell_size":"10 m"},"expect":{"ok":false,"error.code":"INVALID_INPUT","error.field":"/elevations"},"source":"add-spatial-indexing-and-raster scenarios","sourceVersion":"2026","tolerance":{}}
