NCL Home>
Application examples>
Plot techniques ||
Data files for some examples
Example pages containing:
tidbits |
resources |
functions/procedures
Animations
This page shows how to create animations with NCL. One way to view
the animation is to send the graphical output to an NCGM file, and
then use idt to animate it.
There are various ways to create MPEG and other animations files from
NCL PS or PDF files, which we'll document eventually.
animate_1.ncl:
Demonstrates how to efficiently create an animation with NCL. Instead
of calling
gsn_csm_contour_map every
time inside the "do" loop, you can use a
setvalues
call to just change the data and the title.
This example creates a file called "animate.ncgm".
You can use idt to animate it.
idt animate.ncgm
Three panels should pop up, and one of them has an "animate" button.
Click on this, and each frame will be loaded into memory. When this
is done, click the ">>" or "<<" button to play the animation. Use
"delay" to slow down the animation, or "loop" to repeat it.
[View the animation.]