Description
Return a grain-class index under supplied boundaries.
Aquatic sampling expands observed counts using supplied area, filtered volume or processed fractions. Net efficiency, slip and grain-class boundaries affect that accounting. A scaled count or one-point class assignment does not establish true population abundance, detection probability or a universal substrate classification.
Return a grain-class index under supplied boundaries.
When to use this tool
Use Stream Substrate Grain Class Boundary when checking the stated aquatic sampling-volume, density or class-boundary convention.
How to use the tool and how it works
- Enter diameter, boundaries, labels. 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 index, label. Use the output convention below.
Return a grain-class index under supplied boundaries. Require diameter >= 0, strictly increasing nonnegative boundaries and one extra label; choose first boundary strictly above diameter, otherwise final class.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| diameter | Diameter | Required. Finite number. |
| boundaries | Strictly increasing caller-chosen class boundaries; equality belongs to the higher class. | Required. Array of finite number; maximum items 256. |
| labels | Labels | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| index | Index | Required. Safe integer. |
| label | Label | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"diameter": 2,
"boundaries": [
1,
2,
4
],
"labels": [
"a",
"b",
"c",
"d"
]
},
"output": {
"index": 2,
"label": "c"
}
} Limitations and assumptions
- Equality belongs to the higher class; the classification scheme is supplied rather than a universal sediment standard.
- 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 field methods, calibrated sampling efficiency and an appropriate statistical or classification scheme for abundance and ecological assessment.
References
Similar or alternative tools
- Fish Grade Threshold Tie Rule
Select a grade side under an equality policy.
- Feed Pellet Size Sieve Gap
Check pellet diameter against a supplied sieve band.