Method
How a release is built, from the source records to the published files.
Fitting
For a visual walk-through of constituents, phase and record length, see Tide Mechanics.
- Basis: least squares on the reference predictor's own equation, h(t) = Z0 + c·(t − t̄) + Σ fk·(ak cos Xk + bk sin Xk), where Xk = speedk·t + (V0+u)k. Speeds, V0+u and f come from the same tables the predictor uses. The fitted constants therefore plug into the predictor exactly.
- Span: the last 19 years of good data (one nodal cycle is 18.61 years). A shorter record is fitted whole, however short it is. See Short records. A linear trend is fitted alongside, so sea-level rise does not leak into the annual constituent.
- Quality control before fitting: null values, values flagged as not usable, and duplicate time stamps are dropped. Sub-hourly records are reduced to one value per hour. Spikes are removed against a rolling median of the residual, and the fit is repeated.
- Uncertainty: for each constituent, the larger of the residual noise in its frequency band and half the difference between fits to the two halves of the span.
- Determinism: the build uses fixed seeds, sorted inputs and fixed precision.
Time-base checks
Before a fit, each gauge record is checked for a wrong or undeclared clock. When no comparator gives a verdict, a record keeps the time base that GESLA declares for it. A record whose time base OTC disputes or cannot resolve is kept and marked as a fallback, with the reason. So is a third-party analysis of it (see Third-party analyses below).
The declared time zone does not settle this: in GESLA-4.1, 6,681 of 6,682 records declare a zero offset, including records that are not in UTC. Phase and time base in Tide Mechanics shows how a clock offset moves each phase.
Example: in GESLA-4.1 the German WSV records behave as hourly means stamped at the start of the hour, about 30 minutes early (median −29.5 minutes over 141 files, measured 7 October 2026). OTC corrects the time base before fitting.
- Comparators, in order of preference:
- official predictions near the gauge (
official_predictions); - official harmonic constants, such as NOAA's for NOAA records (
official_constants); - other records at the same gauge from a different contributor, after their own correction (
sibling_record); - the verdict of the provider's other records (
provider).
model); the constants already served for the location (served_constants); and the record's own daylight-saving test (dst_selftest). Each comparison records its lag in minutes: the record's time stamp of an event minus the comparator's time of it. - official predictions near the gauge (
- Measurements: the monthly time lag at 1-min resolution, the lag per constituent, amplitude ratios, a direct test of instantaneous against averaged sampling, and the missing hour on daylight-saving change days.
- Verdict classes, each with a fixed correction: UTC instantaneous; UTC hourly mean stamped at the start of the hour (shift +30 min and correct the amplitudes); UTC plus or minus a whole number of hours; local time with daylight saving; a step at a date. Isolated bad months are not a class: they are left out of the fit under any class, and the annotation lists them (
months_dropped). - Pass rule: a correction is made only on positive evidence. After the correction, the residual M2 lag must be within ±3 min in every month used.
- Annotation: each record carries one of four time-base annotations.
- Verified: the evidence confirms the declared time base, and the evidence is listed.
- Corrected: the time base is changed, and the annotation states from what to what and the evidence.
- Unverified: no comparator gives a verdict, so GESLA's declared time base is kept. The annotation can list the checks it tried.
- Disputed: the evidence disagrees with the declared time base but no class explains it. The record is kept and marked as a fallback, with the reason.
- Third-party analyses: a set of constants that a third party fitted from a record (source type
analysis, TICON-4) carries OTC's annotation of the same record. Verified or unverified: the constants are carried as published. Corrected: OTC applies the same correction to the publisher's phases, and the set says so inprovenance.modified. Disputed: the set is kept and marked as a fallback, with the reason, and so is OTC's own fit of the record.
Broken-record checks
The checks remove spikes. They refuse a fit whose main constituents differ between the two halves of the record, whose own uncertainty is too large, or that is implausible against nearby gauges or EOT20. A refused fit is kept and marked as a fallback.
Example: the Hirtshals record contains no tide. A fit gives an M2 amplitude of 0.16 cm, against about 14 cm at the two neighbouring gauges.
The fields are on Data format.
Record selection
When several records exist at one gauge, the build picks one by fixed rules, in this order:
- a record whose time base is not disputed;
- a record that is not short;
- instantaneous before averaged;
- sub-hourly before hourly;
- a current record (one that ends within 2 years of the newest) before older ones;
- the gauge operator's own record before a re-distribution of it;
- a licence that allows commercial use;
- the most good data in 2002–2020;
- the most recent;
- research-quality before fast-delivery data;
- then the record id.
A short record does not come before a record with constants and more hours of good data, and a record with no constants is not chosen. When two eligible records disagree beyond their uncertainty, the record with the lower error against an official reference is chosen. The build records each choice and the rule that decided it.
A third party's published constants for a gauge (source type analysis) are not a record that OTC fits, so they take no part in this selection. They rank below any OTC gauge fit at the station (see How sources rank).
Constituent selection
- Candidates: 45 constituents, NOAA's 37 plus EPS2, MKS2, SIG1, N4, S3, 2MK5, 2MO5 and 2MS6, in a fixed priority order. At German and Norwegian gauges a second list of 58 adds the M2 annual sidebands MA2 and MB2 and 11 shallow-water compounds (2MN6, 2MK6, 2SM6, MSK6, 3MK7, SO3, MK4, SN4, SK3, 2SK5 and MSN2). It is used only when the record resolves all 58 and the longer list predicts a held-out year (August 2024 to July 2025) better. The most any fit in release 20261130 keeps is 57.
- Record length (Rayleigh rule): a candidate is kept only when the record is long enough to separate it from every higher-priority constituent already kept. See Record length in Tide Mechanics.
- Signal to noise: after a first fit, a constituent is kept only when its amplitude is at least twice the residual noise in its frequency band. Then the fit is repeated.
- Long-period constituents (SA, SSA, MM, MF, MSF) are left out of the published set at river and lake gauges, and where SA is 0.25 m or more, because official predictions do not contain river and seasonal discharge signals. A short record never publishes SA or SSA. It publishes MM, MF or MSF only when the record covers at least three of its cycles and a long record of the same water within 3 km confirms the value.
- Non-tidal daily cycles (S1, S3, S4) are left out at river and lake gauges, and where they are larger than both M2 and K1.
At the stations on Accuracy this keeps 41–45 constituents for 19-year records and 23–28 for records of 1.5–2.5 years. Each dropped constituent in a release records why it was dropped.
Short records
A short record is published when the accuracy calibration covers it. Otherwise it is kept and marked as a fallback, with no stated accuracy.
- The fit solves only the constituents that the record's own good data can resolve, by the record-length rule in Constituent selection.
- Each short record is flagged and notes its length: hours of good data, and the span. It lists each constituent left out with its reason (for example P1, which a 40-day record cannot separate from K1).
- It also carries an expected-accuracy indicator: the expected amplitude and phase error, or the expected error of high- and low-water times and heights. The indicator is measured on long records cut down to the same length.
- A record with less than about 15 days of good data (
release.fit_min_good_hours) gets no constants and is listed with the status “No constants” (no_constants). - In the combined dataset, a short record does not outrank a set at the same station that has constants and more hours of good data, whatever their source types. A set with no constants is not recommended. See Record selection.
Per-source convention check
On each build, each source is compared with an independent comparator at the same gauges: OTC's own GESLA fit, predicted with the reference predictor. The pass rule is that the median M2, S2, K1 and O1 differences are within 1 cm and 2° over at least 3 overlapping gauges.
A source that does not pass is kept and marked as a fallback, as FES2022 is. A failed source check does not remove a GESLA record. A source with no overlapping gauge cannot be added.
Automation
- Builds run locally. Each build is a full rebuild.
- A monthly check looks for new XTide and TICON releases and for changes to NOAA's station types.
- A daily job collects PEGELONLINE records.
- There is no watcher for each source.
Release checks
A release is written only when the release document passes the schema and cross-reference checks, and the checksum file matches each file.