<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">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">On Tue, Jul 21, 2015 at 4:32 AM, Sebastian Otarola-Bustos <span dir="ltr"><<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All, I'm doing an animation, but don't know why, it's doing two times each plot. <br>I attached you the part of the script where I'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]->UGRD_P0_L100_GLL0({levs},::-1,:)</font></div><div><font face="garamond, serif"> v300w = fall[it]->VGRD_P0_L100_GLL0({levs},::-1,:)</font></div><div><font face="garamond, serif"> hgt300= fall[it]->HGT_P0_L100_GLL0({30000},:,:)</font></div><div><font face="garamond, serif"> hgt300@units = "m"</font></div><div><font face="garamond, serif"> tmp300 = fall[it]->TMP_P0_L100_GLL0({levs},::-1,:)</font></div><div><font face="garamond, serif"> lat = fall[it]->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 = "png"</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,"animate"+sprinti("%03i",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 = "convert -delay 100 animate*.png Geo.gif"</font></div><div><font face="garamond, serif"> system(cmd)</font></div><div><br>I'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>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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><br><br clear="all"><br>-- <br><div class="gmail_signature"><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">303-497-1726 </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>
</div>