public final String getLevelName(GridRecord gr) {

    if (cust != null) {
      String result = cust.getLevelNameShort( gr.getLevelType1());
      if (result != null) return result;
    }

    String levelUnit = getLevelUnit(gr);
    if (levelUnit != null) {
      int level1 = (int) gr.getLevel1();
      int level2 = (int) gr.getLevel2();
      if (levelUnit.equalsIgnoreCase("hPa")) {
        return "pressure";
      } else if (level1 == 1013) {
        return "mean sea level";
      } else if (level1 == 0) {
        return "tropopause";
      } else if (level1 == 1001) {
        return "surface";
      } else if (level2 != 0) {
        return "layer";
      }
    }

    return "";
  }
public final String getLevelName ( GridRecord gr ) { if ( cust != null ) { String result = cust . getLevelNameShort ( gr . getLevelType1 ( ) ) ; if ( result != null ) return result ; } String levelUnit = getLevelUnit ( gr ) ; if ( levelUnit != null ) { int level1 = ( int ) gr . getLevel1 ( ) ; int level2 = ( int ) gr . getLevel2 ( ) ; if ( levelUnit . equalsIgnoreCase ( "hPa" ) ) { return "pressure" ; } else if ( level1 == 1013 ) { return "mean sea level" ; } else if ( level1 == 0 ) { return "tropopause" ; } else if ( level1 == 1001 ) { return "surface" ; } else if ( level2 != 0 ) { return "layer" ; } } return "" ; }
gets the LevelName.