{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "scribe-template-calculator",
  "category": "materials-quantities",
  "title": "Scribe Template Calculator (Fit a Worktop, Shelf or Panel to an Uneven Wall)",
  "description": "Turn the gaps measured along a wall into a scribe line: the widest offset, the board to allow, the strip to cut off, and a full-size template to print.",
  "url": "https://craftquantities.com/calculators/materials-quantities/scribe-template-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/scribe-template-calculator.json",
  "inputCount": 6,
  "testCaseCount": 4,
  "sourceCount": 2,
  "lastVerified": "2026-10-25",
  "citation": {
    "author": "Craft Quantities",
    "title": "Scribe Template Calculator (Fit a Worktop, Shelf or Panel to an Uneven Wall)",
    "version": "1.0.0",
    "sourcesChecked": "2026-10-25",
    "url": "https://craftquantities.com/calculators/materials-quantities/scribe-template-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Scribe Template Calculator (Fit a Worktop, Shelf or Panel to an Uneven Wall). Version 1.0.0. Sources checked 2026-10-25. https://craftquantities.com/calculators/materials-quantities/scribe-template-calculator/",
      "apa": "Craft Quantities. (2026). Scribe Template Calculator (Fit a Worktop, Shelf or Panel to an Uneven Wall) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/scribe-template-calculator/",
      "harvard": "Craft Quantities (2026) Scribe Template Calculator (Fit a Worktop, Shelf or Panel to an Uneven Wall) (Version 1.0.0). Available at: https://craftquantities.com/calculators/materials-quantities/scribe-template-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-scribe-template-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Scribe Template Calculator (Fit a Worktop, Shelf or Panel to an Uneven Wall)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/scribe-template-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "edgeLength",
      "label": "Length of the Reference Line",
      "type": "number",
      "dimension": "length",
      "defaultValue": 1.2,
      "min": 0.2,
      "max": 10,
      "step": 0.1,
      "help": "How far the readings run along the wall, from the first station to the last."
    },
    {
      "id": "stationSpacing",
      "label": "Spacing Between Readings",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.1,
      "min": 0.02,
      "max": 1,
      "step": 0.01,
      "help": "How far apart the stations are along the line."
    },
    {
      "id": "wallShape",
      "label": "Shape of the Wall",
      "type": "select",
      "defaultValue": "hollow",
      "options": [
        {
          "value": "hollow",
          "label": "Hollow in the middle (wall furthest from the line mid-way)"
        },
        {
          "value": "bulge",
          "label": "Belly in the middle (wall closest mid-way, falling away at the ends)"
        },
        {
          "value": "s-curve",
          "label": "S-curve (one hollow and one belly)"
        },
        {
          "value": "taper",
          "label": "Out of line (offset grows evenly from one end)"
        }
      ],
      "help": "A starting wall to draw: the panel below takes your own readings."
    },
    {
      "id": "wallDepth",
      "label": "Variation Across the Wall",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.012,
      "min": 0,
      "max": 0.3,
      "step": 0.001,
      "help": "How far the wall's offset changes between its closest and furthest station."
    },
    {
      "id": "closestGap",
      "label": "Offset at the Closest Station",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.002,
      "min": 0,
      "max": 0.2,
      "step": 0.001,
      "help": "The smallest reading, where the wall comes nearest the reference line."
    },
    {
      "id": "allowance",
      "label": "Extra Board Beyond the Widest Offset",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0.01,
      "min": 0,
      "max": 0.1,
      "step": 0.001,
      "help": "How much more board you leave past the widest reading, to be cut off."
    }
  ],
  "sources": [
    {
      "label": "Monotone piecewise cubic interpolation: Fritsch and Carlson, SIAM Journal on Numerical Analysis 17(2), 1980, 238-246; end slopes after Fritsch and Butland, SIAM Journal on Scientific and Statistical Computing 5(2), 1984"
    },
    {
      "label": "Area under a measured profile by the trapezoid rule, offsets sampled every millimetre along the monotone curve; the strip is the oversize edge's rectangle less that area"
    }
  ],
  "testCases": [
    {
      "name": "Opening: a hollow, 1.2 m long, readings every 0.1 m",
      "inputs": {
        "edgeLength": 1.2,
        "stationSpacing": 0.1,
        "wallShape": "hollow",
        "wallDepth": 0.012,
        "closestGap": 0.002,
        "allowance": 0.01
      },
      "expected": 0.014,
      "toleranceDecimalPlaces": 5,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Smallest offset",
          "value": 0.002,
          "unit": "m"
        },
        {
          "label": "Average offset",
          "value": 0.009640356000457817,
          "unit": "m"
        },
        {
          "label": "Board to allow beyond the line",
          "value": 0.024,
          "unit": "m"
        },
        {
          "label": "Strip to cut off",
          "value": 0.01723157279945062,
          "unit": "m²"
        },
        {
          "label": "Length of the scribe line",
          "value": 1.2002961193715709,
          "unit": "m"
        },
        {
          "label": "Readings",
          "value": 13,
          "unit": "stations"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "A belly: closest mid-way, so the widest readings are at the two ends",
      "inputs": {
        "edgeLength": 1.2,
        "stationSpacing": 0.1,
        "wallShape": "bulge",
        "wallDepth": 0.012,
        "closestGap": 0.002,
        "allowance": 0.01
      },
      "expected": 0.014,
      "toleranceDecimalPlaces": 5,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Smallest offset",
          "value": 0.002,
          "unit": "m"
        },
        {
          "label": "Average offset",
          "value": 0.00635964399954217,
          "unit": "m"
        },
        {
          "label": "Board to allow beyond the line",
          "value": 0.024,
          "unit": "m"
        },
        {
          "label": "Strip to cut off",
          "value": 0.021168427200549397,
          "unit": "m²"
        },
        {
          "label": "Length of the scribe line",
          "value": 1.2002961193715709,
          "unit": "m"
        },
        {
          "label": "Readings",
          "value": 13,
          "unit": "stations"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "A wall out of line: three readings over 1 m",
      "inputs": {
        "edgeLength": 1,
        "stationSpacing": 0.5,
        "wallShape": "taper",
        "wallDepth": 0.01,
        "closestGap": 0.002,
        "allowance": 0.01
      },
      "expected": 0.012,
      "toleranceDecimalPlaces": 5,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Smallest offset",
          "value": 0.002,
          "unit": "m"
        },
        {
          "label": "Average offset",
          "value": 0.007,
          "unit": "m"
        },
        {
          "label": "Board to allow beyond the line",
          "value": 0.022,
          "unit": "m"
        },
        {
          "label": "Strip to cut off",
          "value": 0.015,
          "unit": "m²"
        },
        {
          "label": "Length of the scribe line",
          "value": 1.0000499987500857,
          "unit": "m"
        },
        {
          "label": "Readings",
          "value": 3,
          "unit": "stations"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "An S-curve: the crest is a quarter of the way along",
      "inputs": {
        "edgeLength": 2.4,
        "stationSpacing": 0.2,
        "wallShape": "s-curve",
        "wallDepth": 0.02,
        "closestGap": 0,
        "allowance": 0.005
      },
      "expected": 0.02,
      "toleranceDecimalPlaces": 5,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Smallest offset",
          "value": 0,
          "unit": "m"
        },
        {
          "label": "Average offset",
          "value": 0.009999999999999995,
          "unit": "m"
        },
        {
          "label": "Board to allow beyond the line",
          "value": 0.025,
          "unit": "m"
        },
        {
          "label": "Strip to cut off",
          "value": 0.03600000000000001,
          "unit": "m²"
        },
        {
          "label": "Length of the scribe line",
          "value": 2.4004115193855835,
          "unit": "m"
        },
        {
          "label": "Readings",
          "value": 13,
          "unit": "stations"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    }
  ]
}
