Tide Mechanics
How a few numbers per station (per constant set) turn into a tide prediction, and which of those numbers OTC publishes.
1A tide is a sum of waves
Each constituent is a pure cosine with its own period and size. Add them and you get the tide. Turn them on and off below. The amplitudes start at Boston-like values. These six are the largest at a port like Boston, out of a much bigger set: section 2 lists all 37 that NOAA publishes.
Three days. Each lane is one constituent on a shared scale; the bottom lane is their sum. Raise K1 and O1 to about 0.5 m and successive high waters become unequal: that is diurnal inequality.
Thirty days of the same sum. M2 (12.42 h) and S2 (12.00 h) drift in and out of step every 14.77 days. In step they add: spring tides. Out of step they cancel: neap tides. The dashed line is the M2+S2 envelope. N2 adds a monthly swing on top.
2What a constituent is
A constituent is one astronomical rhythm. Its speed in degrees per hour comes from the motions of the Moon and Sun, so it is the same at every port. The Doodson number encodes that speed as a sum of six basic astronomical frequencies.
The tidal spectrum at a Boston-like port, all 37 constituents NOAA publishes. Constituents cluster into species: diurnal near 15°/h (once a day), semidiurnal near 30°/h (twice a day), and shallow-water overtides at 3, 4, 6 and 8 times a day. The ticks under the axis mark every constituent; the number over each band counts them. The lower panels zoom into the two crowded clusters. Most lines are only millimetres tall: here M2, S2, N2, K2, K1, O1, P1 and Q1 carry most of the tide's variance. The nine constituents of the table below keep their illustrative amplitudes; the other 28 use NOAA's published amplitudes for Boston (station 8443970).
| Name | Speed °/h | Period h | Doodson | What it tracks |
|---|
The full set: all 37 constituents NOAA publishes
| Name | Speed °/h | Period | Doodson | Species | What it tracks |
|---|
Sorted by speed. fig marks the six in the figures. Each speed is computed from the Doodson arguments, the whole-number multiples of six astronomical rates: τ the lunar day, s the Moon, h the Sun, p the lunar perigee, N′ the lunar node and p1 the solar perigee. The computed speeds agree with NOAA's published values to the precision NOAA gives them. The Doodson number writes the six multiples as digits, adding 5 to all but the first so that none is negative: M2 is 2τ, so 255.555; Z0 is 055.555. S6 needs a multiple of +6, which has no single digit, so its multiples are shown instead. Sa is 056.555 here, as its NOAA speed implies; Doodson's own list gives 056.554, which adds the slow solar-perigee term. NOAA spells ρ1, μ2, ν2 and λ2 as RHO, MU2, NU2 and LAM2.
How many constituents?
There is no fixed number. Each source publishes the set its own analysis resolved:
- NOAA CO-OPS: a standard list of 37, even where some round to zero (Boston's Mm, MSf and Mf are 0.000 m). A few stations get a longer list: Anchorage (Knik Arm) has 120.
- JMA: 60 at the 70 stations JMA runs; only M2, S2, K1 and O1 at the other stations of its tide tables.
- Kartverket and LINZ: a list per station. Kartverket gives Bergen 55, Stavanger 52, Trondheim 57 and Honningsvåg 62.
- OTC's own fit of a GESLA record tries 45: NOAA's 37 plus 8 more. At German and Norwegian gauges it also tries a list of 58, which adds the M2 annual sidebands MA2 and MB2 and 11 shallow-water compounds, and keeps that list where it predicts a held-out year better. The most any fit in the release keeps is 57. Record length sets how many fit (section 6).
- The release's astronomical tables define 138, and each convention uses one table. A constituent with no row in its convention's table, or with a different speed, is not evaluated. In this release that leaves out TICON-4's 3L2, 3N2, MSQM, MTM, R3 and T3, Kartverket's GAM2, JMA's OQ2 and nine at NOAA's Anchorage (Knik Arm). Each set records what it left out.
In practice a few carry most of the tide: M2, S2, N2, K2, K1, O1, P1 and Q1. The shallow-water overtides (M4, MS4, M6 and the rest) are small at the open coast but grow in estuaries and shallow harbours, where they make the tide rise and fall at different rates.
3The prediction formula
Every tide predictor evaluates this sum. Σ runs over every constituent a constant set holds: 37 at most NOAA stations and 111 at NOAA's Anchorage (Knik Arm), 59 at JMA's stations, and up to 61 at Kartverket's. The six in the figures carry most of the tide. Select a term to see it on the wave.
- Z0 Mean water level above the set's zero (see Data format). One number per constant set. OTC
- H Amplitude: half the crest-to-trough height of this constituent. OTC
- g Phase lag: how many degrees the local crest trails the Moon or Sun's pull. OTC
- ω Speed in °/h. Identical worldwide. astronomy
- V0 Where the astronomical driver sits at t = 0. Depends only on the date, so the release gives V0 + u for each year (V0 at 1 January, u at mid-year). OTC per year
- f and u Nodal corrections for amplitude and phase over the 18.6-year lunar node cycle. The release gives f for each year. OTC per year
- t Hours since the time origin, in UTC. Σ adds every constituent. input
One M2 wave. The dashed curve is the equilibrium tide, the astronomical driver set by V0 + u. The real crest arrives g degrees later; for M2 every 28.98° of lag is one hour.
The nodal factor f across one lunar node cycle, centred on today. M2 moves about ±3.7%. K1 moves about ±11.5%, and the two run in opposite directions. The values of f and u depend only on the date, so they are the same at every station. Each release carries them in its astronomical tables, one value per year from 1700 to 2100, computed with congen after Schureman, and a predictor reads them from there. The exception is 22 Kartverket sets with daily corrections (astronomy_correction source_daily_utc_noon): for these, a predictor adjusts f and u for each UTC day, as evaluated at noon UTC.
4Phase lag g and the time-base trap
g is measured against a clock. Move the clock by Δt and every phase moves by its own speed times Δt. One hour is 28.98° for M2 and 15.04° for K1. A wrong time zone therefore leaves a fingerprint: phase errors that scale with each constituent's speed.
Clock offset. Long ink needle: true Greenwich g. Short coloured needle: what a fit reports if the record's clock runs Δt ahead of UTC. The shift is ω·Δt, mod 360. At 12 h, S2 lands exactly where it started while M2 is off by 12°, so S2 alone cannot catch this error.
Local meridian. Some agencies publish κ, the lag relative to the station's own meridian. Converting to Greenwich uses g = κ − p·λ, where p is the species: 0 long-period, 1 diurnal, 2 semidiurnal (λ east-positive). Here M2 and S2 shift by the same 2λ. A clock error shifts them by different amounts, and that difference tells the two traps apart.
| Name | True g | ω·Δt | Reported g | p·λ | κ (local) |
|---|
5Harmonic analysis: getting H and g from a record
Analysis runs the formula backwards. Given hourly water levels, a least-squares fit finds the Z0, H and g that explain them with the least error. Below is a synthetic record built from known constants plus noise; the fit tries to recover them. Real analyses fit dozens of constituents, not the handful in this toy: OTC's fit tries 45, or 58 at some German and Norwegian gauges.
Grey dots: observed hourly values. Magenta line: the fitted sum. The lower strip shows the residual, observed minus fit. The fit includes only constituents the record length can separate (section 6). Below about 15 days, S2 is left out and its energy leaks into M2.
| Name | True H m true | Fit H m fit | True g° true | Fit g° fit | Status |
|---|
✓ fitted · ✕ record too short. H in metres.
This toy omits nodal corrections, so its true values stand for f·H and g − (V0 + u). A real fit applies f and u for each observation time.
6Record length decides what you can separate
Two constituents with close speeds look like one wave until they drift a full cycle apart. The Rayleigh criterion sets the minimum record: T ≥ 360° / |ω1 − ω2|. The figures below compute T from the speeds.
Record length is what limits how many constituents a fit can hold. Applied to OTC's 45 candidates, the rule keeps 28 for a 30-day record, 43 for one year and all 45 for 19 years. Applied to the list of 58, it keeps 32, 56 and 58. A noise test can then drop more.
| Pair | |Δω| °/h | Needs | Status |
|---|
✓ separable · ✕ merged at this record length.
7What it applies to
Tide heights at a station
Z0 plus H and g per constituent give h(t) at that gauge, for any date.
Subordinate stations
A NOAA "S" station has no constants of its own. It borrows a reference station's prediction and applies time offsets in minutes and height ratios or additive offsets. NOAA gives separate offsets for high and low water; this sketch uses one of each. Current stations work the same way: 1,703 subordinate current stations are predicted from a reference station's events, as slack, max flood and max ebb, with time adjustments and flood and ebb speed ratios.
Tidal currents
Currents are vectors, so each depth bin gets an azimuth, the direction of its major axis, and per constituent an amplitude and phase along the major axis and along the minor axis. The tip of the current traces an ellipse. Flood and ebb run along the major axis; slack falls where the speed is lowest. A mean current shifts the whole ellipse.
What harmonics cannot predict
Weather surge, river flow and seiches do not repeat with astronomy, so they stay in the residual. Where the tide is tiny, as in lakes and upper rivers, that residual dominates and OTC sets the microtidal flag.
8From source to prediction
The OTC pipeline, top to bottom. Records reach the end with labels added. A set is kept and marked as a fallback, with the reason, when its record's time base is disputed or unresolved, when its fit fails a check, when its agreement with gauges is not established (reliability_withheld), or when it comes from a short record that the accuracy calibration does not cover (short_record_uncalibrated). A gauge record whose terms do not allow redistribution is left out. Where the publication policy permits TICON-4 constants based on such a record, the release keeps them as published, as a fallback whose commercial use rests on TICON-4's CC BY 4.0 reading (licence_reading), with the originator's restriction stated. A TICON-4 set kept with its full published list, including constituents OTC leaves out of its converted set, is a fallback too (published_full_list). Licence-reading fallbacks do not meet OTC's strict commercial criterion, which the libraries apply by default. The rules are on Method, and each field is on Data format.
-
in
Sources
Gauge records, published constants and model constants from NOAA, Kartverket, LINZ, JMA, GESLA, TICON-4 and FES2022. Also OTC fits to UK National Tide Gauge Network water levels (Open Government Licence v3.0) and to the Bureau of Meteorology tide tables (non-commercial use only, with the BOM disclaimer).
NOAAKartverketLINZJMAGESLATICON-4FES2022UK NTGNBOM -
Δt
Per-record time-base check
Checks each record's clock and meridian convention against section 4's fingerprints, then annotates it. A record whose time base OTC disputes or cannot resolve is kept and marked as a fallback, and so is a third-party analysis (TICON-4) of it.
verifiedcorrectedunverifieddisputed -
qc
Broken and short records
Removes spikes, and refuses 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. With less than about 15 days of good data (
release.fit_min_good_hours), no constants are fitted, and the record is listed with the status “No constants”. See Broken-record checks and Short records.short_record -
fit
Harmonic fit
Least squares over the hours of good data. Record length decides how many constituents enter (section 6).
-
✓
Convention check
Compares fitted H and g with official constants at overlapping stations to catch systematic errors.
-
db
Combined dataset
Z0, and H and g per constituent, per constant set; a station can have several sets. Each constant set carries a
qc_statusand itsprovenance. Gauge fits and third-party analyses also carry atime_baseannotation. A short record does not outrank a set with more hours of good data at the same station, whatever their source types. At the stations of JMA's tide tables that JMA does not run, the release lists JMA's record but publishes no JMA set; those constants are used only to check fits.okflagged -
rel
Release
Dated release files (
OTC_{YYYYMMDD}) ondata.opentideconstants.org. The pointerOTC_latest-f1.jsonnames the newest release in format 1. To cite a release, see How to cite. -
lib
Libraries
Libraries for Python, JavaScript, Ruby, Swift, C and Kotlin read a release and give typed access to stations, constant sets, constituents (H and g), provenance and licences. They also predict tides and currents from the release.
PythonJavaScriptRubySwiftCKotlin -
h(t)
Prediction
A tide predictor takes Z0, H and g from the release, takes V0 + u and f for the year of the requested time from the release's astronomical tables, and sums the formula of section 3. The reference predictor is the webcaltides engine. Accuracy describes how it is checked against official predictions.
Speeds from the standard Doodson/Schureman tables. Nodal factors use Schureman's approximations with the lunar node longitude N from the date. Station values are illustrative, Boston-like, and are not OTC data.