Hi all,
I have a question for fbinrecread:
On this page: http://www.ncl.ucar.edu/Document/Functions/Built-in/ 
fbinrecread.shtml
There is the example 1. It says that: if a binary file written in  
this way using fortran:
      integer a(5)
      real    x(100), y(399), z(128,64)
      open (11,file="example01",form="unformatted")
      write (11) a             ! 1st record   [rec_num=0]
      write (11) x             ! 2nd record   [rec_num=1]
      write (11) y             ! 3rd record   [rec_num=2]
      write (11) z             ! 4th record   [rec_num=3]
This binary file can be read by NCL in this way:
      fili = "example01"       ; input file
      a = fbinrecread (fili, 0,   5, "integer")        ; 1st record  
is zero
      x = fbinrecread (fili, 1, 100, "float")          ;  
2nd           one
      y = fbinrecread (fili, 2, 399, "float")          ; 3rd record  
is two
      z = fbinrecread (fili, 3, (/ 64,128 /), "float") ; 4th record  
is three
My question is that If I write a binary file in this way:
      open (12,file="example02", form="unformatted")
      write (12) a,x,y,z
then how to use NCL to read "example02" binary file?
Thanks.
Guangshan
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 28 2009 - 23:28:28 MDT
This archive was generated by hypermail 2.2.0 : Fri Jun 19 2009 - 13:23:25 MDT