Browse Source

fix: velocity and acceleration from displacement

fix_acc_vel_derrivation
braunfuss 2 months ago
parent
commit
a42a2450d0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/gf/seismosizer.py

+ 2
- 2
src/gf/seismosizer.py View File

@@ -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