- Sector
- Environmental compliance
- Client
- Auckland Council · Greenmount · via Geotechnics
- Year
- 2026
- Role
- Method design, data engineering and reporting
Flow records a regulator can audit.
Production discharge records for stormwater, underdrain and leachate at Greenmount: every value carries a quality code and an uncertainty band, and the daily export to the regulator checks itself before it leaves.

Results
3
production pipelines (stormwater, underdrain, leachate)
QC600–100
quality codes on every value
20
acceptance checks before each export
At the Greenmount landfill site, Doppler area-velocity meters measure flow in a stormwater drain, an underdrain and a leachate manhole. The consent needs a defensible record: fifteen-minute and daily flows, seven-day means and a file the regulator can load. Raw meter output is not that. Depth sensors drift, velocity drops out at low flow and a missing day must never quietly become zero.
What I built
- Three production pipelines that pull the meter channels from the Cirro API in stateful chunks, with retries that tolerate the API’s intermittent server errors.
- QA rules, datum re-anchoring of the depth sensor, wetted area from the channel geometry and discharge as Q = A(h)·V.
- A quality code on every value, from QC600 (measured, good) to QC100 (no data), plus an uncertainty band for estimated periods.
- Estimator selection by leave-one-day-out comparison against candidate methods, with holdout hindcasts to calibrate the bands. A stage–discharge rating was tested and rejected because it did not hold up.
- Seven-day means (fixed weeks and rolling) that use only valid days, need at least five of seven and take the code of the worst day in the window.
- Daily Hydrotel XML and CSV exports, twenty acceptance checks before anything is sent, and a run that exits with an error when a person needs to look.
Cross-checks
The seven-day calculation is reimplemented in base R and compared against the Python output, so a method change in one language cannot slip through unnoticed. R jobs can also run remotely through a Node-RED worker over MQTT, with a process pool, timeouts and recycling.
The principle
A compliance record is only as good as its weakest day. Gaps are excluded, never zero-filled; estimates say they are estimates; and the method is documented well enough for someone else to repeat it.
Services
- Time-series data engineering
- Scientific & engineering computation
- Regulatory & client data delivery
Tools & tech
- Python
- pandas
- R
- Node-RED
- MQTT
- Hydrotel XML
- Doppler flow meters