Replaced hard coded window length for getting Wood-Anderson peak-to-peak amplitude with formerly set window length for calculating CF for S-picking.

This commit is contained in:
Ludger Küperkoch 2015-08-31 10:10:42 +02:00
parent 69c17f9fdb
commit d756f5d2e1

View File

@ -519,7 +519,7 @@ def autopickstation(wfstream, pickparam):
cordat = data.restituteWFData(invdir, h_copy)
# calculate WA-peak-to-peak amplitude
# using subclass WApp of superclass Magnitude
wapp = WApp(cordat, mpickS, 10, iplot)
wapp = WApp(cordat, mpickS, mpickP + sstop, iplot)
Ao = wapp.getwapp()
else:
@ -541,7 +541,7 @@ def autopickstation(wfstream, pickparam):
cordat = data.restituteWFData(invdir, h_copy)
# calculate WA-peak-to-peak amplitude
# using subclass WApp of superclass Magnitude
wapp = WApp(cordat, mpickP, 20, iplot)
wapp = WApp(cordat, mpickP, mpickP + sstop, iplot)
Ao = wapp.getwapp()
else: