public java . util . Map < String , String > readStnNames ( ucar . unidata . io . RandomAccessFile raf ) { java . util . Map < String , String > hdrNames = new java . util . HashMap < String , String > ( ) ; try { raf . seek ( 6288 ) ; String stnName = raf . readString ( 16 ) ; //System.out.println(" stnName="+stnName.trim()); raf . seek ( 6306 ) ; String stnName_util = raf . readString ( 16 ) ; hdrNames . put ( "StationName" , stnName . trim ( ) ) ; hdrNames . put ( "StationName_SetupUtility" , stnName_util . trim ( ) ) ; } catch ( Exception e ) { System . out . println ( e . toString ( ) ) ; e . printStackTrace ( ) ; } return hdrNames ; }
Read StationName strings