File tree 1 file changed +5
-2
lines changed
components/formats-gpl/src/loci/formats/services
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 45
45
import ucar .nc2 .Attribute ;
46
46
import ucar .nc2 .Group ;
47
47
import ucar .nc2 .NetcdfFile ;
48
+ import ucar .nc2 .NetcdfFiles ;
48
49
import ucar .nc2 .Variable ;
49
50
50
51
import com .esotericsoftware .kryo .Kryo ;
51
52
import com .esotericsoftware .kryo .KryoSerializable ;
52
53
import com .esotericsoftware .kryo .io .Input ;
53
54
import com .esotericsoftware .kryo .io .Output ;
54
55
56
+ import com .google .common .collect .ImmutableList ;
57
+
55
58
/**
56
59
* Utility class for working with NetCDF/HDF files. Uses reflection to
57
60
* call the NetCDF Java library.
@@ -247,7 +250,7 @@ private void parseAttributesAndVariables(List<Group> groups) {
247
250
if (!groupName .endsWith ("/" )) variableName = "/" + variableName ;
248
251
variableList .add (variableName );
249
252
}
250
- groups = group .getGroups ();
253
+ groups = ( List < Group >) group .getGroups ();
251
254
parseAttributesAndVariables (groups );
252
255
}
253
256
}
@@ -307,7 +310,7 @@ public void print(String s) { }
307
310
};
308
311
System .setOut (throwaway );
309
312
throwaway .close ();
310
- netCDFFile = NetcdfFile .open (currentId );
313
+ netCDFFile = NetcdfFiles .open (currentId );
311
314
System .setOut (outStream );
312
315
root = netCDFFile .getRootGroup ();
313
316
}
You can’t perform that action at this time.
0 commit comments