GridIndex index = getIndex(raf.getLocation());
Map<String, String> attr = index.getGlobalAttributes();
saveEdition = attr.get("grid_edition").equals("2") ? 2 : 1;
version = Float.parseFloat(attr.get("index_version"));
GridTableLookup lookup = (saveEdition == 2) ? getLookup2() : getLookup1();
// make it into netcdf objects
GridIndexToNC convert = new GridIndexToNC(raf);
convert.open(index, lookup, saveEdition, ncfile, fmrcCoordSys, cancelTask);
ncfile.finish();