visad/src/main/java/ucar/nc2/iosp/gempak/GempakGridReader.java
public GempakGridRecord findGrid(String parm) {
    List<GridRecord> gridList = gridIndex.getGridRecords();
    if (gridList == null) {
      return null;
    }
    for (GridRecord grid : gridList) {
      GempakGridRecord gh = (GempakGridRecord) grid;
      if (gh.param.trim().equals(parm)) {
        return gh;
      }
    }
    return null;
  }
public GempakGridRecord findGrid(String parm) {
    List<GridRecord> gridList = gridIndex.getGridRecords();
    if (gridList == null) {
      return null;
    }
    for (GridRecord grid : gridList) {
      GempakGridRecord gh = (GempakGridRecord) grid;
      if (gh.param.trim().equals(parm)) {
        return gh;
      }
    }
    return null;
  }
public GempakGridRecord findGrid ( String parm ) { List < GridRecord > gridList = gridIndex . getGridRecords ( ) ; if ( gridList == null ) { return null ; } for ( GridRecord grid : gridList ) { GempakGridRecord gh = ( GempakGridRecord ) grid ; if ( gh . param . trim ( ) . equals ( parm ) ) { return gh ; } } return null ; }
Find the first grid with this name

@param parm name of grid
@return the grid header or null
Find the first grid with this name