<div>Respected Sir,</div>
<div>the command which I am using is the</div>
<div> </div>
<div>'reinit'<br>'sdfopen taux.cdf'<br>'set gxout fwrite'<br>'set fwrite tauxobs.grd'<br>'set x 129.5 320.5'<br>'set y 121.5 171.5'<br>'set z 1'<br>'set t 1 24'<br>
'd taux'<br>'disable fwrite'</div>
<div> </div>
<div>and the data length in tauxobs.grd is 193*52*24*4, where nx=193, ny=52, and t=24,</div>
<div>so, where is the error in file i am not getting it, that is it display the variable for only time t=1, not for the other time,</div>
<div>please help me.</div>
<div> </div>
<div>with redgards</div>
<div> </div>
<div>anushri</div><br><br>
<div><span class="gmail_quote">On 2/4/09, <b class="gmail_sendername">Douglas Clark</b> <<a href="mailto:dbcl@ceh.ac.uk">dbcl@ceh.ac.uk</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Anushri,<br><br>It's difficult to know what the problem is unless you give more information about how you created the file!<br>
<br>There's potentially quite a lot of information that you need to provide, but the following at least would be useful:<br>* the script or commands that you used to perform the fwrite, and what GrADS output to the screen when you did this<br>
* the ctl file you created for the output<br>* the results of the command "ncdump -h taux97-98.cdf" (if you have the ncdump utility)<br><br>In the meantime, is it possible that you only wrote out 1 time of the netCDF file? How big is the file tauxobs.grd (e.g. ls -l in Unix)? If the grid is of size nx*ny points, one year of monthly data should give a file of size nx*ny*12*4 bytes. If your file is smaller, you haven't written all times, so repeat the fwrite stage after 'set t 1 12' (or whatever is appropriate). Try this first!<br>
<br>Doug<br><br><br>>>> <a href="mailto:anushridutta01@GMAIL.COM">anushridutta01@GMAIL.COM</a> 04/02/2009 07:20 >>><br>Dear Grads User,<br>Hi,<br>here I am facing a problem, that i want to write a binary data for<br>
the 12 month by data taux97-98.cdf, through fwrite function,<br>but when I pot the data through ctl file,<br>it display for a single month, not for all the months,<br>and the error which it showing is<br><br>ga-> open taux.ctl<br>
Scanning description file: taux.ctl<br>Data file tauxobs.grd is open as file 1<br>LON set to 64.5 160<br>LAT set to -15 10<br>LEV set to 1 1<br>Time values set: 1997:1:1:0 1997:1:1:0<br>ga-> set t 1<br>Time values set: 1997:1:1:0 1997:1:1:0<br>
ga-> d taux<br>Contouring: -0.08 to 0.08 interval 0.02<br>ga-> set t 2<br>Time values set: 1997:2:1:0 1997:2:1:0<br>ga-> d taux<br>Low Level I/O Error: Read error on data file<br>Data file name = tauxobs.grd<br>
Error reading 192 bytes at location 313344<br>Data Request Error: Error for variable 'taux'<br>Error ocurred at column 1<br>DISPLAY error: Invalid expression<br>Expression = taux<br><br><br>same as for the 3 to 12 month,<br>
<br>I am not understanding why it is so,<br>Please tell me, how do I achieve this,<br><br>with regards<br><br>anushri<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></blockquote></div>
<br>