Skip to content

Commit

Permalink
Removing Problematic RFs
Browse files Browse the repository at this point in the history
* RFs with peaks>1 are now removed prior to migration
  • Loading branch information
geojunky committed Mar 29, 2023
1 parent d9d2fc5 commit 26b1fc6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions seismic/receiver_fn/rf_ccp_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ def process_streams(self, output_file, fmin=None, fmax=None, primary_component='
before-after, before))
# end if

# RF amplitudes should not exceed 1.0 and should peak around onset time --
# otherwise, such traces are deemed problematic and discarded
before = len(p_traces)
p_traces = rf_util.filter_invalid_radial_component(p_traces)
after = len(p_traces)
if (before > after):
self._logger.info('rank {}: {} ({}/{}) traces '
'with amplitudes > 1.0 or troughs around onset time dropped..'.format(
self._rank, hkey,
before-after, before))
# end if

if(len(p_traces) == 0):
self._logger.warn('rank {}: {}: No traces left to process..'.format(self._rank, hkey))
continue
Expand Down

0 comments on commit 26b1fc6

Please sign in to comment.