// read in the index, index raf already open public static Grib1TimePartition createFromIndex( String name, File directory, RandomAccessFile raf) throws IOException { Grib1TimePartitionBuilder builder = new Grib1TimePartitionBuilder(name, directory, null); if (builder.readIndex(raf)) { return builder.tp; } throw new IOException("Reading index failed"); }