Segmenting datasets: Difference between revisions

From Atomix
Line 9: Line 9:
* Statistical significance of the resulting spectra
* Statistical significance of the resulting spectra


==Application to measured velocities==
[[File:Long timeseries.png|400px|thumb|Measured velocities at 4 Hz from an [[Acoustic-Doppler Velocimeters]] have been detrended using three different techniques. Empirical modal decomposition (EMD) <ref name="Wuetal_PNAS">{{Cite journal
|authors=Zhaohua Wu, Norden E. Huang, Steven R. Long, and Chung-Kang Peng
|journal_or_publisher=PNAS
|paper_or_booktitle=On the trend, detrending, and variability of nonlinear and nonstationary time series
|year=2007
|doi=10.1073/pnas.0701020104
}}</ref>, linear trend, and a 2nd order low-pass Butterworth filter. A cut-off period of 10 min was targeted by both the filter and EMD]]


Measurements are typically collected in the following two ways:
Measurements are typically collected in the following two ways:
Line 25: Line 16:


<div><ul>  
<div><ul>  
<li style="display: inline-block; vertical-align: top;"> [[File:Short timeseries.png|thumb|none|350px|Zoom of the first 512 s segment of the measured velocities shown above including the same trends]]  
<li style="display: inline-block; vertical-align: top;"> [[File:Short timeseries.png|thumb|none|350px|Z512 s segment of the measured velocities after applying different [[Detrending time series|detrending methods]]]]  
</li>
</li>
<li style="display: inline-block; vertical-align: top;"> [[File:Short_spectra.png|thumb|none|350px|Example velocity spectra of the short 512 s of records before and after different detrending techniques applied to the original 6h  time series. The impact of the detrending method can be seen at the lowest frequencies only]] </li>
<li style="display: inline-block; vertical-align: top;"> [[File:Short_spectra.png|thumb|none|350px|Example velocity spectra of the short 512 s of records before and after different detrending techniques applied to the original 6h  time series. The impact of the detrending method can be seen at the lowest frequencies only]] </li>

Revision as of 01:52, 5 July 2022


Once the raw observations have been quality-controlled, then you must split the time series into shorter segments by considering:


Measurements are typically collected in the following two ways:

  • continuously, or in such long bursts that they can be considered continuous
  • short bursts that are typically at most 2-3x the expected largest turbulence time scales (e.g., 10 min in ocean environments)

This segmenting step dictates the minimum burst duration when setting up your equipment. The act of chopping a time series into smaller subsets, i.e., segments, is effectively a form of low-pass (box-car) filtering. How to segment the time series is usually a more important consideration than detrending the time series since estimating [math]\displaystyle{ \varepsilon }[/math] relies on resolving the inertial subrange in the final spectra computed over each segment.

  • Z512 s segment of the measured velocities after applying different detrending methods
  • Example velocity spectra of the short 512 s of records before and after different detrending techniques applied to the original 6h time series. The impact of the detrending method can be seen at the lowest frequencies only

Trade-offs

The shorter the segment, the higher the temporal resolution of the final [math]\displaystyle{ \varepsilon }[/math] time series and the more likely the segment will be stationary. However, the spectrum's lowest resolved frequency and frequency resolution depends on the duration of the signal used to construct the spectrum. Therefore, the segment must remain sufficiently long such that the lowest wavenumber (frequencies) of the inertial subrange are resolved by the spectra. This is particularly important when measurement noise drowns the highest wavenumber (frequencies) of the inertial subrange. Thus, using too short segments may inadvertently render the resulting spectra unusable for deriving [math]\displaystyle{ \varepsilon }[/math] from the inertial subrange by virtue of no longer resolving this subrange.

Rules of thumb

A good rule of thumb for tidally-influenced environments is 5 to 15 min segments.

Example theoretical velocity spectra for different [math]\displaystyle{ \varepsilon }[/math]. The inertial subrange extends to a smaller wavenumber as [math]\displaystyle{ \varepsilon }[/math] increases. The lowest frequency resolved by a spectra depends on the fft-segment length used when computing the spectra

Notes