visad/src/main/java/ucar/nc2/iosp/gempak/GempakGridServiceProvider.java
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException {
    super.open(raf, ncfile, cancelTask);
    // debugProj = true;
    long start = System.currentTimeMillis();
    if (gemreader == null) {
      gemreader = new GempakGridReader(raf.getLocation());
    }
    initTables();
    gemreader.init(raf, true);
    GridIndex index = gemreader.getGridIndex();
    open(index, cancelTask);
    if (debugOpen) {
      System.out.println(" GridServiceProvider.open "
              + ncfile.getLocation() + " took "
              + (System.currentTimeMillis() - start));
    }
  }
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException {
    super.open(raf, ncfile, cancelTask);
    // debugProj = true;
    long start = System.currentTimeMillis();
    if (gemreader == null) {
      gemreader = new GempakGridReader(raf.getLocation());
    }
    initTables();
    gemreader.init(raf, true);
    GridIndex index = gemreader.getGridIndex();
    open(index, cancelTask);
    if (debugOpen) {
      System.out.println(" GridServiceProvider.open "
              + ncfile.getLocation() + " took "
              + (System.currentTimeMillis() - start));
    }
  }
public void open ( RandomAccessFile raf , NetcdfFile ncfile , CancelTask cancelTask ) throws IOException { super . open ( raf , ncfile , cancelTask ) ; // debugProj = true; long start = System . currentTimeMillis ( ) ; if ( gemreader == null ) { gemreader = new GempakGridReader ( raf . getLocation ( ) ) ; } initTables ( ) ; gemreader . init ( raf , true ) ; GridIndex index = gemreader . getGridIndex ( ) ; open ( index , cancelTask ) ; if ( debugOpen ) { System . out . println ( " GridServiceProvider.open " + ncfile . getLocation ( ) + " took " + ( System . currentTimeMillis ( ) - start ) ) ; } }
Open the service provider for reading.

@param raf        file to read from
@param ncfile     netCDF file we are writing to (memory)
@param cancelTask task for cancelling
@throws IOException problem reading file
Open the service provider for reading .