Home › reconstructor
Curve reconstructor
This is the forward problem, the easy half of the library: given constituents with amplitudes and phase lags, add up their cosines and look at the water level they produce. It runs in your browser from /api/constituents.json and sends nothing anywhere.
How to read it
The curve is the sum over the chosen terms of amplitude times the cosine of speed times time minus the phase lag. The defaults are the eight fitted amplitudes from station-7, which is why the shape below is the same tidal curve the tutorial decomposes. Turn S2 off and watch the spring-neap swell collapse into a plain lunar beat; push M4 up from zero and watch the crests and troughs stop being symmetric.
high water - · low water - · range - · 8 terms active
| Use | Period | Amp, m | Phase ° |
|---|
Default set
| Constituent | Amplitude, m | Phase, ° |
|---|---|---|
| M2 | 1.412 | 211.6 |
| S2 | 0.463 | 238.2 |
| N2 | 0.281 | 190.8 |
| K2 | 0.126 | 235.9 |
| K1 | 0.109 | 77.3 |
| O1 | 0.082 | 54.0 |
| P1 | 0.036 | 74.9 |
| Q1 | 0.017 | 31.5 |
The arithmetic
There is no least-squares anywhere on this page. Speeds come from the catalogue, you supply amplitudes and phases, and the only operation is a sum of cosines evaluated at four hundred points across the window. The high- and low-water figures are simply the maximum and minimum of that sum, which is why they move the instant you change a term. To go the other way, from a measured record to these amplitudes, is the inverse problem, and that is what the tutorial and tc.analyse are for.
See also: the constituent table for speeds and origins, and reconstruct for the library call that does this on real timestamps.