title: Normalizing temperature data that is result from auto correlation
body: <p>I have a temperature signal and a strain signal.
  I have computed the ACF of both signals using <code>np.correlate(..., "same")</code>, so now I have get a correlated signal with same length as the inputs.</p>
  
  <p>I correlate the temperature with the strain using <code>np.correlate(Temperature, Strain,"same")</code>.</p>
  
  <p>I get a correlated signal, then I shift it by calculating the max peaks.</p>
  
  <p>Now the amplitude of the correlated shifted temperature signal is very high, I want to normalize it to 0 degrees to 40 degrees. </p>
  
  <p>How would I do that?</p>
  
  <pre><code> # ACF between two components
      x1x2 = np.correlate(normalized[:,0], ydatanew, 'same')
  
      # see the results
      f = plt.figure()
      ax = f.add_subplot(111)
      ax.set_title('ACF')
      ax.plot(x1x2)
      peaks_indices = signal.find_peaks_cwt(x1x2, np.arange(1,10))
      delta_index = np.argmax(peaks_indices);
      print(delta_index)
      shifted_signal = x1x2[delta_index:]
      f = plt.figure()
      ax = f.add_subplot(111)
      ax.set_title("shifted temperature Signal")
      ax.plot(shifted_signal)
      # mainloop
      plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/YzrJS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YzrJS.png" alt="enter image description here"></a></p>
  
  <p><a href="http://www.mediafire.com/file/r7dg7i9dacvpl2j/curve_fitting_ahmed.xlsx/file" rel="nofollow noreferrer">http://www.mediafire.com/file/r7dg7i9dacvpl2j/curve_fitting_ahmed.xlsx/file</a>
  data file</p>