Compute the spectra: Difference between revisions

From Atomix
mNo edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
To compute the spectrum of the turbulent velocity fluctuations, you need to:
To compute the spectrum of the turbulent velocity fluctuations, you need to:
# Determine appropriate [[#fftlength|fft-length]] and  [[#specavg|spectral averaging]] for each data [[Segmenting datasets|segment]]
# Compute the spectrum using standard techniques <ref name="EmeryThomson2001">{{Cite journal
|authors= Emery, W. J., and R. E. Thomson
|journal_or_publisher= Elsevier
|paper_or_booktitle=  Data analysis methods in physical oceanography, 2nd edition, Section 5.6.7-5.6.8
|year= 2001
|doi=(ISBN)9780080477008
}}</ref><ref name="Priestly1981">{{Cite journal
|authors= Priestly M.B.
|journal_or_publisher= Academic Press
|paper_or_booktitle=  Spectral analysis and time series: Multivariate series prediction and control
|year= 1981
|doi=(ISBN)0125649010
}}</ref>
# Convert the spectrum from the time domain to the space domain using the mean speed past the sensor {{FontColor|fg=white|bg=red|text= only for steady flows, not required for surface wave analysis}}
# Compute degrees of freedom (dof)  and confidence intervals of the final spectra <ref name="EmeryThomson2001"/> based on the assumption that the spectra observations are <math>\chi</math>-squared distributed i.e., the turbulent velocities are gaussian (normally distributed).


* Determine appropriate [[#fftlength|fft-length]] and their overlap when averaging spectra within each data [[Segmenting datasets|segment]]
==<span id="specavg">Spectral averaging</span> techniques==
* Compute the spectrum
Each segment is often subdivided into smaller [[#fftlength|fft-length]] long chunks (50% overlap), which are then windowed before estimating numerous spectra (FFT) that are block-averaged for increased statistical significance. Another averaging strategy is band-averaging spectra in the frequency domain, which allows the [[Segmenting datasets|segment length]] to be the same as the [[#fftlength|fft-length]]. A combination of both strategies is also possible. The final strategy depends on whether you need increased statistical significance for correcting motion-contaminated spectra using [[Velocity decontamination by cospectral methods|cospectral methods]], and the lowest frequencies (wavenumbers) you want to resolve.  
* Convert the spectrum from the time domain to the space domain using the mean speed past the sensor {{FontColor|fg=white|bg=red|text= only for steady flows, not required for surface wave analysis}}
* Compute degrees of freedom (dof) and confidence/significance levels of the final spectra.


The spectrum's lowest resolved frequency and final resolution are the inverses of the [[#fftlength| fft-length]]. The [[#fftlength|fft-length]] dictates the lowest frequencies resolved by the spectra, while the Nyquist frequency (half the sampling rate) dictates the largest frequency of the spectra. Whether these high and low frequencies are used to estimate <math>\varepsilon</math> depends on the measurement quality and whether they are located in the inertial subrange, respectively.


==Placeholder Example spectra==
[[File:Spectra computation.png|thumbnail|800px|Example vertical velocity spectra estimated from a 128-s long segment of observations, which highlights the spectral bandwidth and resolution using different spectral averaging strategies. Velocity spectra The original spectra (black) were estimated using 7 fft blocks, each 32 s long with a 50% overlap and a Hanning window applied on each block in the time-domain (21 degrees of freedom). The colored lines are spectra computed from the same segment but using alternate spectral averaging strategies. In red, the fft-length was halved to 16 s (43 degrees of freedom), while the third example (in purple) uses a combination of block and band averaging with the same number of blocks as the first example (black) but three adjacent frequencies were averaged together in the frequency domain increasing the degrees of freedom to 58. Note: the lowest frequencies of this spectra example are likely outside the inertial subrange as the peaks are almost statistically significant i.e., there's a deterministic signature at the lowest frequencies. Spectral-fitting algorithms can skip these frequencies, so this does not pose an issue for estimating <math>\varepsilon</math>]]
The spectrum's lowest resolved frequency and final resolution are the inverse of the [[#fftlength| fft-length]], i.e., the duration of the signal used to construct the spectrum. The spectra are often estimated by block averaging numerous spectra (FFT) estimated from smaller chunks of data within each segment. Another strategy is band-averaging spectra in the frequency domain. The fft-length i.e., the duration of data used to estimate each spectrum, is thus an important quantity that dictates the final range of frequencies resolved by the spectra.


* Add significance levels on spectra
==References==
* Coherence stuff for motion contamination (must be own page)


{{FontColor|fg=white|bg=red|text= Add an example spectra with fft shown, 2nd axis for frequencies. Another band-averaged spectra?. Remove redundant info from [[Segmenting datasets]]}}


[[Category:Velocity point-measurements]]
[[Category:Velocity point-measurements]]

Latest revision as of 15:43, 11 July 2022

To compute the spectrum of the turbulent velocity fluctuations, you need to:

  1. Determine appropriate fft-length and spectral averaging for each data segment
  2. Compute the spectrum using standard techniques [1][2]
  3. Convert the spectrum from the time domain to the space domain using the mean speed past the sensor only for steady flows, not required for surface wave analysis
  4. Compute degrees of freedom (dof) and confidence intervals of the final spectra [1] based on the assumption that the spectra observations are [math]\displaystyle{ \chi }[/math]-squared distributed i.e., the turbulent velocities are gaussian (normally distributed).

Spectral averaging techniques

Each segment is often subdivided into smaller fft-length long chunks (50% overlap), which are then windowed before estimating numerous spectra (FFT) that are block-averaged for increased statistical significance. Another averaging strategy is band-averaging spectra in the frequency domain, which allows the segment length to be the same as the fft-length. A combination of both strategies is also possible. The final strategy depends on whether you need increased statistical significance for correcting motion-contaminated spectra using cospectral methods, and the lowest frequencies (wavenumbers) you want to resolve.

The spectrum's lowest resolved frequency and final resolution are the inverses of the fft-length. The fft-length dictates the lowest frequencies resolved by the spectra, while the Nyquist frequency (half the sampling rate) dictates the largest frequency of the spectra. Whether these high and low frequencies are used to estimate [math]\displaystyle{ \varepsilon }[/math] depends on the measurement quality and whether they are located in the inertial subrange, respectively.

Example vertical velocity spectra estimated from a 128-s long segment of observations, which highlights the spectral bandwidth and resolution using different spectral averaging strategies. Velocity spectra The original spectra (black) were estimated using 7 fft blocks, each 32 s long with a 50% overlap and a Hanning window applied on each block in the time-domain (21 degrees of freedom). The colored lines are spectra computed from the same segment but using alternate spectral averaging strategies. In red, the fft-length was halved to 16 s (43 degrees of freedom), while the third example (in purple) uses a combination of block and band averaging with the same number of blocks as the first example (black) but three adjacent frequencies were averaged together in the frequency domain increasing the degrees of freedom to 58. Note: the lowest frequencies of this spectra example are likely outside the inertial subrange as the peaks are almost statistically significant i.e., there's a deterministic signature at the lowest frequencies. Spectral-fitting algorithms can skip these frequencies, so this does not pose an issue for estimating [math]\displaystyle{ \varepsilon }[/math]

References

  1. 1.0 1.1 Emery, W. J. and and R. E. Thomson. 2001. Data analysis methods in physical oceanography, 2nd edition, Section 5.6.7-5.6.8. Elsevier. doi:(ISBN)9780080477008
  2. Priestly M.B.. 1981. Spectral analysis and time series: Multivariate series prediction and control. Academic Press. doi:(ISBN)0125649010