{"id": "v001", "input": {"elevations": [{"row": "105.35, 105.3, 105.85"}, {"row": "103.1, 103.0, 103.5"}, {"row": "100.45, 100.3, 100.75"}], "cell_size": "10 m"}, "expect": {"ok": true, "result.curvature": -0.2, "result.profile": 0.3856915739268681, "result.plan": -0.5856915739268681}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): a slope steepening into a hollow, 10 m cells", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v002", "input": {"elevations": [{"row": "482.0, 491.0, 482.0"}, {"row": "491.0, 500.0, 491.0"}, {"row": "482.0, 491.0, 482.0"}], "cell_size": "30 m"}, "expect": {"ok": true, "result.curvature": 4.0, "meta.warnings.*.code": "FLAT_CELL"}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): a rounded summit, flat at the center", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v003", "input": {"elevations": [{"row": "50.2, 50.1, 50.2"}, {"row": "50.1, 50.0, 50.1"}, {"row": "50.2, 50.1, 50.2"}], "cell_size": "5 m"}, "expect": {"ok": true, "result.curvature": -1.6, "meta.warnings.*.code": "FLAT_CELL"}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): the bottom of a bowl", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v004", "input": {"elevations": [{"row": "195.5, 198.5, 201.5"}, {"row": "197.0, 200.0, 203.0"}, {"row": "198.5, 201.5, 204.5"}], "cell_size": "30 m"}, "expect": {"ok": true, "result.curvature": 0.0, "result.profile": -0.0, "result.plan": -0.0}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): a plane: no curvature", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v005", "input": {"elevations": [{"row": "80.0, 79.8, 80.0"}, {"row": "80.2, 80.0, 80.2"}, {"row": "80.0, 79.8, 80.0"}], "cell_size": "10 m"}, "expect": {"ok": true, "result.curvature": -0.0, "meta.warnings.*.code": "FLAT_CELL"}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): a saddle at its center", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v006", "input": {"elevations": [{"row": "146.7, 146.7, 146.7"}, {"row": "150.0, 150.0, 150.0"}, {"row": "152.7, 152.7, 152.7"}], "cell_size": "10 m"}, "expect": {"ok": true, "result.curvature": 0.6, "result.profile": 0.6, "result.plan": -0.0}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): a slope to the north rounding over a shoulder", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v007", "input": {"elevations": [{"row": "146.7, 147.0, 146.7"}, {"row": "149.7, 150.0, 149.7"}, {"row": "152.7, 153.0, 152.7"}], "cell_size": "10 m"}, "expect": {"ok": true, "result.curvature": 0.6, "result.profile": -0.0, "result.plan": 0.6}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): a spur running north: contours bow outward", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v008", "input": {"elevations": [{"row": "147.3, 147.0, 147.3"}, {"row": "150.3, 150.0, 150.3"}, {"row": "153.3, 153.0, 153.3"}], "cell_size": "10 m"}, "expect": {"ok": true, "result.curvature": -0.6, "result.profile": -0.0, "result.plan": -0.6}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): a hollow running north: contours curl inward", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v009", "input": {"elevations": [{"row": "319.1, 321.1, 323.1"}, {"row": "319.6, 321.0, 322.6"}, {"row": "318.9, 320.1, 322.1"}], "cell_size": "10 m"}, "expect": {"ok": true, "result.curvature": 0.6, "result.profile": -0.21999999999999997, "result.plan": 0.8199999999999998}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): the quartic terms change the grid but not the center derivatives", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v010", "input": {"elevations": [{"row": "922.0917302697223, 922.8041367086245, 923.5419761447213"}, {"row": "922.760152975049, 923.4468181449809, 924.1598552000321"}, {"row": "923.4358796126074, 924.0952558873431, 924.7823750873889"}], "cell_size": "2.0 m"}, "expect": {"ok": true, "result.curvature": -0.8032047781300369, "result.profile": 0.22396547552059137, "result.plan": -1.0271702536506282}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 1", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v011", "input": {"elevations": [{"row": "932.4314016976449, 935.5490558797503, 938.5380949991354"}, {"row": "930.2918733926819, 933.3188892016855, 936.2332289519074"}, {"row": "928.0953784437095, 931.0613707481352, 933.9186573382362"}], "cell_size": "5.0 m"}, "expect": {"ok": true, "result.curvature": 0.5601113370673628, "result.profile": 0.05410976685814088, "result.plan": 0.506001570209222}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 2", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v012", "input": {"elevations": [{"row": "378.1801295001952, 378.3217899739848, 378.4258662763035"}, {"row": "378.4880997430904, 378.64207458734444, 378.75948598962987"}, {"row": "378.8207767333425, 378.98718000023183, 379.117977411787"}], "cell_size": "2.0 m"}, "expect": {"ok": true, "result.curvature": 0.29356606102202004, "result.profile": -0.6266023957017783, "result.plan": 0.9201684567237985}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 3", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v013", "input": {"elevations": [{"row": "1576.2814173863853, 1576.4453891806681, 1577.0129830393737"}, {"row": "1574.2583821458095, 1574.5917828833292, 1575.1017277382966"}, {"row": "1572.8492506785497, 1573.3828718785517, 1574.1240901397018"}], "cell_size": "10.0 m"}, "expect": {"ok": true, "result.curvature": -0.8212394100090052, "result.profile": -0.5421668449099298, "result.plan": -0.2790725650990754}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 4", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v014", "input": {"elevations": [{"row": "1021.005014901388, 1025.6474956223835, 1029.8167920552692"}, {"row": "1027.0072704526237, 1030.9442573562712, 1034.5955739946533"}, {"row": "1033.7484544373003, 1036.9370827130504, 1039.7250361765418"}], "cell_size": "10.0 m"}, "expect": {"ok": true, "result.curvature": -0.4103933576258122, "result.profile": 0.2657674510369481, "result.plan": -0.6761608086627602}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 5", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v015", "input": {"elevations": [{"row": "1617.0079079812754, 1618.4391246924845, 1620.0976407092226"}, {"row": "1619.6878137768497, 1621.2238421006718, 1622.979969997944"}, {"row": "1622.753460640656, 1624.3696774393834, 1626.2063395762057"}], "cell_size": "5.0 m"}, "expect": {"ok": true, "result.curvature": -2.324870015896529, "result.profile": -1.6197989703669642, "result.plan": -0.7050710455295649}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 6", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v016", "input": {"elevations": [{"row": "1160.4799103444686, 1144.3765775217353, 1148.3637283978549"}, {"row": "1177.6572550957071, 1155.1680922270978, 1150.2154183643584"}, {"row": "1207.1516266964554, 1170.2861475424581, 1159.9755895409653"}], "cell_size": "30.0 m"}, "expect": {"ok": true, "result.curvature": -2.4292255128742037, "result.profile": -2.229012386073126, "result.plan": -0.20021312680107767}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 7", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v017", "input": {"elevations": [{"row": "459.2923939925579, 460.3994236101334, 461.57036819523495"}, {"row": "459.60392160988056, 460.72592313993675, 461.9130269062256"}, {"row": "459.95189131322695, 461.08947097418076, 462.2939187813966"}], "cell_size": "2.0 m"}, "expect": {"ok": true, "result.curvature": -2.553763516831543, "result.profile": -1.789710736181905, "result.plan": -0.7640527806496383}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 8", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v018", "input": {"elevations": [{"row": "1713.394583435056, 1714.310709497294, 1716.1137472139908"}, {"row": "1718.4500979137465, 1718.9470637958225, 1720.2405170427692"}, {"row": "1722.1161745875952, 1722.121012682334, 1722.9674894123089"}], "cell_size": "10.0 m"}, "expect": {"ok": true, "result.curvature": 0.6659180471464963, "result.profile": 1.553029140892599, "result.plan": -0.8871110937461026}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 9", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v019", "input": {"elevations": [{"row": "884.073366749946, 885.697049061883, 887.7808997966729"}, {"row": "884.9499408032195, 886.4241179546783, 888.3442702455094"}, {"row": "886.0003933003508, 887.298719838627, 889.0376832837867"}], "cell_size": "5.0 m"}, "expect": {"ok": true, "result.curvature": -2.374032522103047, "result.profile": -1.0491629265386009, "result.plan": -1.3248695955644463}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 10", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v020", "input": {"elevations": [{"row": "255.55642059857584, 250.84589603430356, 246.14890981941224"}, {"row": "258.9346948833038, 254.207204178865, 249.5732958101512"}, {"row": "260.2912137739091, 255.57531025864557, 250.78380342869897"}], "cell_size": "10.0 m"}, "expect": {"ok": true, "result.curvature": 1.8996197290559256, "result.profile": 0.3106277404352131, "result.plan": 1.5889919886207124}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): random surface 11", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v021", "input": {"elevations": [{"row": "885.4612174713694, 888.1964890870087, 898.5811613387427"}, {"row": "900.1140506249383, 900.0, 907.5353500111565"}, {"row": "903.4458925993683, 900.4825197338524, 905.1685475044314"}], "cell_degrees": 0.0002777777777777778, "lat": "0.0 deg"}, "expect": {"ok": true, "result.curvature": 0.4, "result.profile": 0.9352941176470589, "result.plan": -0.5352941176470588}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): one arc second at 0\u00b0 latitude, cells 30.922 m by 30.715 m", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v022", "input": {"elevations": [{"row": "885.370507918882, 888.1082938699375, 894.6836251323122"}, {"row": "899.2905448191937, 900.0, 904.5470004921254"}, {"row": "901.775144727622, 900.4562691381792, 902.9749388600557"}], "cell_degrees": 0.0002777777777777778, "lat": "45.0 deg"}, "expect": {"ok": true, "result.curvature": 0.4, "result.profile": 0.9352941176470589, "result.plan": -0.5352941176470588}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): one arc second at 45\u00b0 latitude, cells 21.902 m by 30.870 m", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v023", "input": {"elevations": [{"row": "885.7257337058329, 888.0638091243017, 892.3238846510939"}, {"row": "899.1010000017471, 900.0, 902.8210001065762"}, {"row": "900.9830275971291, 900.442952175166, 901.8248768615264"}], "cell_degrees": 0.0002777777777777778, "lat": "60.0 deg"}, "expect": {"ok": true, "result.curvature": 0.4, "result.profile": 0.9352941176470589, "result.plan": -0.5352941176470588}, "source": "Analytic derivatives of a partial quartic sampled on the window (tools/vectors/gen_curvature.py): one arc second at 60\u00b0 latitude, cells 15.500 m by 30.948 m", "sourceVersion": "2026", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
{"id": "v024", "input": {"elevations": [{"row": "1.0, 2.0, 4.0"}, {"row": "1.0, 2.0, 4.0"}, {"row": "1.0, 2.0, 4.0"}], "cell_size": "1 m"}, "expect": {"ok": true, "result.curvature": -100.0, "result.profile": -100.0, "result.plan": -0.0}, "source": "xDEM 0.2.3 xdem/terrain/terrain.py profile_curvature and tangential_curvature examples", "sourceVersion": "xDEM 0.2.3 (2026-03-03)", "tolerance": {"result.curvature": {"rel": 1e-09, "abs": 1e-09}, "result.profile": {"rel": 1e-09, "abs": 1e-09}, "result.plan": {"rel": 1e-09, "abs": 1e-09}}}
