From 87cc4eb5380eea396c7ac8f5ad9add7a526596e4 Mon Sep 17 00:00:00 2001 From: Justin Barno Date: Mon, 20 Jun 2022 07:53:38 -0700 Subject: [PATCH] Small patch to fix an event depth header bug. --- .../gnem/apps/coda/common/gui/converters/sac/SacExporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibration-gui/src/main/java/gov/llnl/gnem/apps/coda/common/gui/converters/sac/SacExporter.java b/calibration-gui/src/main/java/gov/llnl/gnem/apps/coda/common/gui/converters/sac/SacExporter.java index 98b26a2d..64857354 100644 --- a/calibration-gui/src/main/java/gov/llnl/gnem/apps/coda/common/gui/converters/sac/SacExporter.java +++ b/calibration-gui/src/main/java/gov/llnl/gnem/apps/coda/common/gui/converters/sac/SacExporter.java @@ -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")) {