code: public static int[] columnIndexes(CSTable table, String name) {
          List<Integer> l = new ArrayList<Integer>();
          for (int i = 1; i <= table.getColumnCount(); i++) {
              if (table.getColumnName(i).startsWith(name)) {
                  l.add(i);
              }
          }
          if (l.isEmpty()) {
              return null;
          }
          int[] idx = new int[l.size()];
          for (int i = 0; i < idx.length; i++) {
              idx[i] = l.get(i);
          }
          return idx;
      }
docs: Get the column indexes for a given column name.
  (e.g. use tmin to fetch tmin[0], tmin[1]...)
  @param table
  @param name
  @return