Previous effort: (Cross) Correlation functions
This page presents the analysis of the N and S current meter records
using the Matlab psd and csd commands, which basically:
The script cohphase.m does the work:
In the subsequent plots, the 2 original series have length N=1775. I varied the values of nfft and the Hanning window width and decided that nfft=512 and a window width of 512 yielded the best combination of frequency resolution and confidence in spectral peaks. These values result in an effective degree of freedom EDOF~5.
This procedure should be tested with synthetic data to gain confidence. Further experimentation with the field data and more advice is certainly warranted. Also, a good next exercise might be to do all the psd/csd steps manually to gain more intuition about the DFTs (or FFTs) and the windowing process. Try raw FFTs and band or block averaging, as an alternative to windowing the time series prior to transformation.
The first 3 plots show the (auto) spectra GNN, GSS, and the cross spectrum GSN. Each plot has three curves: the central blue spectrum and the bounding 95% confidence intervals (red upper, green lower) at each frequency.
The next 2 plots show the coherence and phase lag between the southern and northern meter. The latter plot has a zoomed x-axis that focuses on tidal and subtidal frequencies.
This plot suggests there are peaks at the following frequencies and periods:
f T (hr) .082 12.2 .070 14.3 .058 17.2 .032 31.25 <.013 >76
One thing that is frustrating is that the spectral resolution is so low in the tidal to subtidal frequency range (0-0.1 cphr). This is why it might be worth next trying to calculate raw FFTs and proceed toward coherence after some minimal band averaging...