private static void initUnitTable ( ) { unitTable = new Hashtable <> ( ) ; // temperatures unitTable . put ( "t" , "K" ) ; unitTable . put ( "td" , "K" ) ; unitTable . put ( "thte" , "K" ) ; // winds unitTable . put ( "u" , "m/s" ) ; unitTable . put ( "v" , "m/s" ) ; unitTable . put ( "w" , "m/s" ) ; // pressure unitTable . put ( "p" , "hPa" ) ; unitTable . put ( "mmsl" , "hPa" ) ; // moisture unitTable . put ( "rh" , "%" ) ; // misc unitTable . put ( "rhfz" , "%" ) ; unitTable . put ( "zagl" , "m" ) ; }
Initialize the unit table . This is used if there are no units in the file .