World Climate

2009年1月2日星期五

【Xray】用GrADS来Saving animations

> Is there a way to save GrADS animations as MPEG or aminated GIF or ...?
> Any portable format will do.
>

What I usually do is to loop over time, display each frame, save each
frame to a GIF file with the wi command, and offline colate these into
a single animated GIF with Image Magick's 'convert' application. If
you
don't have Image Magick installed, the URL is:

http://www.wizards.dupont.com/cristy/

A sample script would go like this:

t=1
while ( t<100 )
'set t 't
'd expr'
'wi im-'t
t=t+1
endwhile
'!convert im-*.gif anim.gif'
'!rm im-*.gif'

The desired animation will be saved to file anim.gif. Take a look at
the convert documentation for controling the delay between frames,
etc.

Notice that the Image Magick utilities are bundled with Win32 GrADS,
but
you will need to build them yourself on unix.

0 评论: