Skip to content

Commit

Permalink
Major bug fix when same TYPE records found
Browse files Browse the repository at this point in the history
Before fix, Gisola could use e.g. NET.STA.LOC.HH as NET.STA.LOC.BH and vice versa. Theoretically, since both types of traces passed the filters, both are equivalent and qualified for the process. Rationally, MT solution will not change, but streams could be displayed wrong in terms only of channel type (at the level of station).
  • Loading branch information
nikosT authored Feb 26, 2022
1 parent 366ad63 commit 25273e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,6 @@ def verify(tr):
endtime=config.org.time+math.ceil(max([tl for tl in config.windowRules]))+1
config.st.trim(config.org.time, endtime)

# save corrected waveforms
config.logger.info(('Saving corrected waveforms in one mseed file in ' + \
'{}').format(os.path.join(config.workdir,'streams_corrected.mseed')))
config.st.write(os.path.join(config.workdir,'streams_corrected.mseed'), \
format='MSEED')

# function runs for individual station/channel triplet in parallel
def warning(func):
def inner():
Expand Down Expand Up @@ -345,4 +339,10 @@ def prioritize():
for sta in stations[config.cfg['Green']['MaxStations']:]:
for tr in config.st.select(station=sta[0]):
config.st.remove(tr)

# save corrected waveforms
config.logger.info(('Saving corrected waveforms in one mseed file in ' + \
'{}').format(os.path.join(config.workdir,'streams_corrected.mseed')))
config.st.write(os.path.join(config.workdir,'streams_corrected.mseed'), \
format='MSEED')

0 comments on commit 25273e6

Please sign in to comment.