Description
Count floor((rowLength-2*allowance)/spacing)+1 endpoint-inclusive positions; replant gap is max(0,target-surviving).
Agroforestry geometry separates row widths, root-zone intervals, canopy projections and repeated-strip area bases. Optical shade, optical porosity and a clear machinery corridor are different quantities. Ideal dimensions and supplied overlaps can support bookkeeping without establishing light conditions, aerodynamic shelter or safe access.
Count floor((rowLength-2*allowance)/spacing)+1 endpoint-inclusive positions; replant gap is max(0,target-surviving).
When to use this tool
Use Agroforestry Space Row Replant Budget when checking the stated ideal tree-row, shade, buffer or area convention.
How to use the tool and how it works
- Enter rowLength, spacing, edgeAllowance, surviving. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read targetCount, replantGap. Use the output convention below.
Require spacing>0, whole surviving>=0 and rowLength>=2*edgeAllowance>=0. Count floor((rowLength-2*allowance)/spacing)+1 endpoint-inclusive positions; replant gap is max(0,target-surviving).1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| rowLength | Row Length | Required. Finite number. |
| spacing | Spacing | Required. Finite number; strictly above 0. |
| edgeAllowance | Edge Allowance | Required. Finite number; minimum 0. |
| surviving | Surviving | Required. Safe integer; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| targetCount | Endpoint-inclusive nominal count; zero usable row length still counts one position. | Required. Safe integer. |
| replantGap | Replant Gap | Required. Safe integer. |
{
"input": {
"rowLength": 100,
"spacing": 10,
"edgeAllowance": 5,
"surviving": 7
},
"output": {
"targetCount": 10,
"replantGap": 3
}
} Limitations and assumptions
- A zero-length usable segment still counts one nominal position; this does not select spacing or assess planting suitability.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use measured terrain and canopy geometry, appropriate light/flow models and qualified agricultural/engineering assessment for actual layouts and operations.
References
Similar or alternative tools
- Tree Buffer Row End Credit
Return excluded=start+end-credit and plantable=row-excluded.
- Tree Row Contour Length Slopefactor
Return horizontalLength*hypot(1,grade), requiring nonnegative horizontal length.