How we measure a tide to the centimetre
A tide gauge does not measure the tide. It measures the distance to a surface that is moving for a dozen reasons at once: swell, wash from a passing trawler, wind piling water against the quay. The tide is the slow thing hiding under all of that.
Every Slackwater gauge takes eight readings a second with a radar pointed straight down. We keep all of them, then throw most of them away very carefully.
Filtering without lying
The easy fix is a long moving average. It looks lovely and it is always late, which is the one thing a harbour board must never be. Instead we run a short filter tuned to the harbour's own swell period, which we learn in the first week. You can see the settings for any gauge with GET /v1/gauges/0417/filter.
- Readings outside 3 sigma of the last minute are dropped, not smoothed.
- The filter window shortens when the water moves fast, near half tide.
- Every value on the board carries its age in seconds.
If a number is old, say so. A stale number that looks fresh is worse than no number at all.
Checking our own work
Once a month a person with a staff and a notebook walks to each gauge and reads the water by eye. We publish the difference on the gauge map. Our median error this year is 2 cm, and the worst one, at a gauge sitting under a fish quay outflow, was 9 cm until we moved it.
If you run a harbour and want to see the raw stream for your own gauge, it is in the API under /raw, and it always will be.