[cig-commits] [commit] master: PyAxi.py: Seismograms start at t=0 now (b5d270c)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Sep 18 04:49:53 PDT 2014


Repository : https://github.com/geodynamics/axisem

On branch  : master
Link       : https://github.com/geodynamics/axisem/compare/7e55ac39bdc9d5a95788177811461e297c4e3658...b5d270c74aaab1fe654a391e1944febef04a66bc

>---------------------------------------------------------------

commit b5d270c74aaab1fe654a391e1944febef04a66bc
Author: Simon Stähler <staehler at geophysik.uni-muenchen.de>
Date:   Thu Sep 18 13:49:18 2014 +0200

    PyAxi.py: Seismograms start at t=0 now
    
     - Just a very hacky fix to avoid timeshift in testing routines


>---------------------------------------------------------------

b5d270c74aaab1fe654a391e1944febef04a66bc
 TESTING/PyAxi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/TESTING/PyAxi.py b/TESTING/PyAxi.py
index 90ca06c..61c5d37 100644
--- a/TESTING/PyAxi.py
+++ b/TESTING/PyAxi.py
@@ -990,7 +990,7 @@ def PyAxi(**kwargs):
                         ax.plot(t[i], dat + n, colors[i], label='_nolegend_', ls=linestyles[i])
                 # compute l2 misfits
                 dat1 = sgs[0].select(station=stat, channel='*'+chan)[0].data
-                dat2 = sgs[2].select(station=stat, channel='*'+chan)[0].data
+                dat2 = sgs[2].select(station=stat, channel='*'+chan)[0].data[1:]
                 l2misfit.append(((dat1 - dat2)**2).sum()**.5 / maxi /
                        sgs[0][0].stats.npts)
             



More information about the CIG-COMMITS mailing list