ui/src/main/java/ucar/nc2/ui/grib/Grib2ReportPanel.java
private void doDrsSummary(Formatter f, MCollection dcm, boolean useIndex, boolean eachFile, boolean extra) throws IOException {
    f.format("Show Unique DRS Templates%n");
    Counters countersAll = new Counters();
    countersAll.add("DRS_template");
    countersAll.add("BMS indicator");
    countersAll.add("DRS template 40 signed problem");
    countersAll.add("Number_of_Bits");

    for (MFile mfile : dcm.getFilesSorted()) {

      f.format("------- %s%n", mfile.getPath());
      if (useIndex)
        doDrsSummaryIndex(f, mfile, extra, countersAll);
      else
        doDrsSummaryScan(f, mfile, extra, countersAll);

      if (eachFile) {
        countersAll.show(f);
        f.format("%n");
        countersAll.reset();
      }
    }

    if (!eachFile)
      countersAll.show(f);
  }
private void doDrsSummary(Formatter f, MCollection dcm, boolean useIndex, boolean eachFile, boolean extra) throws IOException {
    f.format("Show Unique DRS Templates%n");
    Counters countersAll = new Counters();
    countersAll.add("DRS_template");
    countersAll.add("BMS indicator");
    countersAll.add("DRS template 40 signed problem");
    countersAll.add("Number_of_Bits");

    for (MFile mfile : dcm.getFilesSorted()) {

      f.format("------- %s%n", mfile.getPath());
      if (useIndex)
        doDrsSummaryIndex(f, mfile, extra, countersAll);
      else
        doDrsSummaryScan(f, mfile, extra, countersAll);

      if (eachFile) {
        countersAll.show(f);
        f.format("%n");
        countersAll.reset();
      }
    }

    if (!eachFile)
      countersAll.show(f);
  }
private void doDrsSummary ( Formatter f , MCollection dcm , boolean useIndex , boolean eachFile , boolean extra ) throws IOException { f . format ( "Show Unique DRS Templates%n" ) ; Counters countersAll = new Counters ( ) ; countersAll . add ( "DRS_template" ) ; countersAll . add ( "BMS indicator" ) ; countersAll . add ( "DRS template 40 signed problem" ) ; countersAll . add ( "Number_of_Bits" ) ; for ( MFile mfile : dcm . getFilesSorted ( ) ) { f . format ( "------- %s%n" , mfile . getPath ( ) ) ; if ( useIndex ) doDrsSummaryIndex ( f , mfile , extra , countersAll ) ; else doDrsSummaryScan ( f , mfile , extra , countersAll ) ; if ( eachFile ) { countersAll . show ( f ) ; f . format ( "%n" ) ; countersAll . reset ( ) ; } } if ( ! eachFile ) countersAll . show ( f ) ; }
/////////////////////////////////////////////
/////////////////////////////////////////////