how to read complicated sequential data by fbinrecread?

From: Xuguang Sun <sunxg007_at_nyahnyahspammersnyahnyah>
Date: Fri, 31 Jul 2009 06:03:13 +0800 (CST)

Dear everyone,

I've a sequential format binary data, which is written by the following fortran code,

   do isea= 1, nsea !1-4 climatological seasonal mean
    do ista = 1, nsta ! station loop
     tim = 0.0
     nlev = 1
     nflag = 1
     write(2)xid(ista),xlat(ista),xlon(ista),tim,nlev,nflag,mrain2(ista,isea)
    enddo
     nlev = 0
     write(2)xid(1),xlat(1),xlon(1),tim,nlev,nflag
   enddo

where, xid(ista) is of type "string" with 8 characters, xlat(ista), xlon(ista),tim,mrain2(ista,isea) are of type "float", and nlev, nflag are of type "string".

one record contains multiple types, then how to read these data in NCL?

Thanks in advance.

SUN Xuguang

School of Atmospheric Sciences, Nanjing University
22 Hankou Road, Nanjing 210093
China
Tel: +86-025-83597203 (O)
Email: sunxg007_at_yahoo.com.cn

      ___________________________________________________________
  好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 30 2009 - 16:03:13 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 31 2009 - 14:51:03 MDT