Update comp_snr_ts authored by Kentaro Mogushi's avatar Kentaro Mogushi
...@@ -44,3 +44,17 @@ plt.close() ...@@ -44,3 +44,17 @@ plt.close()
# noise optimal SNR # noise optimal SNR
- compare the double and triple whitened time series in PyCBC
```
w = d_pycbc.whiten(1,1)
#plt.plot(w.sample_times, w.data, label='whiten 1')
w = w.whiten(1,1)
plt.plot(w.sample_times, w.data, alpha=0.5, label='whiten 2')
w = w.whiten(1,1)
plt.plot(w.sample_times, w.data, alpha=0.5, ls='--', label='whiten 3')
plt.legend()
plt.savefig('test.png')
plt.close()
```
![Screen_Shot_2021-03-11_at_4.20.42_PM](uploads/474fb87befe55250b5ccd32d54d80829/Screen_Shot_2021-03-11_at_4.20.42_PM.png)