Tide Harmonics

Three days of real water level from San Francisco, with a two-term harmonic model (the M2 lunar and S2 solar tides) drawn over it. The model phase nudges itself toward the data each frame.
loading data...
Chapter 3 (Oscillation). Tides are nature's sum of sine waves. Two simple harmonic oscillators at 12.42 and 12.00 hours reproduce most of the real curve, which is the chapter's lesson made literal.
Data: NOAA CO-OPS API, station 9414290 San Francisco, 6-min water level (public, no key).