<div dir="ltr">Hi<br>another thing you can do is use 'gifsicle', a very useful program that can make animation from gif files<br>though this can make the script very long<br>if you want i can give you an example of a script<br>
eliav<br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 8:33 PM, Eric Altshuler <span dir="ltr"><<a href="mailto:ela@cola.iges.org">ela@cola.iges.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Kim WonMoo's method sets up a script loop that does nothing except use CPU cycles to cause a delay between frames in the animation. This is a brute force method that may result in drastically different delay lengths depending on machine speed and CPU usage by other processes at any given time. A better way to introduce a delay between frames is to use double buffer mode and the Unix 'sleep' command, e.g.<br>
<br>
'set dbuff on'<br>
<div class="im">it=1<br>
while (it<=20)<br>
'set t 'it<br>
'd slp'<br>
</div>'swap'<br>
'!sleep 1'<br>
it=it+1<br>
endwhile<br>
<br>
The only problem here is that the minimum sleep time is 1 second, which is rather long for an animation. On some Linux machines there is a 'usleep' command that allows the user to specify the delay time in microseconds, e.g.<br>
<br>
'!usleep 500000'<br>
<br>
to sleep for 0.5 second. If your system has the usleep command, use it instead of sleep so you can specify a delay of less than 1 second. Using double buffer mode along with the sleep or usleep command produces a nice animation without having to use the mouse or keyboard to advance the frames.<br>
<br>
Best regards,<br>
<br>
Eric L. Altshuler<br>
Assistant Research Scientist<br>
Center for Ocean-Land-Atmosphere Studies<br>
<div class="im">4041 Powder Mill Road, Suite 302<br>
</div>Calverton, MD 20705-3106<br>
USA<br>
<br>
E-mail: <a href="mailto:ela@cola.iges.org">ela@cola.iges.org</a><br>
Phone: (301) 902-1257<br>
Fax: (301) 595-9793<br>
<div class="im"><br>
----- Original Message -----<br>
From: "Yan Libin" <<a href="mailto:zjuyanlibin@163.COM">zjuyanlibin@163.COM</a>><br>
To: <a href="mailto:GRADSUSR@LIST.CINECA.IT">GRADSUSR@LIST.CINECA.IT</a><br>
</div><div class="im">Sent: Tuesday, September 22, 2009 5:02:26 AM GMT -05:00 US/Canada Eastern<br>
Subject: Re: Re: controling Looping<br>
<br>
<br>
idummy??? what is this variable?<br>
<br>
<br>
2009-09-22<br>
<br>
Yan Libin<br>
<br>
发件人: Kim WonMoo<br>
发送时间: 2009-09-22 16:48:49<br>
收件人: GRADSUSR<br>
</div>æ �送:<br>
<div><div></div><div class="h5">主题: Re: controling Looping<br>
<br>
<br>
Or, just insert dummy loop inside,<br>
<br>
it=1<br>
while (it<=20)<br>
'set t 'it<br>
'd slp'<br>
idummy=1<br>
while (idummy<=100000)<br>
idummy=idummy+1<br>
endwhile<br>
it=it+1<br>
endwhile<br>
<br>
to avoid keep pressing key-board.<br>
<br>
Good luck,<br>
<br>
Kim,WonMoo<br>
<br>
<br>
<br>
<br>
From: Yan Libin<br>
Sent: Tuesday, September 22, 2009 5:40 PM<br>
To: <a href="mailto:GRADSUSR@LIST.CINECA.IT">GRADSUSR@LIST.CINECA.IT</a><br>
Subject: Re: controling Looping<br>
<br>
<br>
it=1<br>
while(it<=20)<br>
set t 'it'<br>
d slp<br>
pull down<br>
c<br>
endwhile<br>
<br>
<br>
2009-09-22<br>
<br>
Yan Libin<br>
<br>
发件人: hiren dave<br>
发送时间: 2009-09-22 16:29:43<br>
收件人: GRADSUSR<br>
</div></div>æ �送:<br>
主题: controling Looping<br>
<div><div></div><div class="h5"><br>
<br>
Dear,<br>
Friends<br>
<br>
I have netCDf file containing the daily average value of a parameter. I am using following script to view the plots of 5 to 10 days in looping. But the speed of looping is so fast and it is difficult to see any pattern in the output. I want to control the speed of this looping. Is there any way?<br>
<br>
'set t 1 20'<br>
'd slp'<br>
<br>
<br>
Hiren Dave<br>
JRF<br>
Dept. of Physics, Electronics & Space Science<br>
University School of Sciences<br>
Gujarat University<br>
Navrangpura<br>
Ahmedabad-09<br>
Gujarat-India<br>
M:- 9426976862<br>
<br>
<br>
<br>