Claculation of Wood-Anderson amplitude only, if S-weight < 4.

This commit is contained in:
Ludger Küperkoch 2015-08-28 11:39:39 +02:00
parent 827a07a7ef
commit eb592a3426

View File

@ -507,19 +507,20 @@ def autopickstation(wfstream, pickparam):
print 'autopickstation: S-weight: %d, SNR: %f, SNR[dB]: %f' % ( print 'autopickstation: S-weight: %d, SNR: %f, SNR[dB]: %f' % (
Sweight, SNRS, SNRSdB) Sweight, SNRS, SNRSdB)
################################################################## ##################################################################
# get Wood-Anderson peak-to-peak amplitude if Sweight < 4:
print "################################################" # get Wood-Anderson peak-to-peak amplitude
# initialize Data object print "################################################"
data = Data() # initialize Data object
# re-create stream object including both horizontal components data = Data()
hdat = edat.copy() # re-create stream object including both horizontal components
hdat += ndat hdat = edat.copy()
h_copy = hdat.copy() hdat += ndat
cordat = data.restituteWFData(invdir, h_copy) h_copy = hdat.copy()
# calculate WA-peak-to-peak amplitude cordat = data.restituteWFData(invdir, h_copy)
# using subclass WApp of superclass Magnitude # calculate WA-peak-to-peak amplitude
wapp = WApp(cordat, mpickS, 10, iplot) # using subclass WApp of superclass Magnitude
Ao = wapp.getwapp() wapp = WApp(cordat, mpickS, 10, iplot)
Ao = wapp.getwapp()
else: else:
print 'Bad initial (AIC) S-pick, skipping this onset!' print 'Bad initial (AIC) S-pick, skipping this onset!'