visad/src/main/java/ucar/nc2/iosp/gempak/GempakFileReader.java
public Key findKey(String name) {
    if (keys == null) {
      return null;
    }
    // search rows
    for (Key key : keys.kkrow) {
      if (key.name.equals(name)) {
        return key;
      }
    }
    // search columns
    for (Key key : keys.kkcol) {
      if (key.name.equals(name)) {
        return key;
      }
    }
    return null;

  }
public Key findKey(String name) {
    if (keys == null) {
      return null;
    }
    // search rows
    for (Key key : keys.kkrow) {
      if (key.name.equals(name)) {
        return key;
      }
    }
    // search columns
    for (Key key : keys.kkcol) {
      if (key.name.equals(name)) {
        return key;
      }
    }
    return null;

  }
public Key findKey ( String name ) { if ( keys == null ) { return null ; } // search rows for ( Key key : keys . kkrow ) { if ( key . name . equals ( name ) ) { return key ; } } // search columns for ( Key key : keys . kkcol ) { if ( key . name . equals ( name ) ) { return key ; } } return null ; }
Find a key with the given name

@param name the name of the key
@return the key or null;
Find a key with the given name