File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
src/main/java/com/asascience/ncsos/ds Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 66import com .asascience .ncsos .outputformatter .ds .IoosPlatform10Formatter ;
77import com .asascience .ncsos .util .LogReporter ;
88import com .asascience .ncsos .util .VocabDefinitions ;
9+
10+ import ucar .ma2 .DataType ;
911import ucar .nc2 .Attribute ;
1012import ucar .nc2 .Dimension ;
1113import 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 ();
You can’t perform that action at this time.
0 commit comments