Browse Source

fix: velocity and acceleration from displacement

fix_acc_vel_derrivation
braunfuss 9 months ago
parent
commit
500f1441cb
  1. 6
      CHANGELOG.md
  2. 4
      src/gf/seismosizer.py

6
CHANGELOG.md

@ -9,6 +9,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- Support for rotational seismograms in GF stores and fomosto QSSP2017 backend.
### Fixed
- fixed incorrect acceleration and velocity values caused by missing
consideration of dt after derivation
## [2020.08.18]
### Added
@ -16,7 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Scenario-generator (Colosseo) now supports user-specified lists of stations.
### Changed
- FDSN client now checks arguments against service description (WADL) by
- FDSN client now checks arguments against service description (WADL) by
default.
- Improved FDSN client and documentation.

4
src/gf/seismosizer.py

@ -2864,7 +2864,9 @@ class VectorRule(Rule):
data = data + base_seismogram[d].data * sd
if self.differentiate:
data = num.diff(data)
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
return data

Loading…
Cancel
Save