From b4e8e93ac4a5f822a48df92ca1d0319f22bce571 Mon Sep 17 00:00:00 2001 From: Nikolaos Triantafyllis Date: Tue, 25 Oct 2022 21:56:57 +0300 Subject: [PATCH 1/2] Use attached response instead of inventory, cause rotation issue --- src/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.py b/src/stream.py index f83fc16..0f96ad4 100644 --- a/src/stream.py +++ b/src/stream.py @@ -272,7 +272,7 @@ def correct(stream): # flat signal st.detrend('linear') # remove_response - st.remove_response(inventory=inv, + st.remove_response(inventory=None, output='VEL', # output units in Velocity (m/s) pre_filt=(0.001, 0.002, 8, 9), # bandpass frqs (Hz) zero_mean=True, # detrend(demean) From ba9609e7c17ce08edcc9a162dae86e7c73426f59 Mon Sep 17 00:00:00 2001 From: Nikolaos Triantafyllis Date: Wed, 26 Oct 2022 15:09:51 +0300 Subject: [PATCH 2/2] Remove components definition from rotation, cause it seems not working for not ZNE stations --- src/stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream.py b/src/stream.py index 0f96ad4..d249f3e 100644 --- a/src/stream.py +++ b/src/stream.py @@ -219,8 +219,7 @@ def correct(stream): st=st.trim(starttime=config.org.time-10) # rotate will always bring components to ZNE name - st.rotate(method="->ZNE", inventory=inv, \ - components=tuple(config.cfg['Inventory']['Components'])) + st.rotate(method="->ZNE", inventory=inv) if 'snr' in config.cfg['Stream']['Modules']: # filter traces by SNR @@ -346,3 +345,4 @@ def prioritize(): config.st.write(os.path.join(config.workdir,'streams_corrected.mseed'), \ format='MSEED') +