// gbx older then grib
if (grib.lastModified() < gbx.lastModified())
return;
// grib, gbx, gribName, gbxName, false(make index)
long start = System.currentTimeMillis();
new Grib1WriteIndex().extendGribIndex(grib, gbx, args[0], args[1], false);
System.out.println("IndexExtending " + grib.getName() +" took "+
(System.currentTimeMillis() - start) +" ms BufferSize "+ Grib2WriteIndex.indexRafBufferSize);
//ForecastModelRunInventory.open(null, args[0], ForecastModelRunInventory.OPEN_FORCE_NEW, true);
} else { // create index
// grib, gribName, gbxName, false(make index)
long start = System.currentTimeMillis();
new Grib1WriteIndex().writeGribIndex(grib, args[0], args[1], false);
System.out.println("Indexing " + grib.getName() +" took "+
(System.currentTimeMillis() - start) +" ms BufferSize "+ Grib2WriteIndex.indexRafBufferSize);
//ForecastModelRunInventory.open(null, args[0], ForecastModelRunInventory.OPEN_FORCE_NEW, true);
}
} catch (Exception e) {