visad/src/main/java/ucar/nc2/iosp/gempak/AbstractGempakStationFileReader.java
protected List<String> makeDateList(boolean unique) {
    Key date = dateTimeKeys.get(0);
    Key time = dateTimeKeys.get(1);
    List<int[]> toCheck;
    if (date.type.equals(ROW)) {
      toCheck = headers.rowHeaders;
    } else {
      toCheck = headers.colHeaders;
    }
    List<String> fileDates = new ArrayList<>();
    for (int[] header : toCheck) {
      if (header[0] != IMISSD) {
        // convert to GEMPAK date/time
        int idate = header[date.loc + 1];
        int itime = header[time.loc + 1];
        // TODO: Add in the century
        String dateTime = GempakUtil.TI_CDTM(idate, itime);
        fileDates.add(dateTime);
      }
    }
    if (unique && !fileDates.isEmpty()) {
      SortedSet<String> uniqueTimes =
              Collections.synchronizedSortedSet(new TreeSet<String>());
      uniqueTimes.addAll(fileDates);
      fileDates.clear();
      fileDates.addAll(uniqueTimes);
    }

    return fileDates;
  }
protected List<String> makeDateList(boolean unique) {
    Key date = dateTimeKeys.get(0);
    Key time = dateTimeKeys.get(1);
    List<int[]> toCheck;
    if (date.type.equals(ROW)) {
      toCheck = headers.rowHeaders;
    } else {
      toCheck = headers.colHeaders;
    }
    List<String> fileDates = new ArrayList<>();
    for (int[] header : toCheck) {
      if (header[0] != IMISSD) {
        // convert to GEMPAK date/time
        int idate = header[date.loc + 1];
        int itime = header[time.loc + 1];
        // TODO: Add in the century
        String dateTime = GempakUtil.TI_CDTM(idate, itime);
        fileDates.add(dateTime);
      }
    }
    if (unique && !fileDates.isEmpty()) {
      SortedSet<String> uniqueTimes =
              Collections.synchronizedSortedSet(new TreeSet<String>());
      uniqueTimes.addAll(fileDates);
      fileDates.clear();
      fileDates.addAll(uniqueTimes);
    }

    return fileDates;
  }
protected List < String > makeDateList ( boolean unique ) { Key date = dateTimeKeys . get ( 0 ) ; Key time = dateTimeKeys . get ( 1 ) ; List < int [ ] > toCheck ; if ( date . type . equals ( ROW ) ) { toCheck = headers . rowHeaders ; } else { toCheck = headers . colHeaders ; } List < String > fileDates = new ArrayList <> ( ) ; for ( int [ ] header : toCheck ) { if ( header [ 0 ] != IMISSD ) { // convert to GEMPAK date/time int idate = header [ date . loc + 1 ] ; int itime = header [ time . loc + 1 ] ; // TODO: Add in the century String dateTime = GempakUtil . TI_CDTM ( idate , itime ) ; fileDates . add ( dateTime ) ; } } if ( unique && ! fileDates . isEmpty ( ) ) { SortedSet < String > uniqueTimes = Collections . synchronizedSortedSet ( new TreeSet < String > ( ) ) ; uniqueTimes . addAll ( fileDates ) ; fileDates . clear ( ) ; fileDates . addAll ( uniqueTimes ) ; } return fileDates ; }
Get the list of dates

@param unique true for unique list
@return the list of dates
Get the list of dates