Can analysis use a long window?

Topic | 2 min read

Long ranges on Original Raw Data are read in chunks: six modules give the one-pass result, and Recording Overview always reads in chunks.

How it works

When an analysis on Original Raw Data needs more working memory than the app allows at once, the range is read from the file in consecutive chunks instead of being blocked. Every sample keeps the value it has in a one-pass read.

Power Spectral Analysis (Welch), Aperiodic / Spectral Slope Analysis and Channel Group Band Power Comparison average Welch segments that each lie inside one chunk and are detrended on their own.

Time-Frequency Analysis and Band Power Timeline compute every time bin inside one chunk.

Time-Domain Signal Metrics reads the range twice: first the count, mean, minimum, maximum, RMS and zero crossings, then the variance and the clipping check against the exact mean and extremes.

Results match the one-pass calculation apart from floating-point rounding. A long range takes longer because more of the file is read.

Recording Overview always reads its range in chunks, whatever its length: every 2 s window lies inside one chunk, so the result does not depend on how the range is cut, and the grid is kept small enough to fit beside the chunk in memory.

Limits

FFT PSD, Spectrogram, Saved Preprocessing Run sources and channels with different sample rates still need the whole range in one piece and report the memory limit; choose fewer channels or a shorter range. Recording Overview needs channels with one sample rate.