<P>
Hello,<BR>
U should write .gs file like<BR>
<BR>
'open test24.ctl'<BR>
'set x 1 202' <BR>
'set y 1 133'<BR>
'set gxout fwrite'<BR>
'set fwrite uv.dat'<BR>
t=13<BR>
while (t<=36)<BR>
'set t 't<BR>
'set z 1'<BR>
'd u'<BR>
'd v'<BR>
t=t+1<BR>
endwhile<BR>
'disable fwrite'<BR>
Hope this should work<BR>
-----------------------------------------------------------------------<BR>
Shailendra Rai.<BR>
K. Banerjee Centre of Atmospheric and Ocean Studies<BR>
University of Allahabad<BR>
Allahabad<BR>
INDIA.<BR>
<BR>
On Fri, 29 Jul 2005 DaNa L.Carlis wrote :<BR>
>Hello,<BR>
><BR>
>I am attempting to write MM5 output to a binary file that can be read by<BR>
>GRADS. I only want to write the u and v component of the winds between the<BR>
>12th and 36th hour of the forecast run. I've attached a portion of the .ctl<BR>
>file that is produced using MM5toGrADS.<BR>
><BR>
>dset ^test24.dat<BR>
>byteswapped<BR>
>title MM5 data<BR>
>undef -9999.<BR>
>pdef 99 69 lcc 20.50 -157.20 14.00 11.00 30.00 60.00 -157.20<BR>
> 2000. 2000.<BR>
>xdef 202 linear -157.44 0.0090<BR>
>ydef 133 linear 20.32 0.0090<BR>
>zdef 28 levels<BR>
> 0.99900<BR>
> 0.99600<BR>
> 0.99200<BR>
> 0.98750<BR>
> 0.98250<BR>
>tdef 49 linear 00:00Z24JUL2005 1hr<BR>
>vars 28<BR>
>u 28 99 u wind (m/s)<BR>
>v 28 99 v wind (m/s)<BR>
><BR>
>Here is a copy of my .gs file that I'm using to write the data:<BR>
><BR>
>'open test24.ctl'<BR>
>'set x 1 201'<BR>
>'set y 1 132'<BR>
>'set gxout fwrite'<BR>
>'set fwrite uv.dat'<BR>
>t=13<BR>
>while (t<=36)<BR>
>'set t 't<BR>
>'d u'<BR>
>'d v'<BR>
>t=t+1<BR>
>endwhile<BR>
><BR>
>The .ctl file that is used to read the uv.dat binary file is the following:<BR>
><BR>
>dset ^uv.dat<BR>
>title wind data<BR>
>undef -9999.<BR>
>xdef 202 linear -157.44 0.0090<BR>
>ydef 133 linear 20.32 0.0090<BR>
>zdef 1 levels 0.99900<BR>
>tdef 24 linear 12:00Z24JUL2005 1hr<BR>
>vars 2<BR>
>u 0 99 u wind (m/s)<BR>
>v 0 99 u wind (m/s)<BR>
>endvars<BR>
><BR>
>So, the problem that I'm having is that I can write the data to the binary<BR>
>file, but when I open up grads to display the data that I wrote the plots<BR>
>are shifted or skewed. The display at time t=1 is fine, but as I move to<BR>
>t=5,6,7,etc.. the data becomes more skewed. Please help!!<BR>
</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0></a>