[ncl-talk] NCL plot: Three output files

Lara Quitián Hernández laraquitianhernandez at gmail.com
Thu Jun 6 04:18:13 MDT 2019


Great! That's was the key point!

Thank you very much Lyndon and Rick!

Best regards,
Lara

El jue., 6 jun. 2019 a las 11:03, Lyndz (<olagueralyndonmark429 at gmail.com>)
escribió:

> Hi,
>
> Did you specify the gsnDraw and gsnFrame for both res and slp_res?
> Something like this:
>
>   res = True
>   res at mpOutlineOn  = True	
>   res at gsnDraw      =  False         ; do not draw the plot
>   res at gsnFrame     =  False         ; do not advance theframe
>
>     slp_res = True
> slp_res at gsnDraw = False
> slp_res at gsnFrame = False
>
>
>
>
>
>
> *    plot = gsn_csm_contour_map(wks,eth,res)         ; create a default
> plot    plot2 = gsn_csm_contour(wks,slp,slp_res)         ; create a default
> plot    overlay(plot,plot2)                       ; overlay the slp plot on
> the eth plot   draw(plot)                                     frame(wks)*
>
> Delete first the images. Then add those lines in your script.
>
> Best,
>
> *Lyndon Mark P. Olaguera*
> PhD Student
> Laboratory of Climatology
> Department of Geography
> Faculty of Urban Environmental Science
> Minami-Osawa Campus
> Tokyo Metropolitan University
> Hachioji Tokyo, Japan
>
>
>
> On Thu, Jun 6, 2019 at 5:21 PM Lara Quitián Hernández <
> laraquitianhernandez at gmail.com> wrote:
>
>> Hello Rick,
>>
>> Thank you very much!
>>
>> I have tried to set those resources to False, but it still generates two
>> images: one with only the contour plot and the other one with the correct
>> figure (contour over the shaded field).
>>
>> Best regards,
>> Lara
>>
>>
>>
>> El mié., 5 jun. 2019 a las 17:53, Rick Brownrigg (<brownrig at ucar.edu>)
>> escribió:
>>
>>> Hi Lara,
>>>
>>> Do you have these resources set:
>>>
>>>   res at gsnDraw = False
>>>   res at gsnFrame = False
>>>
>>> These are True by default; setting them to False prevents the plots from
>>> being drawn immediately, allowing one to then call the overlay procedure,
>>> and then explicitly draw and frame.
>>>
>>> Rick
>>>
>>> On Wed, Jun 5, 2019 at 9:20 AM Lara Quitián Hernández <
>>> laraquitianhernandez at gmail.com> wrote:
>>>
>>>> Good afternoon,
>>>>
>>>> When I use the overlay function:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> *plot = gsn_csm_contour_map(wks,eth,res)         ; create a default
>>>> plotplot2 = gsn_csm_contour(wks,slp,slp_res)         ; create a default
>>>> plot  overlay(plot,plot2)                       ; overlay the slp plot on
>>>> the eth plot  draw(plot)                                    frame(wks)*
>>>>
>>>> I obtain three different files:
>>>>
>>>> *ETH2-slp_Ophelia1_66.000001.png*
>>>>
>>>> *ETH2-slp_Ophelia1_66.000002.png*
>>>>
>>>> *ETH2-slp_Ophelia1_66.000003.png*
>>>>
>>>> What should I do to avoid that? I only need the last one (the overlay
>>>> of the 1st and 2nd plot).
>>>> I have tried to comment the draw() and frame() function, but it doesn't
>>>> work.
>>>>
>>>> Thanks in advance.
>>>>
>>>> Regards,
>>>> Lara
>>>> --
>>>>
>>>>
>>>> *Lara Quitián Hernández, PhD Student*
>>>> Department of Earth Physics and Astrophysics
>>>> Faculty of Physical Sciences
>>>> Ciudad Universitaria, Plaza Ciencias, 1
>>>> 28040 Madrid. Spain
>>>> Email: lquitian at ucm.es <mlunar at aemet.es>
>>>>
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> ncl-talk at ucar.edu
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>
>>>
>>
>> --
>>
>>
>> *Lara Quitián Hernández, PhD Student*
>> Department of Earth Physics and Astrophysics
>> Faculty of Physical Sciences
>> Ciudad Universitaria, Plaza Ciencias, 1
>> 28040 Madrid. Spain
>> Email: lquitian at ucm.es <mlunar at aemet.es>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>

-- 


*Lara Quitián Hernández, PhD Student*
Department of Earth Physics and Astrophysics
Faculty of Physical Sciences
Ciudad Universitaria, Plaza Ciencias, 1
28040 Madrid. Spain
Email: lquitian at ucm.es <mlunar at aemet.es>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190606/6f825128/attachment.html>


More information about the ncl-talk mailing list