<DIV>Thanks Recardo, and all who tried to assist.</DIV>
<DIV>"options 'little_endian' " has worked for this particular case, whether the file is made on Windows or on UNIX.</DIV>
<DIV>Thanks so much.</DIV>
<DIV>Zilore<BR><BR><B><I>Ricardo Hallak <hallak@MODEL.IAG.USP.BR></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="Open WebMail 2.30 20040103" name=GENERATOR>
<P><FONT size=2>Zilore,</FONT></P>
<P><FONT size=2>sometimes it is only a problem of swap of words in the binary files.</FONT></P>
<P><FONT size=2>Try use:</FONT></P>
<P><FONT size=2>OPTIONS little_endian</FONT></P>
<P><FONT size=2>or</FONT></P>
<P><FONT size=2>OPTIONS big_endian</FONT></P>
<P><FONT size=2>in the .ctl file.</FONT></P>
<P><FONT size=2>The correct option will depend on the type of your machine.</FONT></P>
<P><FONT size=2>Regards,</FONT></P>
<P><FONT size=2>Ricardo</FONT></P>
<P><FONT size=2><STRONG>On Thu, 17 Mar 2005 09:18:59 -0800, zilore mumba wrote</STRONG> <BR>> <SPAN lang=EN-GB>Dear Yoshihiro,</SPAN> <BR>> <SPAN lang=EN-GB>I tried, as you advised;</SPAN> <BR>> <SPAN lang=EN-GB>recl=4*l*m,</SPAN> <BR>> <SPAN lang=EN-GB>write(10) cor, no loop,</SPAN> <BR>> <SPAN lang=EN-GB>The resulting binary file looks much better than before, but 'd cor' gives 'display nan to nan interval inf.'</SPAN> <BR>> <SPAN lang=EN-GB>Thanks all the same, i will keep trying.</SPAN> <BR>> <SPAN lang=EN-GB>Zilore</SPAN> <BR>> <SPAN lang=EN-GB> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN> <BR>> <BR>> <B><I>Yoshihiro Yamasaki <yamasaki@FIS.UA.PT></I></B> wrote: </P>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi ! <BR>> Try the following : <BR>> <BR>> parameter ( L = , M = ) <BR>> dimension cor (L,M) <BR>> open your file with ---> recl = 4 * L * M <BR>> irec = 1 <BR>> write(10,rec=irec) cor <BR>> <BR>> no do loop is needed <BR>> <BR>> yyamazaki <BR>> <BR>> Em Thu, 17 Mar 2005 03:12:18 -0800 <BR>> zilore mumba <ZMUMBA@YAHOO.COM>escreveu: <BR>> > <BR>> > <BR>> > <BR>> > Dear Yoshihiro, <BR>> > <BR>> > Thanks very much for sparing your time to spot my silly <BR>> >slip. Evidently the program was writing zeros. However it <BR>> >is still not displaying as required. <BR>> > <BR>> > <BR>> > <BR>> > <BR>> > Yoshihiro Yamasaki <YAMASAKI@FIS.UA.PT>wrote:Dear <BR>> >Zilone, <BR>> > <BR>> > Assuming that you have DIMENSION COR(55,57), you made a <BR>>
>
mistake in your do loop index ( do j and not k ) <BR>> > <BR>> > do J = 1 , m <BR>> > irec=irec+1 <BR>> > write(10,rec=irec) (cor(i,j),i=1,l) <BR>> > enddo <BR>> > <BR>> > good luck ! <BR>> > <BR>> > <BR>> > Em Wed, 16 Mar 2005 23:21:42 -0800 <BR>> > zilore mumba escreveu: <BR>> >> I have an apparently very simple problem. <BR>> >> I have correlation data cor(i,j) over an xy domain. <BR>> >>Using a fortran program I have written the data into <BR>> >>binary to display in Grads. Apparently Grads is able to <BR>> >>open the data file. <BR>> >> when I put recl=4*l, the display is blank (with only map <BR>> >>of Africa of course) <BR>> >> when I put recl=8*l, the display says constant field <BR>> >>value=0. <BR>> >> <BR>> >> Here are snippets from my fortran program: <BR>> >> <BR>> >> open <BR>>
>>(10,file='zcor824.dat',form='unformatted',access='direct', <BR>> >>recl=4*(l+1)) <BR>> >> <BR>> >> irec=0 <BR>> >> do k=1,m <BR>> >> irec=irec+1 <BR>> >> write(10,rec=irec) (cor(i,j),i=1,l) <BR>> >> enddo <BR>> >> <BR>> >> and my ctl file <BR>> >> <BR>> >> dset zcor824.dat <BR>> >> undef -1.00E+09 <BR>> >> title correlation <BR>> >> xdef 55 linear -30 1.5 <BR>> >> ydef 57 linear -42 1.5 <BR>> >> zdef 1 levels 850 <BR>> >> tdef 999 linear 00Z29AUG97 6hr <BR>> >> vars 1 <BR>> >> cor 1 99 linear correl coeff <BR>> >> endvars <BR>> >> <BR>> >> Any help would be very welcome to resolve my problem <BR>> >> Thanks all. <BR>> >> <BR>> >> <BR>> >> <BR>> >> <BR>> >> <BR>> >> --------------------------------- <BR>> >
;> Do
you Yahoo!? <BR>> >> Yahoo! Small Business - Try our new resources site! <BR>> > <BR>> > <BR>> > <BR>> > <BR>> > <BR>> > --------------------------------- <BR>> > Do you Yahoo!? <BR>> > Yahoo! Small Business - Try our new resources site! <BR>> </BLOCKQUOTE><BR>> <BR>>
<HR SIZE=1>
Do you Yahoo!? <BR>> Yahoo! Small Business - <A href="http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/">Try our new resources site!</A> <BR><BR><BR>Hallak <BR><BR>Laboratório de Estudos de Tempestades Severas (LETS) <BR>Departamento de Ciências Atmosféricas (DCA) <BR>Instituto de Astronomia, Geofísica e Ciências Atmosféricas (IAG) <BR>Universidade de São Paulo (USP) <BR>Rua do Matão, 1226 - Cidade Universitária -São Paulo SP -05508-900 <BR>Fone.: +55 (0-XX-11) 3091-4735 <BR>Fax: +55 (0-XX-11) 3091-4714 <BR><BR></FONT></BLOCKQUOTE><BR><BR><p>
<hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/my/navbar/sethp/*http://www.yahoo.com/r/hs
">Make Yahoo! your home page</a>