The Winding Scalogram

I came up with a potentially novel graphical representation that is analogous to a wavelet scalogram but works in a non-autonomus mode, so doesn’t use the time-domain formulation of a wavelet. I call it a winding scalogram because it works in this specific non-autonomous — roughly time independent — space where the frequencies are dimensionless, hence can be referred to as windings, or multiple revolutions about π\pi.

First consider the premise of a non-autonomous system — such as a two-layer stratified system showing a barotropic tidal forcing and a baroclinic response wrt a thermocline (note that this is a recasting of the contents of Chapter 12 of Mathematical Geoenergy 1):

1. Non-autonomous forcing

In a two-layer fluid, the barotropic mode is driven externally by the tide. The tidal potential is written as a sum of astronomical constituents,

Fbt(t)=mAmcosχm(t),F_{\rm bt}(t)=\sum_m A_m \cos\chi_m(t),

where the tidal argument is

χm(t)=jDmjθj(t).\chi_m(t)=\sum_j D_{mj}\theta_j(t).

Here DmjD_{mj} are the Doodson numbers, integers that encode the astronomical frequencies, and θj(t)\theta_j(t) are the astronomical arguments. Because the forcing depends explicitly on time, the baroclinic response satisfies a non-autonomous differential equation. For a single baroclinic modal amplitude q(t)q(t),

q¨+2γq˙+ω02q=Fbt(t).\ddot q + 2\gamma \dot q + \omega_0^2 q = F_{\rm bt}(t).

The barotropic mode supplies the forcing. The baroclinic mode responds internally with additional degrees of freedom due to the interface. When we normalize the amplitudes, the transfer from the barotropic amplitude XX to the baroclinic amplitude YY can be written as (note: this ignores γ,\gamma, a friction/damping term)

Y=Csin(βX+ϕ)+A.Y = C\sin(\beta X+\phi)+A.

Here β\beta is a dimensionless transfer wavenumber. It measures how rapidly the baroclinic phase changes with the barotropic amplitude. If XX is itself a tidal phase, then β\beta behaves like a winding number, counting how many baroclinic oscillations occur per cycle of the barotropic forcing.

2. Layman’s picture of the two modes

Think of a tank with fresh water on top and salty water below (or of a wave machine). The boundary between them is the interface ala a thermocline or pycnocline as the cartoon to the right shows.

Diagram illustrating barotropic-baroclinic coupling in ocean layers, showing tidal forcing, internal waves, and equations related to oscillation and coupling between fresh and salty water.

Barotropic mode. The whole water column moves together. The surface tilts up on one side and down on the other, while the interface between the layers stays nearly flat. Ordinary gravity acts on the full depth. It is driven by the tide, and to a lesser extent (IMO) wind and pressure.

Baroclinic mode. The two layers slide against each other. The surface stays almost flat, but the interface tilts. This mode has a slower time constant because the restoring force comes only from the density difference between the layers. It is the internal response to the barotropic push. Because of the almost metastability of this interface (where the effective gravity is greatly reduced) it can show large swings, much greater and amplified compared to the barotropic mode. Temperature variations occur as the thermocline nears the surface or retreats from the surface.

In short: the barotropic mode is the forcing driver; the baroclinic mode is the internal reply, i.e. a forced response.

3. Separable standing waves

Let xx be the horizontal coordinate along the container and let the response be separable:

η(x,t)=ϕ(x)T(t).\eta(x,t)=\phi(x)T(t).

For a linear wave system,

2ηt2=c22ηx2.\frac{\partial^2 \eta}{\partial t^2} = c^2 \frac{\partial^2 \eta}{\partial x^2}.

Substituting the separable form gives

TT=c2ϕϕ.\frac{T”}{T} = c^2 \frac{\phi”}{\phi}.

The left side depends only on time, the right side only on space, so both equal a constant. For oscillations, call it ω2-\omega^2. Then

T+ω2T=0,T”+\omega^2 T=0,

and

ϕ+(ωc)2ϕ=0.\phi”+\left(\frac{\omega}{c}\right)^2\phi=0.

Now define the dimensionless transfer wavenumber

β=ωLc.\beta = \frac{\omega L}{c}.

Here LL is the length of the container. The spatial equation becomes

ϕ+(βL)2ϕ=0.\phi”+\left(\frac{\beta}{L}\right)^2\phi=0.

This is the standing-wave equation written entirely in terms of β\beta. Chapter 12 also derives this separation and makes the association between the temporal modulation and the spatial wavenumber, a la dipole standing waves such as ENSO

4. Boundary conditions and wavelength

The container boundaries quantize β \beta. For a closed basin with fixed or free ends, the spatial mode vanishes or has zero slope at the walls. The usual condition is

ϕ(0)=0,ϕ(L)=0.\phi(0)=0,\qquad \phi(L)=0.

The solution is

ϕ(x)=Asin(βLx).\phi(x)=A\sin\left(\frac{\beta}{L}x\right).

At x=Lx=L, we require

sin(β)=0.\sin(\beta)=0.

Therefore

βn=nπ,n=1,2,3,\beta_n = n\pi, \qquad n=1,2,3,\dots

For a periodic container (as in a wrap-around torus or donut, see the toroidal atmospheric QBO for a degenerate case where the wavenumber is actually zero), the condition is instead

βn=2πn,n=0,1,2,\beta_n = 2\pi n, \qquad n=0,1,2,\dots

The spatial wavelength is related to βn \beta_n by

λn=2πLβn.\lambda_n = \frac{2\pi L}{\beta_n}.

Thus:

· For fixed or free ends, βn=nπ\beta_n=n\pi, so

 λn=2Ln \lambda_n=\frac{2L}{n}.

  An integer number of half-wavelengths fits into the container.

· For a periodic container, βn=2πn\beta_n=2\pi n, so

λn=Ln  \lambda_n=\frac{L}{n}.

  An integer number of full wavelengths fits into the container.

In both cases, βn\beta_n is the accumulated phase of the standing wave across the container.

5. Winding number

The winding number is the number of full 2π2\pi phase wraps:

wn=βn2π.w_n=\frac{\beta_n}{2\pi}.

Therefore:

· Fixed or free ends:

wn=n2  w_n=\frac{n}{2}.   This is a half-integer winding.

· Periodic container:

wn=n.  w_n=n.   This is an integer winding.

In an ideal container, βn \beta_n is exactly an integer multiple of π\pi or 2π2\pi. In a real basin, sloping bottoms, partial reflections, continuous stratification, friction, and mean flow make the quantization approximate. Then

βnπn\frac{\beta_n}{\pi}\approx nor\quad\text{or}\quadβn2πn.\frac{\beta_n}{2\pi}\approx n.

So βn\beta_n is almost an integer multiple of π\pi or 2π2\pi, and the winding number is almost an integer or half-integer.

6. Summary

The two-layer system is forced non-autonomously by the tide parameterized by Doodson coefficients — I calibrate via LOD measurements. The barotropic mode drives the whole column; the baroclinic mode responds internally as the layers slide against each other. In a separable standing-wave picture, the spatial structure is governed by the dimensionless transfer wavenumber

βn=ωnLc.\beta_n = \frac{\omega_n L}{c}.

Boundary conditions quantize βn\beta_n to nπn\pi or 2πn 2\pi n, depending on whether the container has fixed/free ends or is periodic. The wavelength follows from

λn=2πLβn.\lambda_n = \frac{2\pi L}{\beta_n}.

The winding number is

wn=βn2π,w_n = \frac{\beta_n}{2\pi},

which counts how many full phase cycles fit into the container. In the amplitude mapping

Y=Csin(βX+ϕ)+A,Y = C\sin(\beta X+\phi)+A,

the same β\beta acts as a dimensionless transfer wavenumber between the barotropic amplitude XX and the baroclinic amplitude YY. If XX is a tidal phase, β\beta is a winding-like number. Thus β\beta ties together the spatial standing-wave quantization, the wavelength selection, and the amplitude-to-amplitude coupling in one dimensionless quantity.


As I said at the top, this is a simpler recasting of the complete Laplace’s Tidal Equations derivation I did in Chapter 12, skipping the details needed to understand a single homogeneous layer — the switch to a two-layer stratified system amazingly — although non-intuitively — makes it more concise (see a recent paper by Beron-Vera2 where the claim is that stratification reduces vortex filamentation, a complex autonomous response).

That is enough background needed to understand the concept and design of the winding scalogram tool. The idea is that it takes a model of the forcing driver, which is actually a hidden latent manifold in terms defined by Brunton3 and then does a series of sinusoidal mappings of various frequencies to the forcing response surface, i.e. the baroclinic thermocline layer. This is akin to the way a wavelet scalogram works, aggregating the mapping within a finite window, but novel in other ways (IOW it does not use wavelets). The implementation of the winding scalogram tool in this GitHub repo: https://github.com/pukpr/winding_scalogram

I have spent a good deal of time trying to understand the best representation of this barotropic time-series, but it seemed to jump out most obviously when I modeled the AMO, below — the upper chart is the forcing applied to the AMO data and the lower chart is that of the model. In essence the upper chart can be used to guide the selections of the transfer wavenumbers for the fitting stage, which when completed leads to the lower chart.

Graph displaying the Atlantic Multidecadal Oscillation (AMO) data and model wind patterns over time, with vertical bars representing winding numbers and color coding indicating log power relative to a white-noise floor.

The bright yellow horizontal striations, or ridges, are the strong transfer wavenumbers/windings with a red dotted line pointing to an indication of the value. If the individual ridges are unbroken across the complete time span it indicates a great deal of stationarity in the sin(βX) \sin(\beta X) modulation. For AMO, a very apparent ridge sits close to zero. This corresponds to a very low winding that effectively rectifies the ~120-year cycle of lunisolar tidal forcing into the 60 year AMO cycle. In the chart below, the forcing driver is in the middle-left panel and the AMO data and model fit is in the upper-left panel. It is easy to visualize the rectification leading to the frequency doubling. Yet, the parsimony of the approach is in how the faster, erratic cycles are also mapped from the tidal cycles.

Time series data with blue and red lines showing model and data correlation from 1880 to 2026.

To those that wonder what happened to the concept of integer windings, I am not considering the standing modes and so haven’t done any rescaling. That will come later.

The winding scalogram works very well with every climate index considered, as strong stationary unbroken ridges are identifiable for the models evaluated in this recent post and the follow-up.

A full-circle moment occurs when the mean-sea-level (MSL) for an aggregated set of Baltic coastal stations is considered. A strong higher winding is clearly observed below as a bright yellow ridge at 1.245

A heatmap comparing data and model results of wind patterns against forcing, with years on the x-axis and winding numbers on the y-axis. The top panel shows the data from a specific column, while the bottom panel presents the model for a different column. Color indicates power levels relative to a white-noise floor.

This single ridge is responsible for the majority of this excellent baroclinic fit shown below:

Line graph showing Baltic time series data across years with blue and red lines representing different models and observed data.

I consider this full circle because the model is using tidal forces to map out MSL variations which ostensibly and intuitively could be guessed as due to tides, yet like AMO and ENSO, the erratic monthly MSL have never been adequately modeled and attributed to any specific factor.

BTW, this is nowhere near (many orders of magnitude less in fact) the computational load to solve full fluid dynamics GCM formulations (10 MW-hours per simulated year) nor the perhaps even larger computational load required to solve a Navier-Stokes challenge (10,000 agents running for 88 hours costing millions of dollars of compute time, guessing > 1,000 MW-hours energy consumption)

Footnotes:

  1. P. Pukite, D. Challou, and D.Coyne, Mathematical Geoenergy, (Wiley, 2018), https://agupubs.onlinelibrary.wiley.com/doi/book/10.1002/9781119434351 ↩︎
  2. F. J. Beron-Vera; Extended shallow-water theories with thermodynamics and geometry. Physics of Fluids 1 October 2021; 33 (10): 106605. https://doi.org/10.1063/5.0068557 ↩︎
  3. Vinuesa, R., Brunton, S.L. & Mengaldo, G. Explainable AI: learning from the learners. Nat Commun 17, 7933 (2026). https://doi.org/10.1038/s41467-026-76359-w ↩︎

Leave a Reply