<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2> Maybe you could merge all <EM>.dat</EM> files into one
and control it by a single <EM>.ctl</EM> file. At least it worked for
me.</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2> Here is what you could have in your script:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><EM>'open YOUR_NEW.ctl'</EM></DIV>
<DIV><EM>count=1</EM></DIV>
<DIV><EM>rec=3 (example
for the 3 files) </EM></DIV>
<DIV><EM>while(count<=rec)</EM></DIV>
<DIV>'set z 21'<BR>'set lat -60 90'<BR>'set lon -180 180'<BR>'set mpdset
hires'<BR>'set gxout shaded'<BR><EM>'set t 'count </EM></DIV>
<DIV>'d rh'<BR>'draw map'<BR>'run <A
href="http://cbar.gs/">cbar.gs</A>'<BR><EM>'q
time' (this will give you a string which I call
"alldate")</EM></DIV>
<DIV><EM>alldate=subwrd(result,3)</EM></DIV>
<DIV><EM>date=substr(alldate,4,9) (This gives date as
"05MAR2006" )</EM></DIV>
<DIV><EM>hour=substr(alldate,1,2) (This gives hour as "00")</EM></DIV>
<DIV><EM>'draw title Relative Humidity 'date' at 'hour'UTC '</EM></DIV>
<DIV><FONT size=2><EM><FONT size=3>'printim 'date'_'hour'.png x1600
y1200'</FONT></EM></DIV>
<DIV><EM><FONT size=3>'clear'</FONT></EM></DIV>
<DIV><EM><FONT size=3>count=count+1</FONT></EM></DIV>
<DIV><EM><FONT size=3>endwhile</FONT></EM></DIV>
<P><FONT size=3></FONT> </P>
<P><FONT size=3>Don't forget to "modify" TDEF in YOUR_NEW.ctl</FONT></P>
<P> </P>
<P><FONT size=3>I hope this helps,</FONT></P>
<P><FONT size=3>Dimitris.</P></FONT>
<P><STRONG><FONT size=3></FONT></STRONG> </P></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=selfscience06@GMAIL.COM href="mailto:selfscience06@GMAIL.COM">Dizzle
Man</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=GRADSUSR@LIST.CINECA.IT
href="mailto:GRADSUSR@LIST.CINECA.IT">GRADSUSR@LIST.CINECA.IT</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, March 17, 2009 9:33
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> script Help</DIV>
<DIV><BR></DIV>I have several NCEP data files I would like to loop in a script
without having to open each file one by one. Any
suggestions?<BR><BR>'reinit'<BR>'open gfsanl_3_20060805_0000_000.ctl'<BR>'set
z 21'<BR>'set lat -60 90'<BR>'set lon -180 180'<BR>'set mpdset hires'<BR>'set
gxout shaded'<BR>'d rh'<BR>'draw map'<BR>'run <A
href="http://cbar.gs">cbar.gs</A>'<BR>'draw title Relative Humidity Along
ITCZ: 2006-08-05_0000'<BR>'printim 05_0000.png x1600
y1200'<BR><BR>'reinit'<BR>'open gfsanl_3_20060805_0600_000.ctl'<BR>'set z
21'<BR>'set lat -60 90'<BR>'set lon -180 180'<BR>'set mpdset hires'<BR>'set
gxout shaded'<BR>'d rh'<BR>'draw map'<BR>'run <A
href="http://cbar.gs">cbar.gs</A>'<BR>'draw title Relative Humidity Along
ITCZ: 2006-08-05_0600'<BR>'printim 05_0600.png x1600
y1200'<BR><BR>'reinit'<BR>'open gfsanl_3_20060805_1200_000.ctl'<BR>'set z
21'<BR>'set lat -60 90'<BR>'set lon -180 180'<BR>'set mpdset hires'<BR>'set
gxout shaded'<BR>'d rh'<BR>'draw map'<BR>'run <A
href="http://cbar.gs">cbar.gs</A>'<BR>'draw title Relative Humidity Along
ITCZ: 2006-08-05_1200'<BR>'printim 05_1200.png x1600 y1200'
</BLOCKQUOTE></BODY></HTML>