ui/src/main/java/ucar/nc2/ui/grib/Grib2ReportPanel.java
private void doGdsSummary(Formatter f, MCollection dcm, boolean extra) throws IOException {
    f.format("Show Unique GDS Templates%n");
    Counters counters = new Counters();
    counters.add("template");
    counters.add("scanMode");
    counters.add("scanModeDifference");

    for (MFile mfile : dcm.getFilesSorted()) {
      f.format(" %s%n", mfile.getPath());
      doGdsSummary(f, mfile, counters, extra);
    }

    counters.show(f);
  }
private void doGdsSummary(Formatter f, MCollection dcm, boolean extra) throws IOException {
    f.format("Show Unique GDS Templates%n");
    Counters counters = new Counters();
    counters.add("template");
    counters.add("scanMode");
    counters.add("scanModeDifference");

    for (MFile mfile : dcm.getFilesSorted()) {
      f.format(" %s%n", mfile.getPath());
      doGdsSummary(f, mfile, counters, extra);
    }

    counters.show(f);
  }
private void doGdsSummary ( Formatter f , MCollection dcm , boolean extra ) throws IOException { f . format ( "Show Unique GDS Templates%n" ) ; Counters counters = new Counters ( ) ; counters . add ( "template" ) ; counters . add ( "scanMode" ) ; counters . add ( "scanModeDifference" ) ; for ( MFile mfile : dcm . getFilesSorted ( ) ) { f . format ( " %s%n" , mfile . getPath ( ) ) ; doGdsSummary ( f , mfile , counters , extra ) ; } counters . show ( f ) ; }
/////////////////////////////////////////////
/////////////////////////////////////////////