How to read a binary files with special file head?

From: star <yczh9699_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 13 2012 - 17:54:20 MST
Hi, Dave and Will,
I am reading a radar data with binary sequential format.
The radar head  in f90 file is as following:
 TYPE Radar_type
  character(len = 12) :: ZonName
 character(len = 38) :: DataName
 character(len = 8) :: Flag
 character(len = 8) :: Version
 
 integer(2) :: year
 integer(2) :: month
 integer(2) :: day
 integer(2) :: hour
 integer(2) :: minute
 integer(2) :: interval
 integer(2) :: XNumGrids
 integer(2) :: YNumGrids
 integer(2) :: ZNumGrids
 integer(4) :: RadarCount
 real(4) :: StartLon
 real(4) :: StartLat
 real(4) :: CenterLon
 real(4) :: CenterLat
 real(4) :: XReso
 real(4) :: YReso
 real(4) :: ZHighGrds(40)
 character(len = 16) :: RadarStationName(20)
 real(4) :: RadarLongitude(20)
 real(4) :: RadarLatitude(20)
 real(4) :: RadarAltitude(20)
 character(1) :: MosaicFlag1(20)
 
 character(len = 172) :: Reserved
 END TYPE Radar_type
      TYPE(Radar_Type) ::   radar
 
With fortran f90 code, reading the file will be ok.
read(1)radar
 
Now, I want to read the binary file with NCL language. But  I do not know how to read the head record.
 
Would you like to help me to solve the problem?
 
Yours, sincerely,
user

 
 


---------------------------------------
21CN手机邮Android客户端,邮件随身享!

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 13 18:03:11 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:23 MST