<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Sebastian,<br>
<br>
you don't need to open a workstation for each plot, because NCL will
do it automatically, <br>
if you use a Format like "PNG".<br>
<br>
Take a look at the NCL animations page
<a class="moz-txt-link-freetext" href="http://ncl.ucar.edu/Applications/animate.shtml">http://ncl.ucar.edu/Applications/animate.shtml</a>.<br>
The last example is what you are looking for.<br>
<br>
Bye,<br>
Karin<br>
<br>
<div class="moz-cite-prefix">Am 13.07.15 um 02:51 schrieb Sebastian
Otarola-Bustos:<br>
</div>
<blockquote
cite="mid:CAO9pyinGweeYZycfAsQo20SBpsmNywzjdfPbdYda1qdPrM_bKg@mail.gmail.com"
type="cite">
<div dir="ltr">Hello, <br>
<br>
I'm trying to do a time animation that consist in 2 plots, SLP
colormap, and over that I would like to plot topography
contours. But the thing is that as I've created the workstation
inside the loop, I have to plot topography(ter) every time, and
the labels of the contours change their positions in every
image. I would like this labels to be always in the same
place(as topograpgy is a static field), so I think I have to
freeze the first terrain plot, but I don't know how to do that.
And I also cannot plot this outside the loop, because I need to
create the workstation inside the loop because at the end I
create an animation from all the .png files.<br>
<br>
Here is the part of the script I was talking about.<br>
<br>
<div><b> do n=0,ntimes-1</b></div>
<div><b> wks =
gsn_open_wks("png","animate"+sprinti("%02i",n)) ;
animate_00.png, animate_01.png, etc</b></div>
<div><b> print("Trabajando en el tiempo: " + times(n))</b></div>
<div><b> res@gsnRightString = " Tiempo: "+ times(n)</b></div>
<div><b> res@gsnDraw = False</b></div>
<div><b> res@gsnFrame = False</b></div>
<div><b> plotB = gsn_csm_contour(wks,SLP(n,:,:),res)</b></div>
<div><b> plotA = gsn_csm_contour(wks,ter(:,:),ter_res)</b></div>
<div><b> map = gsn_csm_map(wks,map_res)</b></div>
<div><b> overlay(map,plotB)</b></div>
<div><b> overlay(map,plotA)</b></div>
<div><b> draw(map)</b></div>
<div><b> frame(wks)</b></div>
<br>
Any help would be really appreciated,<br>
<br>
Best regards,<br>
Sebastián.</div>
</blockquote>
</body>
</html>