|
|
|
@ -826,7 +826,6 @@ def wf_cluster_plot(resultcat, subset_stations_and_indices, waveform_dir, arriva
|
|
|
|
|
want_incomplete=True, degap=True, maxgap=10, |
|
|
|
|
trace_selector=lambda tr: tr.station == st.station and |
|
|
|
|
tr.channel.endswith('Z'))[0] |
|
|
|
|
print('tr Z found', tr_Z) |
|
|
|
|
if 'N' in test_comps: |
|
|
|
|
tr_N = p.all(tmin=arr-cc_cnf.filtertmin, tmax=arr+cc_cnf.filtertmax, |
|
|
|
|
want_incomplete=True, degap=True, maxgap=10, |
|
|
|
@ -878,7 +877,7 @@ def wf_cluster_plot(resultcat, subset_stations_and_indices, waveform_dir, arriva
|
|
|
|
|
try: |
|
|
|
|
if 'Z' in test_comps: |
|
|
|
|
tr_Z.chop(tmin=arr - t_buffer, tmax=arr + twd[1]+t_buffer) |
|
|
|
|
logger.info('first chop %s %s %s ' % (tr_Z.tmin, tr_Z.tmax, len(tr_Z.ydata))) |
|
|
|
|
logger.debug('first chop %s %s %s ' % (tr_Z.tmin, tr_Z.tmax, len(tr_Z.ydata))) |
|
|
|
|
if 'N' in test_comps: |
|
|
|
|
tr_N.chop(tmin=arr - t_buffer, tmax=arr + twd[1]+t_buffer) |
|
|
|
|
if 'E' in test_comps: |
|
|
|
@ -1270,7 +1269,6 @@ def wf_cluster_snuffle(resultcat, subset_stations_and_indices, waveform_dir, arr
|
|
|
|
|
tr_Z = p.all(tmin=arr-cc_cnf.filtertmin, tmax=arr+cc_cnf.filtertmax, |
|
|
|
|
trace_selector=lambda tr: tr.station == st.station and |
|
|
|
|
tr.channel.endswith('Z'))[0] |
|
|
|
|
print('tr Z found', tr_Z) |
|
|
|
|
if 'N' in test_comps: |
|
|
|
|
tr_N = p.all(tmin=arr-cc_cnf.filtertmin, tmax=arr+cc_cnf.filtertmax, |
|
|
|
|
trace_selector=lambda tr: tr.station == st.station and |
|
|
|
@ -1320,7 +1318,7 @@ def wf_cluster_snuffle(resultcat, subset_stations_and_indices, waveform_dir, arr
|
|
|
|
|
try: |
|
|
|
|
if 'Z' in test_comps: |
|
|
|
|
tr_Z.chop(tmin=arr - t_buffer, tmax=arr + twd[1]+t_buffer) |
|
|
|
|
logger.info('first chop %s %s %s ' % (tr_Z.tmin, tr_Z.tmax, len(tr_Z.ydata))) |
|
|
|
|
logger.debug('first chop %s %s %s ' % (tr_Z.tmin, tr_Z.tmax, len(tr_Z.ydata))) |
|
|
|
|
if 'N' in test_comps: |
|
|
|
|
tr_N.chop(tmin=arr - t_buffer, tmax=arr + twd[1]+t_buffer) |
|
|
|
|
if 'E' in test_comps: |
|
|
|
|