visad.jmet
Class MetUnits
- java.lang.Object
-
- visad.jmet.MetUnits
-
public class MetUnits extends java.lang.ObjectClass for defining a few common atmospheric science units which don't conform to the standards used by the VisAD netCDF Units package. Use the makeSymbol method to return a "proper" unit symbol from a common one (ex: input mph to get mi/h). Also allows one to input a common symbol in upper case (MPH) and get the proper one back (mi/h).
-
-
Constructor Summary
Constructors Constructor and Description MetUnits()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringmakeSymbol(java.lang.String commonSymbol)Create a 'proper' unit symbol from a common one (ie: mph -> mi/h instead of milliphots)
-
-
-
Method Detail
-
makeSymbol
public static java.lang.String makeSymbol(java.lang.String commonSymbol)
Create a 'proper' unit symbol from a common one (ie: mph -> mi/h instead of milliphots)- Parameters:
commonSymbol- is the String of the original unit name- Returns:
- commonSymbol converted to "proper" symbol or commonSymbol if unknown
-
-
DMelt 3.0 © DataMelt by jWork.ORG