visad/src/main/java/ucar/nc2/iosp/gempak/GempakSoundingFileReader.java
private boolean checkForValidGroup(String partToCheck, String[] params) {
    DMPart part = getPart(partToCheck);
    if (part == null) {
      return false;
    }
    int i = 0;
    for (DMParam parm : part.params) {
      if (!(parm.kprmnm.equals(params[i++]))) {
        return false;
      }
    }
    return true;
  }
private boolean checkForValidGroup(String partToCheck, String[] params) {
    DMPart part = getPart(partToCheck);
    if (part == null) {
      return false;
    }
    int i = 0;
    for (DMParam parm : part.params) {
      if (!(parm.kprmnm.equals(params[i++]))) {
        return false;
      }
    }
    return true;
  }
Check for valid groups

@param partToCheck the part name
@param params      the parameters that are supposed to be there
@return true if the part is there and has the right params