ui/src/main/java/ucar/nc2/ui/grib/Grib1ReportPanel.java
private void doGribIndex(Formatter f, MCollection dcm, boolean eachFile) throws IOException {
    Counters counters = new Counters();

    // must open collection again without gbx filtering
    try (MCollection dcm2 = getCollectionUnfiltered(spec, f)) {

      for (MFile mfile : dcm2.getFilesSorted()) {
        String path = mfile.getPath();
        f.format(" %s%n", path);
        doGribIndex(f, mfile, counters, eachFile);
      }
    }

    counters.show(f);
  }
private void doGribIndex(Formatter f, MCollection dcm, boolean eachFile) throws IOException {
    Counters counters = new Counters();

    // must open collection again without gbx filtering
    try (MCollection dcm2 = getCollectionUnfiltered(spec, f)) {

      for (MFile mfile : dcm2.getFilesSorted()) {
        String path = mfile.getPath();
        f.format(" %s%n", path);
        doGribIndex(f, mfile, counters, eachFile);
      }
    }

    counters.show(f);
  }
private void doGribIndex ( Formatter f , MCollection dcm , boolean eachFile ) throws IOException { Counters counters = new Counters ( ) ; // must open collection again without gbx filtering try ( MCollection dcm2 = getCollectionUnfiltered ( spec , f ) ) { for ( MFile mfile : dcm2 . getFilesSorted ( ) ) { String path = mfile . getPath ( ) ; f . format ( " %s%n" , path ) ; doGribIndex ( f , mfile , counters , eachFile ) ; } } counters . show ( f ) ; }
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////