<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 The separation between the two peaks is about 704 $\mu$s. We set this in SRS to be 700 $\mu$ s so this is within the uncertainty that we set.
Step1:  The maximum amplitude of the echo occurs at 1,493 $\mu$ s.
Step2:  The echo is still in the correct space!! Whoot whoot!
Time Uncertainty
<ASSISTANT_TASK:>
Python Code:
sig_new = signal[5000:,]
max_inds = arg(sig_new[:,1], np.greater, order=600)
plt.plot(sig_new[max_inds,0], sig_new[max_inds, 1], 'rp')
plt.plot(sig_new[:,0],sig_new[:,1], label = "signal");
echo_t = sig_new[max_inds[0][2],0]
echo_t -t0
Explanation: The separation between the two peaks is about 704 $\mu$s. We set this in SRS to be 700 $\mu$ s so this is within the uncertainty that we set.
End of explanation
(echo_t-t0)/tau
Explanation: The maximum amplitude of the echo occurs at 1,493 $\mu$ s.
End of explanation
signal_1 = np.loadtxt(data_dir+"ch4.isf", delimiter=",")
signal_2 = np.loadtxt("../Data/20171114_NMR_data_2_ch4.isf", delimiter=",")
signal_3 = np.loadtxt("../Data/20171114_NMR_data_3_ch4.isf", delimiter=",")
endcap = 5000
plt.plot(signal_1[endcap:,0], signal_1[endcap:,1])
plt.plot(signal_2[endcap:,0], signal_2[endcap:,1])
plt.plot(signal_3[endcap:,0], signal_3[endcap:,1])
sig_new = signal_1[5000:,]
max_inds = arg(sig_new[:,1], np.greater, order=600)
plt.plot(sig_new[max_inds,0], sig_new[max_inds, 1], 'rp')
plt.plot(sig_new[:,0],sig_new[:,1], label = "signal")
echo_t = sig_new[max_inds[0][2],0]
echo_t -t0
sig_new = signal_2[5000:,]
max_inds = arg(sig_new[:,1], np.greater, order=600)
plt.plot(sig_new[max_inds,0], sig_new[max_inds, 1], 'rp')
plt.plot(sig_new[:,0],sig_new[:,1], label = "signal")
echo_t = sig_new[max_inds[0][2],0]
echo_t -t0
sig_new = signal_3[5000:,]
max_inds = arg(sig_new[:,1], np.greater, order=600)
plt.plot(sig_new[max_inds,0], sig_new[max_inds, 1], 'rp')
plt.plot(sig_new[:,0],sig_new[:,1], label = "signal")
echo_t = sig_new[max_inds[0][2],0]
echo_t -t0
peaks = [0.0014928000000000001, 0.0014851999999999999, 0.0014863999999999999]
##Uncertainty is half the difference between min and max
(0.0014928000000000001 - 0.0014851999999999999)/2
Explanation: The echo is still in the correct space!! Whoot whoot!
Time Uncertainty
End of explanation
<END_TASK>