Environmental Geology Calculation Methodology: Ion Balance, Regulatory Comparison, PID Screening, and Holding Time
Ion balance criterion (APHA 1030 E), matrix-safe dimensional conversion, censored data handling (<DL/<QL), PID response-factor correction, environmental low-flow purging, and holding-time tracking in RockGeo.
Technical abstract
This technical note presents the analytical and statistical foundations adopted in RockGeo's Environmental Geology and Contaminated Site Management module. It details the calculation and validation of the Ion Balance Error (IBE) per APHA Standard Methods 1030 E, comparison of laboratory reports against multi-matrix regulatory profiles with dimensional-incompatibility blocking and diagnostics for quantification limits exceeding screening values, semi-quantitative correction of volatile organic compounds (VOCs) via PID/Headspace, low-flow purging stabilization assessment, and temporal tracking of analytical holding times.
1. Hydrogeochemical Ion Balance (APHA 1030 E)
The analytical consistency of groundwater and surface-water hydrogeochemical assays is checked via the principle of electroneutrality in aqueous solution. The engine converts mg/L concentrations of major cations (Ca²⁺, Mg²⁺, Na⁺, K⁺) and major anions (HCO₃⁻, CO₃²⁻, Cl⁻, SO₄²⁻, NO₃⁻) to milliequivalents per liter (meq/L) using the molar masses and valences of Hem (1985) and computes the percentage Ion Balance Error (IBE):
IBE (%) = [ (Σ Cations − Σ Anions) / (Σ Cations + Σ Anions) ] · 100
Total Sum (meq/L) = Σ Cations + Σ Anions- Σ Cations
- Sum of equivalent concentrations of Ca²⁺, Mg²⁺, Na⁺, and K⁺ (meq/L).
- Σ Anions
- Sum of equivalent concentrations of HCO₃⁻, CO₃²⁻, Cl⁻, SO₄²⁻, and NO₃⁻ (meq/L).
| Total Ion Sum (meq/L) | Maximum |IBE| Tolerance | Interpretation |
|---|---|---|
| < 3.0 meq/L | ± 10.0% | Low-mineralization waters allow a wider relative margin |
| 3.0 to < 12.0 meq/L | ± 5.0% | Typical range for most natural groundwaters |
| ≥ 12.0 meq/L | ± 3.0% | Brackish or highly mineralized waters require stricter agreement |
2. Regulatory comparison, dimensional conversion, and censored data (<DL/<QL)
The engine compares laboratory results against regulatory profiles across six distinct physical matrices (soil, groundwater, drinking water, sediment, surface water, and soil vapor). Prior to comparison, reported units are converted to the profile unit strictly within the same dimensional domain (mass/mass for solids: mg/kg, µg/kg, g/kg, %; mass/volume for liquids: mg/L, µg/L, ng/L; mass/volume for gases: µg/m³, mg/m³). Conversion attempts across incompatible matrices (for example, mg/kg to µg/L or ppmv to µg/m³ without molecular properties) are explicitly blocked.
EF = C_std / L_reg- C_std
- Quantified concentration converted to the unit of the regulatory guideline value.
- L_reg
- Applicable reference value (prevention, intervention, or maximum contaminant limit).
| Condition | Class | Analytical note |
|---|---|---|
| Non-detect (<DL / <QL) with QL ≤ Limit | Compliant | Does not constitute a regulatory exceedance; supports statistical imputation (0.5×DL, 1×DL, or zero) |
| Non-detect (<QL) with QL > Limit | Compliant with QL warning | Issues explicit warning: assay is inconclusive for demonstrating compliance |
| EF ≤ 1.00 | Compliant | Concentration equal to or below the guideline value |
| 1.00 < EF ≤ 2.00 | Mild Exceedance / Alert | Borderline exceedance |
| 2.00 < EF ≤ 5.00 | Moderate Exceedance | Confirmed exceedance |
| EF > 5.00 | Critical Exceedance | Severe exceedance (> 5× the limit) |
3. Field screening by PID / Headspace
In confirmatory investigations and screening of volatile organic compounds (VOCs) using a photoionization detector (PID) calibrated with isobutylene on a 10.6 eV UV lamp (US EPA; ASTM D5314), the instrument reading is corrected by the Response Factor (RF) of the target compound and evaluated statistically across a series of headspace readings:
C_true (ppm) = C_isobutylene (ppm) · RF
s = √[ Σ (xi − x̄)² / (n − 1) ] (for n > 1)- RF
- Dimensionless response factor relative to isobutylene (e.g., 0.55 for benzene; 0.50 for toluene; 0.54 for TCE; editable per manufacturer manual).
- Peak / Threshold
- Flags a priority anomaly for laboratory submission when the peak equals or exceeds the configured threshold (default 50 ppm).
4. Analytical Holding Time and environmental purging
To track regulatory sample integrity between field collection and laboratory extraction/analysis, the engine computes elapsed time in hours from strict UTC timestamps (Δt = (t_now − t_collection) / 3,600,000) and classifies the elapsed ratio r = Δt / T_max into three bands: within holding time (r < 0.75), approaching expiration (0.75 ≤ r ≤ 1.00), and expired (r > 1.00). The maximum holding time T_max comes from the method/standard selected in the project and is never arbitrarily hardcoded by the engine.
The environmental module also shares the low-flow purge stabilization verification engine, based on Puls & Barcelona (EPA/540/S-95/504), US EPA EQASOP-GW4, ISO 5667-11, and ABNT NBR 15847, recording the individual diagnostic of each physicochemical parameter, the largest variation observed in the consecutive window, and the dynamic water-level drawdown.
Assumptions, applicability limits, and fail-closed controls
- The ion balance (IBE) evaluates only the 9 major ions; highly acidic waters (significant H⁺), strongly alkaline waters (OH⁻), waters rich in dissolved iron/manganese, or ionized organic compounds may exhibit IBE outside tolerance without laboratory error.
- Preloaded regulatory profiles carry an explicit verification status indicator (PENDING_OFFICIAL_CHECK, VERIFIED_BY_USER, or CUSTOM); the responsible professional must validate guideline values against official gazettes and current environmental legislation in the study jurisdiction.
- PID readings represent semi-quantitative screening of total vapors ionizable by the UV lamp and do not replace gas chromatography or accredited laboratory testing (ISO/IEC 17025).
- Imputing censored data (<DL/<QL) as 0.5×DL is a descriptive statistical convention; human health risk assessments or trend tests may require non-parametric or maximum-likelihood methods (Kaplan-Meier / ROS).
References
- APHA; AWWA; WEF. Standard Methods for the Examination of Water and Wastewater, Method 1030 E: Checking Correctness of Analyses (Anion-Cation Balance). 23. ed. Washington, DC: APHA, 2017.
- HEM, J. D. Study and Interpretation of the Chemical Characteristics of Natural Water. 3. ed. U.S. Geological Survey Water-Supply Paper 2254, 1985. — Official source
- PULS, R. W.; BARCELONA, M. J. Low-Flow (Minimal Drawdown) Ground-Water Sampling Procedures. U.S. Environmental Protection Agency, Ground Water Issue EPA/540/S-95/504, 1996. — Official source
- U.S. ENVIRONMENTAL PROTECTION AGENCY (US EPA). Low Stress (Low Flow) Purging and Sampling Procedure — EQASOP-GW4, Rev. 4, 2017. — Official source
- ASTM INTERNATIONAL. ASTM D5314-92 — Standard Guide for Soil Gas Monitoring in the Vadose Zone. West Conshohocken, PA: ASTM.
- INTERNATIONAL ORGANIZATION FOR STANDARDIZATION. ISO 5667-11 — Water quality — Sampling — Part 11: Guidance on sampling of groundwaters.
- HELSSEL, D. R. Statistics for Censored Environmental Data Using Minitab and R. 2. ed. Hoboken: John Wiley & Sons, 2012.
How to cite this document
Professionals, consultants, and researchers using RockGeo in technical reports, engineering designs, or academic work may cite this methodology using the formats below:
ABNT (NBR 6023)
ROCKGEO (THARD TECH). Environmental Geology Calculation Methodology: Ion Balance, Regulatory Comparison, PID Screening, and Holding Time. Technical Note RG-NT-05, version 1.0. 2026. Available at: https://rockgeoapp.com.br/en/articles/geologia-ambiental-hidrogeoquimica/.APA (7th ed.)
RockGeo (Thard Tech). (2026). Environmental Geology Calculation Methodology: Ion Balance, Regulatory Comparison, PID Screening, and Holding Time (Technical Note RG-NT-05, v. 1.0). https://rockgeoapp.com.br/en/articles/geologia-ambiental-hidrogeoquimica/BibTeX
@techreport{rockgeo2026nt05en,
author = {{RockGeo (Thard Tech)}},
title = {Environmental Geology Calculation Methodology: Ion Balance, Regulatory Comparison, PID Screening, and Holding Time},
institution = {RockGeo / Thard Tech},
number = {RG-NT-05},
version = {1.0},
year = {2026},
url = {https://rockgeoapp.com.br/en/articles/geologia-ambiental-hidrogeoquimica/}
}