<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Pankaj,<br>
<br>
It looks like you are only specifying lon and lat, then writing to
the netCDF file. Did<br>
you try set time and level? E.g.,<br>
<br>
'set lon 0 360'<br>
'set lat -90 90'<br>
'set t 1 12'<br>
'set z 1 10'<br>
'sdfwrite var'<br>
<br>
Jim<br>
<div class="moz-cite-prefix">On 2/5/14 11:37 PM, pankaj kumar wrote:<br>
</div>
<blockquote
cite="mid:1391679440.40669.YahooMailNeo@web122606.mail.ne1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:garamond, new york, times, serif;font-size:14pt">
<div>Hi,</div>
<div><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;">If someone can look into my
problem.... I am writing a set of data into netcdf format
using GRADS from 4D global netcdf data for 1 year. I am using
sdfwrite command to generate netcdf file, however, the output
is generated for the final time and final vertical layer only
though the grads-display shows the script is running for all
layers and for all time. The problem is that netcdf output is
not saved for all layers and all time but for the final time
and layer. Please suggest me some corrections in my script
which is mentioned below. <br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;">'set lon 0 360'<br>
'set lat -90 90'<br>
<br>
#'set gxout fwrite'<br>
'set sdfwrite ncdata.nc'<br>
'sdfwrite var'<br>
<br>
t=1<br>
while(t<=12)<br>
'set t 't<br>
z=1<br>
while(z<=10)<br>
'set z 'z</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;"> 'define avg =
aave(var,g)'<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;"> 'd var'</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;"> z=z+1<br>
endwhile<br>
t=t+1<br>
endwhile</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;">Thank you and Regards</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;">Pankaj</div>
<div style="color: rgb(0, 0, 0); font-size: 18.6667px;
font-family: garamond,new york,times,serif; background-color:
transparent; font-style: normal;">ees, hokkaido university<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
<br>
</body>
</html>