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