The surrogate data technique has been developed to investigate the phase coherency of waves/structures observed.
reference:
https://royalsocietypublishing.org/rsta/article-abstract/366/1864/447/50838/Experimental-evidence-of-phase-coherence-of?redirectedFrom=fulltext
https://journals.aps.org/pre/abstract/10.1103/PhysRevE.75.046401
https://link.springer.com/article/10.1023/A:1025506124402
%config InlineBackend.figure_format='retina'
import math as mt
import matplotlib.pyplot as plt
import numpy as np
import scipy.fft as sf
import datetime
import bisect
import matplotlib.patches as patches
import matplotlib.dates as mdates
from IPython.display import display,Math
import matplotlib.animation as animation
plt.rcParams['font.size'] = 14
plt.rcParams['axes.linewidth'] = 1.5
plt.rcParams['animation.html'] = 'jshtml'
plt.rcParams['animation.embed_limit'] = 256 # Set limit to 256MB