[ncl-talk] Frame

Sebastian Otarola-Bustos Sebastian.F.Otarola-Bustos.1 at nd.edu
Tue Jul 21 04:32:49 MDT 2015


Hi All, I'm doing an animation, but don't know why, it's doing two times
each plot.
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 :

 eres                     = True
 eres at gsnDraw             = False
 eres at gsnFrame            = False

 hres  = eres
 mpres = eres
 Tres=eres
 Vres=eres


 do it=0,54

         u300w = fall[it]->UGRD_P0_L100_GLL0({levs},::-1,:)
         v300w = fall[it]->VGRD_P0_L100_GLL0({levs},::-1,:)
         hgt300= fall[it]->HGT_P0_L100_GLL0({30000},:,:)
         hgt300 at units  = "m"
         tmp300 = fall[it]->TMP_P0_L100_GLL0({levs},::-1,:)
         lat    = fall[it]->lat_0(::-1)
         T300=tmp300({30000},:,:)
         T300=T300-273.15
         U300=u300w({30000},:,:)
         V300=v300w({30000},:,:)
         wks_type            = "png"
         wks_type at wkWidth    = 1700
         wks_type at wkHeight   = 1536
         wks = gsn_open_wks(wks_type,"animate"+sprinti("%03i",it))

         mpid    = gsn_csm_map(wks,mpres)
         hnid  =  gsn_csm_contour(wks,hgt300(:,:),hres)
         T_300  = gsn_csm_contour(wks,T300,Tres)
         V_300   =gsn_csm_vector(wks,U300,V300,Vres)

         ;Overlaps maps in order
         overlay(mpid,hnid)
         overlay(mpid,T_300)
         overlay(mpid,V_300)
         ;draw(plotB)
         maximize_output(wks,True)
         frame(wks)
         delete(wks)
 end do
 cmd = "convert -delay 100 animate*.png Geo.gif"
 system(cmd)

I'm getting files as you can see in the attached picture(two files for the
same plots, for each time in the for)

Any help would be really appreciated.


All the best,
Sebastián.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/1df320c1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Imagenes_error.PNG
Type: image/png
Size: 89458 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/1df320c1/attachment.png 


More information about the ncl-talk mailing list