See https://foss.heptapod.net/fluiddyn/fluidsim/blob/branch/default/fluidsim/solvers/ns2d/strat/output/spatio_temporal_spectra.py