Skip to content

Commit

Permalink
Merge pull request #8 from LLNL/bugfix/event_depth_header
Browse files Browse the repository at this point in the history
Small patch to fix an event depth header bug.
  • Loading branch information
justinbarno authored Jun 20, 2022
2 parents 44c36ec + 87cc4eb commit 5736025
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public SACHeader sacHeaderFromWaveform(Waveform w) throws IOException {
header.evlo = (float) w.getEvent().getLongitude();
//Evdp in meters and we expect Event->Depth to be km so need to convert
// back when we save
header.evdp = (float) (w.getEvent().getDepth() / 1000.0);
header.evdp = (float) (w.getEvent().getDepth() * 1000.0);
String depType = w.getSegmentType();
if (depType != null && !depType.trim().isEmpty()) {
if (depType.toLowerCase(Locale.ENGLISH).startsWith("dis")) {
Expand Down

0 comments on commit 5736025

Please sign in to comment.