<div dir="ltr">Thank you very much, that was exactly the error!<br><br><br>All the best,<br>Sebastián.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 21, 2015 at 10:47 AM, Adam Phillips <span dir="ltr">&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Sebastián,<br></div>maximize_output draws the plot and advances the frame. See:<br><div><div><a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/maximize_output.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/maximize_output.shtml</a><br><br></div><div>Thus, I think all that you have to do is to remove your frame(wks) command.<br><br></div><div>If that does not solve the issue please let ncl-talk know..<br></div><div>Adam<br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Jul 21, 2015 at 4:32 AM, Sebastian Otarola-Bustos <span dir="ltr">&lt;<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi All, I&#39;m doing an animation, but don&#39;t know why, it&#39;s doing two times each plot. <br>I attached you the part of the script where I&#39;m doing the animation. I also set before for hres, Tres and Vres with the following options : <br><br><div> <font face="garamond, serif">eres                     = True</font></div><div><font face="garamond, serif"> eres@gsnDraw             = False</font></div><div><font face="garamond, serif"> eres@gsnFrame            = False</font></div><div><br> <font face="garamond, serif">hres  = eres</font></div><div><font face="garamond, serif"> mpres = eres</font></div><div><font face="garamond, serif"> Tres=eres</font></div><div><font face="garamond, serif"> Vres=eres</font></div><div><br></div><br><div><font face="garamond, serif"> do it=0,54</font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">         u300w = fall[it]-&gt;UGRD_P0_L100_GLL0({levs},::-1,:)</font></div><div><font face="garamond, serif">         v300w = fall[it]-&gt;VGRD_P0_L100_GLL0({levs},::-1,:)</font></div><div><font face="garamond, serif">         hgt300= fall[it]-&gt;HGT_P0_L100_GLL0({30000},:,:)</font></div><div><font face="garamond, serif">         hgt300@units  = &quot;m&quot;</font></div><div><font face="garamond, serif">         tmp300 = fall[it]-&gt;TMP_P0_L100_GLL0({levs},::-1,:)</font></div><div><font face="garamond, serif">         lat    = fall[it]-&gt;lat_0(::-1)</font></div><div><font face="garamond, serif">         T300=tmp300({30000},:,:)</font></div><div><font face="garamond, serif">         T300=T300-273.15</font></div><div><font face="garamond, serif">         U300=u300w({30000},:,:)</font></div><div><font face="garamond, serif">         V300=v300w({30000},:,:)</font></div><div><font face="garamond, serif">         wks_type            = &quot;png&quot;</font></div><div><font face="garamond, serif">         wks_type@wkWidth    = 1700</font></div><div><font face="garamond, serif">         wks_type@wkHeight   = 1536</font></div><div><font face="garamond, serif">         wks = gsn_open_wks(wks_type,&quot;animate&quot;+sprinti(&quot;%03i&quot;,it))</font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">         mpid    = gsn_csm_map(wks,mpres)</font></div><div><font face="garamond, serif">         hnid  =  gsn_csm_contour(wks,hgt300(:,:),hres)</font></div><div><font face="garamond, serif">         T_300  = gsn_csm_contour(wks,T300,Tres)</font></div><div><font face="garamond, serif">         V_300   =gsn_csm_vector(wks,U300,V300,Vres)</font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">         ;Overlaps maps in order</font></div><div><font face="garamond, serif">         overlay(mpid,hnid)</font></div><div><font face="garamond, serif">         overlay(mpid,T_300)</font></div><div><font face="garamond, serif">         overlay(mpid,V_300)</font></div><div><font face="garamond, serif">         ;draw(plotB)</font></div><div><font face="garamond, serif">         maximize_output(wks,True)</font></div><div><font face="garamond, serif">         frame(wks)</font></div><div><font face="garamond, serif">         delete(wks)</font></div><div><font face="garamond, serif"> end do</font></div><div><font face="garamond, serif"> cmd = &quot;convert -delay 100 animate*.png Geo.gif&quot;</font></div><div><font face="garamond, serif"> system(cmd)</font></div><div><br>I&#39;m getting files as you can see in the attached picture(two files for the same plots, for each time in the for)<br><br>Any help would be really appreciated.<br><br><br>All the best,<br>Sebastián.</div></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>