Skip to content

Main content

Remediation Reference Source Gap Tool

Calculate remediation reference source gap from explicit caller-supplied inputs.

Loading tool…

Description

Compare sample reference-site labels and period-match flags.

Environmental-remediation bookkeeping uses explicit water, soil, dry-mass, concentration and sampling bases. A local mass residual, censored-result bound or supplied target margin does not identify a removal mechanism, establish representativeness or determine an environmentally acceptable contaminant level.

Compare sample reference-site labels and period-match flags.

When to use this tool

Use Remediation Reference Source Gap when checking the stated remediation measurement, mass/volume balance or support convention.

How to use the tool and how it works

  1. Enter sampleIds, referenceSiteIds, suppliedExpectedSiteIds, periodMatched. Follow any array-alignment requirements below. 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 referenceMismatches, periodMismatches, supportedSamples. Use the output convention below.

Compare sample reference-site labels and period-match flags. Require aligned arrays; count reference mismatches, false period flags and rows with both expected site equality and matched period.1

Input fieldMeaning and unitsAccepted input
sampleIdsSample IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
referenceSiteIdsReference Site IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
suppliedExpectedSiteIdsSupplied Expected Site IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
periodMatchedPeriod MatchedRequired. Array of boolean; maximum items 256.
Output fieldInterpretationReturned shape
referenceMismatchesReference MismatchesRequired. Safe integer.
periodMismatchesPeriod MismatchesRequired. Safe integer.
supportedSamplesSupported SamplesRequired. Safe integer.
json
{
  "input": {
    "sampleIds": [
      "a",
      "b"
    ],
    "referenceSiteIds": [
      "r1",
      "r2"
    ],
    "suppliedExpectedSiteIds": [
      "r1",
      "r1"
    ],
    "periodMatched": [
      true,
      true
    ]
  },
  "output": {
    "referenceMismatches": 1,
    "periodMismatches": 0,
    "supportedSamples": 1
  }
}

Limitations and assumptions

  • Rows are not deduplicated; supplied flags do not establish an appropriate control site, analytical comparability or causal remediation effect.
  • 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 verified sampling and analytical data, consistent material/unit bases and a complete transport or treatment model; involve qualified environmental professionals for practical or regulatory decisions.

References

  1. Calculation and input contract: bioremediation/remediation-reference-source-gap — tool.io

Similar or alternative tools