GridDataset gds = GridDataset.open (filename);
GeoGrid grid = gds.findGridByName("Temperature");
long startTime = System.currentTimeMillis();
Array data = grid.readDataSlice(0, -1, -1, -1);
long endTime = System.currentTimeMillis();
long diff = endTime - startTime;
System.out.println("read "+data.getSize()+" took "+diff+ " msecs");
startTime = endTime;
float[] jdata = (float []) data.get1DJavaArray(float.class);
endTime = System.currentTimeMillis();
diff = endTime - startTime;
System.out.println("convert took "+diff+ " msecs "+jdata[0]);
}