title: Get lag with cross-correlation?
body: <p>Let's say have have two signals:</p>
  
  <pre><code>import numpy
  dt = 0.001
  
  t_steps = np.arange(0, 1, dt)
  a_sig = np.sin(2*np.pi*t_steps*4+5)
  b_sig = np.sin(2*np.pi*t_steps*4)
  </code></pre>
  
  <p>I want to shift the first signal to match the second signal. I know this can be completed using cross-correlation, as evidenced by Matlab, but how do I accomplish this with SciPy.</p>