This commit is contained in:
Valentin Boettcher 2023-03-18 18:03:00 -04:00
parent cc8c18b4e7
commit 21ce9da188
19 changed files with 547 additions and 0 deletions

21
data/Code.txt Normal file
View file

@ -0,0 +1,21 @@
import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import find_peaks
fname = 'Enter file name.txt'
slices_SB_2 = np.loadtxt(fname)
def find_peaks_SB(sig, h_min):
sig_et_0 = np.concatenate((np.zeros(1), sig, np.zeros(1)))
pics = find_peaks(sig_et_0, height=h_min, width=10)[0] - 1
return pics
def peak_map(slices_SB, h_min):
plt.figure()
for i in range(len(slices_SB)):
pics = find_peaks_SB(slices_SB[i], h_min)
for j in range(len(pics)):
plt.plot(pics[j], i, '.k')
h_min = 0.6
peak_map(slices_SB_2, h_min)

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long