Hi Yi,
I'll assume that you are writing out the binary file on the same system
you are reading it in, and thus there are no endian issues here.
Can you send the snippet of your NCL where you write out the data,
complete with a printVarSummary of the array so we can see it? And can
you further elaborate on what is wrong with the data when you read it
into fortran? Are you getting crazy values, or are the values correct
but in the wrong place, etc...
Thanks,
Adam
Yi Wang wrote:
> I am sorry to post this again because there is no response in the first
> round. Everyone is busy!?
>
> Hi Everyone:
>
> I take the following example:
>
> *<<<Examples*
>
> The following will write ntimes records, each of length 64x128 float words.
>
> 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 statement:
> open(..., form="unformatted", access="direct", recl= ) ; recl is
> system dependent >>>
>
> *************************************************************************
>
> In my case, I use the NCL to create a binary data with one record
> number. However, when I use ( my data is 14*myr in dimension, float. I
> am using Mac OS f77, same thing for tempest, f77)
>
> open(32,file='inputdata/Single.OPREC.6498.dat',
> $ form='unformatted',access='direct',recl=4*14*myr)
>
> The data which is read in from above is wrong, except the first
> one.
>
> Any clue about what is wrong here????
>
> Yi Wang PhD
> Center for Climatic Research
> University of Wisconsin-Madison
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Apr 21 2006 - 12:08:43 MDT
This archive was generated by hypermail 2.2.0 : Mon Apr 24 2006 - 09:06:29 MDT