help in fwrite a data

Mald MM5 maldmm5 at GMAIL.COM
Tue May 27 20:20:24 EDT 2008

Hi there,

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?


On 5/20/08, Arlindo da Silva <dasilva at> wrote:
> On Mon, May 19, 2008 at 6:43 AM, Manish Singh <singhmanish1010 at>
> wrote:
>> Hi all, i am working on sgi machine,my ctl file is as below -
>> dset  ^
>> dtype netcdf
> 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.
>> options byteswapped big_endian template
> 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".
>   Arlindo
> --
> Arlindo da Silva
> dasilva at
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the gradsusr mailing list