Description
Sum legume durations and divide by all durations; if total is zero return share=0 and defined=false.
Ecological observation summaries depend on sampling effort, eligible time, classified counts and missingness policies. Flower-minutes, area-days and observed proportions have different denominators. Observation support is distinct from true abundance, detection probability or a causal biological-control effect.
Sum legume durations and divide by all durations; if total is zero return share=0 and defined=false.
When to use this tool
Use Rotation Legume Duration Share when checking the stated observation support, exposure, sample or seasonal-gap convention.
How to use the tool and how it works
- Enter durations, legume. Follow any array-alignment requirements below. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read legumeDuration, share, defined. Inspect defined before interpreting the associated values.
Require aligned nonnegative durations and legume flags. Sum legume durations and divide by all durations; if total is zero return share=0 and defined=false.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| durations | Durations | Required. Array of finite number; minimum 0; maximum items 256. |
| legume | Legume | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| legumeDuration | Legume Duration | Required. Finite number. |
| share | Dimensionless share using the operation-specific denominator stated above; not a percentage number. | Required. Finite number. |
| defined | Whether the corresponding reporting denominator/value is defined; inspect before interpreting zero placeholders. | Required. Boolean. |
{
"input": {
"durations": [
2,
4
],
"legume": [
true,
false
]
},
"output": {
"legumeDuration": 2,
"share": 0.3333333333333333,
"defined": true
}
} Limitations and assumptions
- Intervals are added as supplied, without merging overlap or verifying crop identity or ecological benefit.
- 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 verified representative field records and suitable sampling/detection analysis for ecological inference, uncertainty and management.
References
Similar or alternative tools
- Residue Cover Line Intercept One Hit
Return their sum and sum/transectLength.
- Pollinator Valid Window Share
Eligible duration requires flowering and valid weather; observed eligible duration requires all three.