Re,binary read-in error.

From: Yi Wang <wang29_at_nyahnyahspammersnyahnyah>
Date: Thu, 20 Apr 2006 13:40:11 -0500

Hi Everyone:

      I follow the following example:

The following will write ntimes records, each of length 64x128 float

       ntimes = 100
      z = new ( (/ntimes,64,128/), float)
      path = "/dummy/file"
      do nt=0,ntimes-1
         fbindirwrite(path,z(nt,:,:) )
      end do
The binary file will be the same as a one open via fortran's open
      open(..., form="unformatted", access="direct", recl= ) ; recl
is system dependent

    When I use ( my data is 14*myr in dimension, float. I am using
Mac OS f77, same thing for tempest, f77)

      $ form='unformatted',access='direct',recl=4*14*myr)

         The data which read in from above is wrong, except the first
one, which is correct.

        Any clue about what is wrong here????

Yi Wang PhD
Center for Climatic Research
University of Wisconsin-Madison

ncl-talk mailing list
Received on Thu Apr 20 2006 - 12:40:11 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 24 2006 - 09:06:29 MDT