<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">dasilva@alum.mit.edu</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<div class="gmail_quote">On Mon, May 19, 2008 at 6:43 AM, Manish Singh <<a href="mailto:singhmanish1010@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">singhmanish1010@gmail.com</a>> wrote:<br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
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" onclick="return top.js.OpenExtLink(window,event,this)">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="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<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" onclick="return top.js.OpenExtLink(window,event,this)">dasilva@alum.mit.edu</a> </blockquote>
</div><br>