ui/src/main/java/ucar/nc2/ui/grib/Grib2ReportPanel.java
private void doTimeCoord(Formatter f, MCollection dcm, boolean useIndex) throws IOException {
    Counters counters = new Counters();
    counters.add("template");
    counters.add("timeUnit");
    counters.add("statType");
    counters.add("NumberTimeIntervals");
    counters.add("TimeIntervalsDiffer");
    counters.add("TimeIntervalsLength");

    int count = 0;
    for (MFile mfile : dcm.getFilesSorted()) {
      f.format(" %s%n", mfile.getPath());
      count += doTimeCoord(f, mfile, counters);
    }

    f.format("total records = %d%n", count);
    counters.show(f);
  }
private void doTimeCoord(Formatter f, MCollection dcm, boolean useIndex) throws IOException {
    Counters counters = new Counters();
    counters.add("template");
    counters.add("timeUnit");
    counters.add("statType");
    counters.add("NumberTimeIntervals");
    counters.add("TimeIntervalsDiffer");
    counters.add("TimeIntervalsLength");

    int count = 0;
    for (MFile mfile : dcm.getFilesSorted()) {
      f.format(" %s%n", mfile.getPath());
      count += doTimeCoord(f, mfile, counters);
    }

    f.format("total records = %d%n", count);
    counters.show(f);
  }
private void doTimeCoord ( Formatter f , MCollection dcm , boolean useIndex ) throws IOException { Counters counters = new Counters ( ) ; counters . add ( "template" ) ; counters . add ( "timeUnit" ) ; counters . add ( "statType" ) ; counters . add ( "NumberTimeIntervals" ) ; counters . add ( "TimeIntervalsDiffer" ) ; counters . add ( "TimeIntervalsLength" ) ; int count = 0 ; for ( MFile mfile : dcm . getFilesSorted ( ) ) { f . format ( " %s%n" , mfile . getPath ( ) ) ; count += doTimeCoord ( f , mfile , counters ) ; } f . format ( "total records = %d%n" , count ) ; counters . show ( f ) ; }
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////