BGlib.gmode.proc.gmode_utils.decompress_response

BGlib.gmode.proc.gmode_utils.decompress_response(f_condensed_mat, num_pts, hot_inds)[source]

Returns the time domain representation of waveform(s) that are compressed in the frequency space

Parameters:
  • f_condensed_mat (1D or 2D complex numpy arrays) – Frequency domain signals arranged as [position, frequency]. Only the positive frequncy bins must be in the compressed dataset. The dataset is assumed to have been FFT shifted (such that 0 Hz is at the center).

  • num_pts (unsigned int) – Number of points in the time domain signal

  • hot_inds (1D unsigned int numpy array) – Indices of the frequency bins in the compressed data. This index array will be necessary to reverse map the condensed FFT into its original form

Returns:

time_resp – Time domain response arranged as [position, time]

Return type:

2D numpy array

Notes

Memory is given higher priority here, so this function loops over the position instead of doing the inverse FFT on the complete data.