Skip to content

Commit

Permalink
Merge pull request #48 from megies/fix_hyp200_horizontal_errors
Browse files Browse the repository at this point in the history
fix horizontal errors read from hyp2000 (conversion to m was missing)
  • Loading branch information
megies authored Mar 21, 2017
2 parents cc353dc + b5878de commit 6e40180
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ master
(by default "alt" key, see #45)
- fix station metadata output in hypo71 format (for location routines)
for longitude <0 (see #47)
- fix horizontal errors read after hyp2000 location (conversion from km to m
was missing, see #48)

0.4.1
- fix minor bug that prevents 0.4.0 from running
Expand Down
3 changes: 2 additions & 1 deletion obspyck/obspyck.py
Original file line number Diff line number Diff line change
Expand Up @@ -2566,7 +2566,8 @@ def loadHyp2000Data(self):
o.longitude = lon
o.latitude = lat
o.depth = depth * (-1e3) # meters positive down!
ou.horizontal_uncertainty = errXY
# all errors are given in km!
ou.horizontal_uncertainty = errXY * 1e3
ou.preferred_description = "horizontal uncertainty"
o.depth_errors.uncertainty = errZ * 1e3
oq.standard_error = rms #XXX stimmt diese Zuordnung!!!?!
Expand Down

0 comments on commit 6e40180

Please sign in to comment.