void compareNC(String fileBinary, String fileText) throws IOException {
long start = System.currentTimeMillis();
Class c = ucar.nc2.iosp.grib.GribGridServiceProvider.class;
IOServiceProvider spiB = null;
try {
spiB = (IOServiceProvider) c.newInstance();
} catch (InstantiationException e) {
throw new IOException("IOServiceProvider " + c.getName() + "must have no-arg constructor.");
} catch (IllegalAccessException e) {
throw new IOException("IOServiceProvider " + c.getName() + " IllegalAccessException: " + e.getMessage());
}
ucar.unidata.io.RandomAccessFile rafB = new ucar.unidata.io.RandomAccessFile(fileBinary, "r");
rafB.order(ucar.unidata.io.RandomAccessFile.BIG_ENDIAN);
NetcdfFile ncfileBinary = new NetcdfFileSPI(spiB, rafB, fileBinary, null);
//System.out.println( "Time to create Netcdf object using GridGrib Iosp "+
// (System.currentTimeMillis() - start) );
System.out.println("Binary Netcdf created");
start = System.currentTimeMillis();
IOServiceProvider spiT = null;
try {
spiT = (IOServiceProvider) c.newInstance();
} catch (InstantiationException e) {
throw new IOException("IOServiceProvider " + c.getName() + "must have no-arg constructor.");
} catch (IllegalAccessException e) {