Skip to content

Commit 290e82a

Browse files
committed
Update to the code that determines the data type of a variable
1 parent 9f4ef56 commit 290e82a

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

jar/ncSOS-1.1.1.zip

183 KB
Binary file not shown.

jar/ncSOS.zip

-364 KB
Binary file not shown.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.asascience</groupId>
66
<artifactId>ncsos</artifactId>
7-
<version>1.1</version>
7+
<version>1.1.1</version>
88
<packaging>jar</packaging>
99

1010
<name>ncsos</name>

src/main/java/com/asascience/ncsos/ds/IoosPlatform10Handler.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import com.asascience.ncsos.outputformatter.ds.IoosPlatform10Formatter;
77
import com.asascience.ncsos.util.LogReporter;
88
import com.asascience.ncsos.util.VocabDefinitions;
9+
10+
import ucar.ma2.DataType;
911
import ucar.nc2.Attribute;
1012
import ucar.nc2.Dimension;
1113
import ucar.nc2.VariableSimpleIF;
@@ -93,8 +95,8 @@ private void formatSmlIdentification() {
9395
try {
9496
if (this.stationVariable.getDimensions().size() == 1) {
9597
Dimension dim = this.stationVariable.getDimension(0);
96-
if (this.stationVariable.getEnumTypedef().getBaseType() == ucar.ma2.DataType.CHAR ||
97-
this.stationVariable.getEnumTypedef().getBaseType() == ucar.ma2.DataType.STRING ||
98+
DataType type = this.stationVariable.getDataType();
99+
if (type == ucar.ma2.DataType.CHAR || type == ucar.ma2.DataType.STRING ||
98100
dim.getLength() < 2) {
99101
// single station if the dataType is a char or string or the length of the dimension is 1
100102
formatIdentificationSingleStation();

0 commit comments

Comments
 (0)