Skip to content

Main content

Trap Night Valid Exposure Tool

Calculate trap night valid exposure from explicit caller-supplied inputs.

Loading tool…

Description

Return trapNights as their dot product, summing validNights[i]*traps[i].

Insect sampling effort can be expressed as trap-nights, active hours, flower-minutes, distance or area-times-beats. Normalizing catch by effort makes its denominator explicit, but does not automatically estimate abundance or equalize detection.

Return trapNights as their dot product, summing validNights[i]*traps[i].

When to use this tool

Use Trap Night Valid Exposure when normalizing a supplied catch, visit count or sampling exposure.

How to use the tool and how it works

  1. Enter validNights, traps. Keep parallel arrays aligned. 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 trapNights. Use the output convention below.

Require nonnegative validNights and traps arrays of equal length. Return trapNights as their dot product, summing validNights[i]*traps[i]. Night exposure and trap quantities may be fractional under the contract.1

Input fieldMeaning and unitsAccepted input
validNightsValid NightsRequired. Array of finite number; minimum 0; maximum items 256.
trapsTrapsRequired. Array of safe integer; minimum 0; maximum items 256.
Output fieldInterpretationReturned shape
trapNightsTrap NightsRequired. Finite number.
json
{
  "input": {
    "validNights": [
      2,
      3
    ],
    "traps": [
      4,
      2
    ]
  },
  "output": {
    "trapNights": 14
  }
}

Limitations and assumptions

  • This aggregates supplied effective exposure, not nominal calendar nights. Duplicate deployments and trap functionality are not inferred.
  • 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 a suitable sampling and detection model for abundance inference, and review actual deployments and conditions before aggregating effort.

References

  1. Calculation and input contract: entomology/trap-night-valid-exposure — tool.io

Similar or alternative tools