Browse Source

SNR comp no data error message - added that error is during snr comp

main
gesap 2 weeks ago
parent
commit
eee340044a
  1. 4
      src/cc.py

4
src/cc.py

@ -751,7 +751,7 @@ def comp_snr(tr, arr, twd, stname, evname):
try:
signal_wdw = tr.chop(tmin=arr+twd[0][0], tmax=arr+twd[-1][1], inplace=False).ydata
except trace.NoData:
logger.warning('%s %s: No data for phase arrival' % (stname, evname))
logger.warning('%s %s: SNR calculation - No data for phase arrival' % (stname, evname))
snr =0.
return snr
@ -768,7 +768,7 @@ def comp_snr(tr, arr, twd, stname, evname):
noise_wdw = tr.chop(tmin=tr.tmin, tmax=arr, inplace=False).ydata
except trace.NoData:
logger.warning('%s %s: No noise time window extracted, skipping event.'
logger.warning('%s %s: SNR calculation - No noise time window extracted, skipping event.'
% (stname, evname))
logger.debug('%s %s: tr tmin %s, arr %s, tr tmax %s'

Loading…
Cancel
Save