<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Thanks for replying<BR>
<BR>
Is there an example of C program or C code I could look at that reads the fwrite output ?<BR>
<BR>
Many thanks<BR>
<BR>
- Shunjie<BR><BR>> Date: Tue, 3 Jun 2008 08:49:35 +0100<BR>> From: dbcl@CEH.AC.UK<BR>> Subject: Re: fwrite<BR>> To: GRADSUSR@LIST.CINECA.IT<BR>> <BR>> Shunjie,<BR>> <BR>> A few more comments....<BR>> <BR>> 'fwrite' writes a "flat" binary file (i.e. no headers) which should be readable by GrADS (once you write a suitable .ctl file), or you could read with C, FORTRAN (direct access for FORTRAN) etc.<BR>> <BR>> Doug<BR>> <BR>> <BR>> >>> liuxc@MAIL.IAP.AC.CN 03/06/2008 01:40 >>><BR>> Hi*****<BR>> <BR>> <BR>> you should first do like this<BR>> <BR>> set gxout fwrite<BR>> set fwrite xx.dat (xx implys your file name which will be exported)<BR>> <BR>> <BR>> then in the middle, you can display the data in the order of the Grads requires<BR>> the order like time /level / variable/<BR>> <BR>> this is important to make it clear the order<BR>> <BR>> <BR>> then<BR>> disable fwrite (the fwrite is end)<BR>> <BR>> <BR>> i think you can get many resources even in Chinese,such as "***"<BR>> <BR>> good luck to you<BR>> <BR>> <BR>> <BR>> <BR>> <BR>> 2008-06-03<BR>> <BR>> <BR>> <BR>> **<BR>> <BR>> <BR>> <BR>> **** Shun Jie Liu<BR>> **** 2008-06-03 06:00:02<BR>> **** GRADSUSR@LIST.CINECA.IT<BR>> ***<BR>> ** fwrite<BR>> <BR>> Hello, can anyone tell me what is fwrite ?<BR>> From the ignes website, I know it writes to a data output but how are the data are stored (format)? and how can I read them ?<BR>> <BR>> Thank you<BR>> <BR>> -<BR>> <BR>> <BR>> --<BR>> This message (and any attachments) is for the recipient only. NERC<BR>> is subject to the Freedom of Information Act 2000 and the contents<BR>> of this email and any reply you make may be disclosed by NERC unless<BR>> it is exempt from release under the Act. Any material supplied to<BR>> NERC may be stored in an electronic records management system.<BR><BR><br /><hr /> <a href='' target='_new'></a></body>
</html>