visad/src/main/java/ucar/nc2/iosp/gempak/AbstractGempakStationFileReader.java
private List<Key> findStationKeys() {
    Key stid = findKey(GempakStation.STID);
    Key stnm = findKey(GempakStation.STNM);
    Key slat = findKey(GempakStation.SLAT);
    Key slon = findKey(GempakStation.SLON);
    Key selv = findKey(GempakStation.SELV);
    Key stat = findKey(GempakStation.STAT);
    Key coun = findKey(GempakStation.COUN);
    Key std2 = findKey(GempakStation.STD2);
    Key spri = findKey(GempakStation.SPRI);
    Key swfo = findKey(GempakStation.SWFO);
    Key wfo2 = findKey(GempakStation.WFO2);
    if ((slat == null) || (slon == null)
            || !slat.type.equals(slon.type)) {
      return null;
    }
    String tslat = slat.type;
    // check to make sure they are all in the same set of keys
    List<Key> stKeys = new ArrayList<>();
    stKeys.add(slat);
    stKeys.add(slon);
    if ((stid != null) && !stid.type.equals(tslat)) {
      return null;
    } else if ((stnm != null) && !stnm.type.equals(tslat)) {
      return null;
    } else if ((selv != null) && !selv.type.equals(tslat)) {
      return null;
    } else if ((stat != null) && !stat.type.equals(tslat)) {
      return null;
    } else if ((coun != null) && !coun.type.equals(tslat)) {
      return null;
    } else if ((std2 != null) && !std2.type.equals(tslat)) {
      return null;
    } else if ((spri != null) && !spri.type.equals(tslat)) {
      return null;
    } else if ((swfo != null) && !swfo.type.equals(tslat)) {
      return null;
    } else if ((wfo2 != null) && !wfo2.type.equals(tslat)) {
      return null;
    }
    if (stid != null) {
      stKeys.add(stid);
    }
    if (stnm != null) {
      stKeys.add(stnm);
    }
    if (selv != null) {
      stKeys.add(selv);
    }
    if (stat != null) {
      stKeys.add(stat);
    }
    if (coun != null) {
      stKeys.add(coun);
    }
    if (std2 != null) {
      stKeys.add(std2);
    }
    if (spri != null) {
      stKeys.add(spri);
    }
    if (swfo != null) {
      stKeys.add(swfo);
    }
    if (wfo2 != null) {
      stKeys.add(wfo2);
    }
    return stKeys;
  }
private List<Key> findStationKeys() {
    Key stid = findKey(GempakStation.STID);
    Key stnm = findKey(GempakStation.STNM);
    Key slat = findKey(GempakStation.SLAT);
    Key slon = findKey(GempakStation.SLON);
    Key selv = findKey(GempakStation.SELV);
    Key stat = findKey(GempakStation.STAT);
    Key coun = findKey(GempakStation.COUN);
    Key std2 = findKey(GempakStation.STD2);
    Key spri = findKey(GempakStation.SPRI);
    Key swfo = findKey(GempakStation.SWFO);
    Key wfo2 = findKey(GempakStation.WFO2);
    if ((slat == null) || (slon == null)
            || !slat.type.equals(slon.type)) {
      return null;
    }
    String tslat = slat.type;
    // check to make sure they are all in the same set of keys
    List<Key> stKeys = new ArrayList<>();
    stKeys.add(slat);
    stKeys.add(slon);
    if ((stid != null) && !stid.type.equals(tslat)) {
      return null;
    } else if ((stnm != null) && !stnm.type.equals(tslat)) {
      return null;
    } else if ((selv != null) && !selv.type.equals(tslat)) {
      return null;
    } else if ((stat != null) && !stat.type.equals(tslat)) {
      return null;
    } else if ((coun != null) && !coun.type.equals(tslat)) {
      return null;
    } else if ((std2 != null) && !std2.type.equals(tslat)) {
      return null;
    } else if ((spri != null) && !spri.type.equals(tslat)) {
      return null;
    } else if ((swfo != null) && !swfo.type.equals(tslat)) {
      return null;
    } else if ((wfo2 != null) && !wfo2.type.equals(tslat)) {
      return null;
    }
    if (stid != null) {
      stKeys.add(stid);
    }
    if (stnm != null) {
      stKeys.add(stnm);
    }
    if (selv != null) {
      stKeys.add(selv);
    }
    if (stat != null) {
      stKeys.add(stat);
    }
    if (coun != null) {
      stKeys.add(coun);
    }
    if (std2 != null) {
      stKeys.add(std2);
    }
    if (spri != null) {
      stKeys.add(spri);
    }
    if (swfo != null) {
      stKeys.add(swfo);
    }
    if (wfo2 != null) {
      stKeys.add(wfo2);
    }
    return stKeys;
  }
Get the station keys

@return the list of station keys