Skip to content

Commit 4d830b0

Browse files
committed
grab Z component to ensure correct sample rate
1 parent 0f15e6b commit 4d830b0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

2-rotate_H1H2_NE_RT.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@
8686
t = traces_rt[1]
8787

8888
# Define new data streams
89-
st_bhn = st[0].copy()
89+
st_bhn = st.select(component="Z")[0].copy()
9090
st_bhn.stats.channel = Ncomp
9191
st_bhn.data = n
92-
st_bhe = st[0].copy()
92+
st_bhe = st.select(component="Z")[0].copy()
9393
st_bhe.stats.channel = Ecomp
9494
st_bhe.data = e
95-
st_bht = st[0].copy()
95+
st_bht = st.select(component="Z")[0].copy()
9696
st_bht.stats.channel = Tcomp
9797
st_bht.data = t
98-
st_bhr = st[0].copy()
98+
st_bhr = st.select(component="Z")[0].copy()
9999
st_bhr.stats.channel = Rcomp
100100
st_bhr.data = r
101101

2-rotate_NE_RT.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
t = traces_rt[1]
5656

5757
# Define new data streams
58-
st_bht = st[0].copy()
58+
st_bht = st.select(component="Z")[0].copy()
5959
st_bht.stats.channel = Tcomp
6060
st_bht.data = t
61-
st_bhr = st[0].copy()
61+
st_bhr = st.select(component="Z")[0].copy()
6262
st_bhr.stats.channel = Rcomp
6363
st_bhr.data = r
6464

0 commit comments

Comments
 (0)