Browse Source

fix: velocity and acceleration from displacement

fix_acc_vel_derrivation
braunfuss 9 months ago
parent
commit
a42a2450d0
  1. 4
      src/gf/seismosizer.py

4
src/gf/seismosizer.py

@ -2864,9 +2864,9 @@ class VectorRule(Rule):
data = data + base_seismogram[d].data * sd
if self.differentiate:
data = num.diff(data, prepend=data[0])*base_seismogram[d].deltat
data = num.diff(data, prepend=data[0])/base_seismogram[d].deltat
if self.differentiate == 2:
data = num.diff(data, prepend=data[0])*base_seismogram[d].deltat
data = num.diff(data, prepend=data[0])/base_seismogram[d].deltat
return data

Loading…
Cancel
Save