[ncl-talk] Frame

Sebastian Otarola-Bustos Sebastian.F.Otarola-Bustos.1 at nd.edu
Tue Jul 21 13:10:14 MDT 2015


Thank you very much, that was exactly the error!


All the best,
Sebastián.

On Tue, Jul 21, 2015 at 10:47 AM, Adam Phillips <asphilli at ucar.edu> wrote:

> Hi Sebastián,
> maximize_output draws the plot and advances the frame. See:
> https://www.ncl.ucar.edu/Document/Graphics/Interfaces/maximize_output.shtml
>
> Thus, I think all that you have to do is to remove your frame(wks) command.
>
> If that does not solve the issue please let ncl-talk know..
> Adam
>
>
> On Tue, Jul 21, 2015 at 4:32 AM, Sebastian Otarola-Bustos <
> Sebastian.F.Otarola-Bustos.1 at nd.edu> wrote:
>
>> 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.
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>
> --
> Adam Phillips
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/   303-497-1726
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/9821679c/attachment.html 


More information about the ncl-talk mailing list