Skip to content

Main content

Harvest Grade Count Residual Tool

Calculate harvest grade count residual from explicit caller-supplied inputs.

Loading tool…

Description

Return exact graded and unassigned harvest counts.

Aquaculture estimates expand supplied samples, classify explicit counts and compare measurements with caller-chosen references. A zero placeholder or split count is a reporting result rather than evidence of absence or a biological diagnosis. Sampling representativeness and actual animal conditions require separate assessment.

Return exact graded and unassigned harvest counts.

When to use this tool

Use Harvest Grade Count Residual when checking the stated aquaculture estimate, class or record convention.

How to use the tool and how it works

  1. Enter gradeCounts, totalHarvestCount, rejectedCount. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read gradedDecimal, unassignedDecimal. Use the output convention below.

Return exact graded and unassigned harvest counts. Require nonnegative whole gradeCounts and nonnegative exact total/rejected integer text; graded is the BigInt grade sum, unassigned = total-rejected-graded, both decimal strings.1

Input fieldMeaning and unitsAccepted input
gradeCountsGrade CountsRequired. Array of safe integer; minimum 0; maximum items 256.
totalHarvestCountTotal Harvest CountRequired. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above.
rejectedCountRejected CountRequired. Text; maximum UTF-16 length 8192. Integer syntax: optional + or - and 1-128 decimal digits; leading zeros accepted. Apply the sign restriction above.
Output fieldInterpretationReturned shape
gradedDecimalExact sum of grade counts as decimal-integer text.Required. Text; maximum UTF-16 length 8192.
unassignedDecimalExact total minus rejected minus graded; negative balances are retained.Required. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "gradeCounts": [
      20,
      30
    ],
    "totalHarvestCount": "60",
    "rejectedCount": "5"
  },
  "output": {
    "gradedDecimal": "50",
    "unassignedDecimal": "5"
  }
}

Limitations and assumptions

  • Negative unassigned counts expose over-allocation; grade identity, actual harvest and duplicate records are not verified.
  • 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.

Alternative or Complementary methods

Use calibrated representative measurements and an appropriate complete statistical or husbandry assessment with qualified professionals.

References

  1. Calculation and input contract: aquaculture/harvest-grade-count-residual — tool.io

Similar or alternative tools