public static void main(String[] args) throws IOException { Formatter f = new Formatter(); String indexName = (args.length > 0) ? args[0] : "F:/nomads/NOMADS-cfsrr-timeseries.ncx"; RandomAccessFile raf = new RandomAccessFile(indexName, "r"); Grib1TimePartition gtc = Grib1TimePartitionBuilder.createFromIndex("test", null, raf); gtc.showIndex(f); System.out.printf("%s%n", f); }