Why this dataset
Open tidal constants are published by agencies, fitted from gauge archives and computed from ocean models, each in its own format and convention. OpenTideConstants (OTC) brings them into one dataset and one format, shows published sources side by side at a station, and labels where each came from.
The site shows a recommendation where a usable set is available. Its 22,145 published sets are labelled with their source, licence and quality status. The published data supports tide or current predictions at 14,436 stations.
Your language
Libraries for Python, JavaScript, Ruby, Swift, C and Kotlin read the same release and compute on your own machine. They predict tide heights, high and low tides, currents, slack, max flood and max ebb. With a downloaded release they need no network. Heights can be given above any datum the station lists. Predictions cover the years 1700 to 2100. Get started.
Seeing the source
At 4,599 stations two or more sources overlap. Published sets are labelled with their source, licence and quality status. A station can have several published sets and one recommendation. A library predicts from the recommended set unless you name another, and each result says which set it used. 15,506 of the 22,145 sets meet OTC’s strict commercial criterion. Each set names the attribution text to show. The code is MIT. Licence and attribution.
Places without a gauge
Release 20261130 lists 14,452 stations in 146 countries and territories. At 7,394 of the 11,880 tide stations with predictions, gauge-based constants or usable gauge offsets are available through the recommended set or a reference station. Where no usable gauge data is available, model constants can supply a prediction and are labelled as a fallback. Find a station.
Currents
853 current stations have constants at 2,218 depth bins, and the libraries return speed and direction at the bin you ask for. Another 1,703 are predicted from a reference station, as slack, max flood and max ebb.
Switching cost
An app that reads an XTide .tcd file, or one of two other reader formats, opens an OTC export file with one setting changed: the file it reads. Each guide is four or five steps. Migrating to OpenTideConstants.
Accuracy
The first check is arithmetic. In the published comparison, the predictor behind the libraries reproduced NOAA's high and low tides from NOAA's own constants with a mean timing error of 15 to 16 seconds. Whether the constants themselves are right is a separate question, and the clock checks and fitting rules below are how OTC goes about it. Accuracy compares predictions with official predictions at 11 stations and gives the method.
At 30 stations the default prediction is one chosen for its agreement with the gauge's observations. At those stations, official selects the agency’s constants or offsets. The release does not report a measured error for those official profiles.
Clocks
A gauge record with the wrong clock gives constants that put high water at the wrong time. Where independent evidence is available, OTC checks a gauge record’s time base against official predictions, official constants or another record at the same gauge, and corrects it only on positive evidence. Of the 5,174 gauge fits in the release, 1,108 are verified, 142 were corrected and 219 are disputed, where the evidence conflicts. The other 3,705 are marked unverified. The UK National Tide Gauge Network fits use the provider’s timestamps without an independent clock check. OTC tests these fits against held-out gauge observations.
The fitting method
Almost all of those fits are of records in the GESLA archive. A fit uses the last 19 years of good data, one nodal cycle (the 18.6-year swing of the Moon's orbit), and keeps a constituent only when the record is long enough to separate it and it stands above the noise. Method gives the whole procedure.
How to cite
Cite this release with its version DOI 10.5281/zenodo.24674527. The concept DOI 10.5281/zenodo.24665685 identifies the dataset across versions. See citation and attribution.
Limits
Predictions are not observations. They are the astronomical tide, computed from harmonic constants. They leave out wind, storm surge, river flow, seiches and ice, and the water you see can differ from them.
Not for navigation. OpenTideConstants is not an official source of tide predictions. For navigation, use the predictions of the national hydrographic office.
Coverage is uneven. 7,661 of the 14,452 published stations are in the United States and 3,081 in Canada: together, 74%. Another 3,709 are spread over 144 other countries and territories.
51.0% of the recommended sets come from a model. Of the 12,365 published stations with a recommended set, 6,303 use an ocean tide model, including 6,302 that use FES2022. Model constants serve open water and are weakest in harbours, rivers and shallow bays, so each is marked as a fallback. This matters most in Canada, where no recommended set comes from an agency or an OTC gauge fit, and in Australia, where 618 of 738 published stations use the model.
At 55 stations the recommended set is a fit to BOM tide-table predictions. Expect lower accuracy than a fit to hourly observations. OTC checks these fits against held-out high and low waters from BOM’s published predictions.
Some stations have no prediction. Among published stations, 16 have neither usable constants nor usable reference offsets. 0 have usable constants but no recommendation or usable reference offsets.
Accuracy is published for few stations. The release carries no measured accuracy figure for individual stations. Short-record sets carry an expected error from OTC’s calibration (expected_accuracy), not a measurement at that station. The published comparison covers 11, against official predictions, not observed water levels. 30 published stations carry a prediction chosen against a gauge's observations.
Short records stay weak. At the stations tested, fits from records of 1.5 to 2.5 years had timing errors of 12 to 31 minutes. Such sets are marked as short.
83.9% of sets carry a flag. 18,581 of the 22,145 published sets have at least one. The sets with flags include 18,510 sets with flagged status and sets marked no_constants. Among the 18,581 sets with flags, 9,108 FES2022 model sets carry a flag because their agreement with gauges is not established, 8,833 others because the clock of the gauge record behind them is unverified or disputed, and 603 for other reasons. No agency set is flagged. A flag tells you what to check before relying on a set.