visad/src/main/java/ucar/nc2/iosp/grid/GridCoordSys.java
int getIndex(GridRecord record) {
    Double d = new Double(record.getLevel1());
    return levels.indexOf(d);
  }
int getIndex(GridRecord record) {
    Double d = new Double(record.getLevel1());
    return levels.indexOf(d);
  }
int getIndex ( GridRecord record ) { Double d = new Double ( record . getLevel1 ( ) ) ; return levels . indexOf ( d ) ; }
Get the index of a particular  GridRecord

@param record record to find
@return the index or -1
Get the index of a particular GridRecord