visad/src/main/java/ucar/nc2/iosp/mcidas/McIDASGridServiceProvider.java
public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException {
    //debugProj = true;
    super.open(raf, ncfile, cancelTask);
    long start = System.currentTimeMillis();
    if (mcGridReader == null) {
      mcGridReader = new McIDASGridReader();
    }
    mcGridReader.init(raf);
    GridIndex index = mcGridReader.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 {
    //debugProj = true;
    super.open(raf, ncfile, cancelTask);
    long start = System.currentTimeMillis();
    if (mcGridReader == null) {
      mcGridReader = new McIDASGridReader();
    }
    mcGridReader.init(raf);
    GridIndex index = mcGridReader.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