Browse Source

fix: velocity and acceleration from displacement

fix_acc_vel_derrivation
braunfuss 2 months ago
parent
commit
500f1441cb
2 changed files with 8 additions and 2 deletions
  1. +5
    -1
      CHANGELOG.md
  2. +3
    -1
      src/gf/seismosizer.py

+ 5
- 1
CHANGELOG.md View File

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



+ 3
- 1
src/gf/seismosizer.py View File

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