<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Barry,<div class="">I honestly don't understand the problem.</div><div class="">Why would just copying the resource over not work? :) </div><div class=""><br class=""></div><div class="">if you set</div><div class=""><br class=""></div><div class="">res=True </div><div class="">res@...</div><div class="">res@....</div><div class=""><br class=""></div><div class="">and then assign </div><div class=""><br class=""></div><div class="">res2=res</div><div class=""><br class=""></div><div class="">res2 will be True and have all the resources that you define for res.</div><div class=""><br class=""></div><div class="">Am I missing something? </div><div class=""><br class=""></div><div class="">If you instead want to set "just one resource" why not just assign it without having to copy the ones that you do not want to use? </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 7. Nov 2017, at 18:04, Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" class="">barry.h.lynn@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi:<div class=""><br class=""></div><div class="">Thank you, but not the attributes, but the resources.</div><div class=""><br class=""></div><div class="">I have "subroutines" that define resources for a variable.</div><div class=""><br class=""></div><div class="">However, before using one of them (the appropriate one), I want to set the variable equal to other resources first.</div><div class=""><br class=""></div><div class="">For instance:</div><div class=""><br class=""></div><div class="">zdr_res = opts_xy</div><div class=""><br class=""></div><div class="">Then add to opts_xy the resources in res1, for instance.</div><div class=""><br class=""></div><div class=""><p class="gmail-p1"><span class="gmail-s1">undef("set_res1_list")</span></p><p class="gmail-p1"><span class="gmail-s1">function set_res1_list()</span></p><p class="gmail-p1"><span class="gmail-s1">begin</span></p><p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space">  </span>res<span class="gmail-Apple-converted-space">                </span>= True ; I assume this would need to be commented out.</span></p><p class="gmail-p1">various resources...</p><p class="gmail-p1">end</p></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Nov 7, 2017 at 6:48 PM, Adam Phillips <span dir="ltr" class=""><<a href="mailto:asphilli@ucar.edu" target="_blank" class="">asphilli@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi Barry,<div class="">If all you want to do is to copy attributes from one array to another, I think copy_VarAtts would work:</div><div class=""><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/copy_VarAtts.shtml" target="_blank" class="">https://www.ncl.ucar.edu/<wbr class="">Document/Functions/<wbr class="">Contributed/copy_VarAtts.shtml</a></div><div class="">Adam</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Tue, Nov 7, 2017 at 4:56 AM, Barry Lynn <span dir="ltr" class=""><<a href="mailto:barry.h.lynn@gmail.com" target="_blank" class="">barry.h.lynn@gmail.com</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="h5"><div dir="ltr" class="">Hello:<div class=""><br class=""></div><div class="">I can't seem to find how to do this.</div><div class=""><br class=""></div><div class="">I have this ncl line:</div><div class=""><br class=""></div><div class=""><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1">opts_zdr = </span><span class="m_-3771703249917078470m_-8543467763429719921gmail-s2">set_res2</span><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1">_list()</span></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1">I also have opts_xy.</span></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1">When making vertical cross sections I need to set opts_zdr = opts_xy</span></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1">and then add in the resources of res2_lis.</p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1">I am not sure how to add them in, rather than "set" them.</p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1">Thanks,</p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><br class=""></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1">Barry</p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1"><br class=""></span></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1"><br class=""></span></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1"><br class=""></span></p><div class=""><br class=""></div>-- <br class=""><div class="m_-3771703249917078470m_-8543467763429719921gmail_signature"><div dir="ltr" class="">Barry H. Lynn, Ph.D<div class=""><div class="">Senior Lecturer,</div><div class=""><div class=""><span style="color:rgb(136,136,136)" class="">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)" class=""></div><span style="color:rgb(136,136,136)" class="">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Fax: (972)-25662581</span></div></div><div class=""><span style="color:rgb(136,136,136)" class=""><br class=""></span></div><div class="">C.E.O, Weather It Is, LTD<br class="">Weather and Climate Focus<br class=""><a href="http://weather-it-is.com/" target="_blank" class="">http://weather-it-is.com</a><br class="">Jerusalem, Israel<br class="">Local: 02 930 9525<br class="">Cell: 054 7 231 170<br class="">Int-IS: x972 2 930 9525<br class="">US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank" class="">914 432 3108</a><br class=""></div></div></div>
</div></div>
<br class=""></div></div>______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><span class="HOEnZb"><font color="#888888" class=""><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="m_-3771703249917078470gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><span class=""><font color="#888888" class="">Adam Phillips <br class=""></font></span></div><span class=""><font color="#888888" class="">Associate Scientist,  </font></span><span class=""><font color="#888888" class="">Climate and Global Dynamics Laboratory, NCAR<br class=""></font></span></div></div><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank" class="">www.cgd.ucar.edu/staff/<wbr class="">asphilli/</a>   </font></span><span class=""><font color="#888888" class=""><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank" class="">303-497-1726</a> </font></span></div><span class=""><font color="#888888" class=""></font></span><div class=""><div class=""><span class=""><font color="#888888" class=""><br class=""></font></span><div class=""><span class=""><font color="#888888" class=""><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank" class=""></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class="">Barry H. Lynn, Ph.D<div class=""><div class="">Senior Lecturer,</div><div class=""><div class=""><span style="color:rgb(136,136,136)" class="">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)" class=""></div><span style="color:rgb(136,136,136)" class="">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)" class=""><span style="color:rgb(136,136,136)" class="">Fax: (972)-25662581</span></div></div><div class=""><span style="color:rgb(136,136,136)" class=""><br class=""></span></div><div class="">C.E.O, Weather It Is, LTD<br class="">Weather and Climate Focus<br class=""><a href="http://weather-it-is.com/" target="_blank" class="">http://weather-it-is.com</a><br class="">Jerusalem, Israel<br class="">Local: 02 930 9525<br class="">Cell: 054 7 231 170<br class="">Int-IS: x972 2 930 9525<br class="">US 914 432 3108<br class=""></div></div></div>
</div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Guido Cioni</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista" class="">http://guidocioni.altervista</a>.org</div>

</div>
<br class=""></div></body></html>