obspy.signal.util.enframe

enframe(x, win, inc)[source]

Splits the vector up into (overlapping) frames beginning at increments of inc. Each frame is multiplied by the window win(). The length of the frames is given by the length of the window win(). The centre of frame I is x((I-1)*inc+(length(win)+1)/2) for I=1,2,… The mean is also subtracted from each individual frame.

Parameters
  • x – signal to split in frames

  • win – window multiplied to each frame, length determines frame length

  • inc – increment to shift frames, in samples

Return f

output matrix, each frame occupies one row

Return length, no_win

length of each frame in samples, number of frames