Skip to content

Commit

Permalink
Update to go back to using Km for the Evdp field specifically based o…
Browse files Browse the repository at this point in the history
…n user request.
  • Loading branch information
justinbarno committed Jul 25, 2022
1 parent 86bf2b7 commit 11eba63
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion calibration-gui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<artifactId>calibration-gui</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ public SACHeader sacHeaderFromWaveform(Waveform w) throws IOException {
header.kevnm = w.getEvent().getEventId();
header.evla = (float) w.getEvent().getLatitude();
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());
String depType = w.getSegmentType();
if (depType != null && !depType.trim().isEmpty()) {
if (depType.toLowerCase(Locale.ENGLISH).startsWith("dis")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ public Result<Waveform> convertSacFileToWaveform(File file) {
if (SACHeader.isDefault(header.evdp)) {
eventDepth = 0;
} else {
//Just going to assume they are following the SAC header standard
// and using meters for this field and we want Km
eventDepth = header.evdp / 1000.0;
eventDepth = header.evdp;
}

String dataType = StringUtils.trimToEmpty((String) header.getVariableMap().get("depvariabletype")).toLowerCase(Locale.ENGLISH);
Expand Down
2 changes: 1 addition & 1 deletion calibration-service/calibration-application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion calibration-service/calibration-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion calibration-service/calibration-repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion calibration-service/calibration-service-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion calibration-service/calibration-service-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>calibration-service</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion calibration-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion calibration-standalone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry1.dso.mil/ironbank/redhat/ubi/ubi8:8.4
FROM registry1.dso.mil/ironbank/redhat/ubi/ubi8:8.6
ARG USER=1001
ARG JAVA_OPTS="-XX:MaxRAMPercentage=80"
ENV JAVA_OPTS=${JAVA_OPTS}
Expand Down Expand Up @@ -59,4 +59,4 @@ ADD calibration-standalone-*runnable.jar /opt/cct/coda-calibration-standalone.ja
ADD run.sh /run.sh

EXPOSE 8080
CMD ["/bin/bash", "/run.sh"]
CMD ["/bin/bash", "/run.sh"]
2 changes: 1 addition & 1 deletion externals/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<artifactId>externals</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion mapping/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
</parent>

<groupId>gov.llnl.gnem.apps.coda.common</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>gov.llnl.gnem.apps.coda.calibration</groupId>
<artifactId>coda-calibration</artifactId>
<version>1.0.18</version>
<version>1.0.18.1</version>
<name>coda-calibration</name>

<packaging>pom</packaging>
Expand Down

0 comments on commit 11eba63

Please sign in to comment.