cdm/src/main/java/ucar/nc2/dataset/conv/WRFConvention.java
private String normalize(String units) {
    switch (units) {
      case "fraction":
        units = "";
        break;
      case "dimensionless":
        units = "";
        break;
      case "NA":
        units = "";
        break;
      case "-":
        units = "";
        break;
      default:
        units = StringUtil2.substitute(units, "**", "^");
        units = StringUtil2.remove(units, '}');
        units = StringUtil2.remove(units, '{');
        break;
    }
    return units;
  }
private String normalize(String units) {
    switch (units) {
      case "fraction":
        units = "";
        break;
      case "dimensionless":
        units = "";
        break;
      case "NA":
        units = "";
        break;
      case "-":
        units = "";
        break;
      default:
        units = StringUtil2.substitute(units, "**", "^");
        units = StringUtil2.remove(units, '}');
        units = StringUtil2.remove(units, '{');
        break;
    }
    return units;
  }
private String normalize ( String units ) { switch ( units ) { case "fraction" : units = "" ; break ; case "dimensionless" : units = "" ; break ; case "NA" : units = "" ; break ; case "-" : units = "" ; break ; default : units = StringUtil2 . substitute ( units , "**" , "^" ) ; units = StringUtil2 . remove ( units , ' ' ) ; units = StringUtil2 . remove ( units , ' ' ) ; break ; } return units ; }
pretty much WRF specific
pretty much WRF specific