Skip to content

Commit

Permalink
Rollback to stable version. Add 0 azimuth bug fix. Update version num…
Browse files Browse the repository at this point in the history
…ber.
  • Loading branch information
timronan committed Jan 29, 2020
1 parent 1fb25d8 commit 2e9a284
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>edu.iris.dmc</groupId>
<artifactId>stationxml-seed-converter</artifactId>
<version>2.0.6-SNAPSHOT</version>
<version>2.0.8-SNAPSHOT</version>
<packaging>jar</packaging>

<name>stationxml-seed-converter</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,10 @@ public static Channel map(B052 blockette) throws Exception {

if (azimuthValue != null) {
Azimuth azimuth = factory.createAzimuthType();
if (dip != null && (dip.getValue() == 90 || dip.getValue() == -90)) {
if (BigDecimal.ZERO.compareTo(BigDecimal.valueOf(azimuthValue)) != 0) {
if (azimuthValue.intValue() >= 360) {
azimuth.setValue(Double.valueOf(0));
} else {
azimuth.setValue(azimuthValue);
}
channel.setAzimuth(azimuth);
}
} else {
azimuth.setValue(azimuthValue);
channel.setAzimuth(azimuth);
}

}

SampleRate sampleRate = factory.createSampleRateType();
sampleRate.setValue(blockette.getSampleRate());
Expand Down

0 comments on commit 2e9a284

Please sign in to comment.