<div>Hi Mr. you,</div>
<div>This is like that because the fwrite command writes binary files. To read them you should do a ctl file as described in the users' guide.</div>
<div> </div>
<div>Below I give you an example. To run the ctl file use the command open.</div>
<div> </div>
<div>Eduardo.</div>
<div> </div>
<div>DSET c:/grads19/data/Eu1992.bin<br>TITLE EP<br>UNDEF 9.36e36f<br>XDEF 145 LINEAR 0 2.5<br>YDEF 73 LINEAR -90 2.5<br>ZDEF 1 levels 200<br>TDEF 1 linear 1jan1950 1yr<br>VARS 3 <br>Eux 0 99 local EP en x<br>
Euy 0 99 local EP en y<br>Euz 0 99 local EP en z<br>ENDVARS<br><br></div>
<div class="gmail_quote">2008/5/27 Mald MM5 <<a href="mailto:maldmm5@gmail.com">maldmm5@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi there,<br><br>After doing an fwrite how can I open the file written. When I try to view it in a text editor (eg vi editor) it looks like garbage. Am not sure why its doing so. Could you please help me on this?<br>
<br>Thanks<br><br><br><br>
<div><span class="gmail_quote">On 5/20/08, <b class="gmail_sendername">Arlindo da Silva</b> <<a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #cccccc 1px solid">
<div class="gmail_quote">On Mon, May 19, 2008 at 6:43 AM, Manish Singh <<a href="mailto:singhmanish1010@gmail.com" target="_blank">singhmanish1010@gmail.com</a>> wrote:<br></div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #cccccc 1px solid">Hi all, i am working on sgi machine,my ctl file is as below -<br>dset ^time_mean.00%y4.%<a href="http://m2.01.nc/" target="_blank">m2.01.nc</a><br>
dtype netcdf</blockquote>
<div><br></div>
<div>If you are producing your file with "fwrite" it is not "netcdf", so remove this line. If you would like to produce netcdf files, use lats4d. </div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #cccccc 1px solid"><br>options byteswapped big_endian template</blockquote>
<div><br></div>
<div>The option "byteswapped" is deprecated, being replaced by either "little_endian" or "big_endian". Since you are on a SGI (and I am assuming you have a MIPS processor, do a "uname -m" to find out) keep the "big_endian". If you have a SGI Altix (IA64) specify "little_endian". In any case, remove the "byteswapped".</div>
<div><br></div>
<div> Arlindo</div>
<div><br></div>
<div> </div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a> </blockquote></div><br></blockquote></div><br>