Skip to content

Commit

Permalink
Update to the code that determines the data type of a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cheryldmorse committed Oct 22, 2015
1 parent 9f4ef56 commit 290e82a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Binary file added jar/ncSOS-1.1.1.zip
Binary file not shown.
Binary file modified jar/ncSOS.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.asascience</groupId>
<artifactId>ncsos</artifactId>
<version>1.1</version>
<version>1.1.1</version>
<packaging>jar</packaging>

<name>ncsos</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import com.asascience.ncsos.outputformatter.ds.IoosPlatform10Formatter;
import com.asascience.ncsos.util.LogReporter;
import com.asascience.ncsos.util.VocabDefinitions;

import ucar.ma2.DataType;
import ucar.nc2.Attribute;
import ucar.nc2.Dimension;
import ucar.nc2.VariableSimpleIF;
Expand Down Expand Up @@ -93,8 +95,8 @@ private void formatSmlIdentification() {
try {
if (this.stationVariable.getDimensions().size() == 1) {
Dimension dim = this.stationVariable.getDimension(0);
if (this.stationVariable.getEnumTypedef().getBaseType() == ucar.ma2.DataType.CHAR ||
this.stationVariable.getEnumTypedef().getBaseType() == ucar.ma2.DataType.STRING ||
DataType type = this.stationVariable.getDataType();
if (type == ucar.ma2.DataType.CHAR || type == ucar.ma2.DataType.STRING ||
dim.getLength() < 2) {
// single station if the dataType is a char or string or the length of the dimension is 1
formatIdentificationSingleStation();
Expand Down

0 comments on commit 290e82a

Please sign in to comment.