<div dir="ltr">Hi:<div><br></div><div>Thank you, but not the attributes, but the resources.</div><div><br></div><div>I have "subroutines" that define resources for a variable.</div><div><br></div><div>However, before using one of them (the appropriate one), I want to set the variable equal to other resources first.</div><div><br></div><div>For instance:</div><div><br></div><div>zdr_res = opts_xy</div><div><br></div><div>Then add to opts_xy the resources in res1, for instance.</div><div><br></div><div>







<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><div class="gmail_quote">On Tue, Nov 7, 2017 at 6:48 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.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 Barry,<div>If all you want to do is to copy attributes from one array to another, I think copy_VarAtts would work:</div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/copy_VarAtts.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Functions/<wbr>Contributed/copy_VarAtts.shtml</a></div><div>Adam</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Nov 7, 2017 at 4:56 AM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello:<div><br></div><div>I can't seem to find how to do this.</div><div><br></div><div>I have this ncl line:</div><div><br></div><div>







<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></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1">Barry</p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1"><br></span></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1"><br></span></p><p class="m_-3771703249917078470m_-8543467763429719921gmail-p1"><span class="m_-3771703249917078470m_-8543467763429719921gmail-s1"><br></span></p><div><br></div>-- <br><div class="m_-3771703249917078470m_-8543467763429719921gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-3771703249917078470gmail_signature" data-smartmail="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/<wbr>asphilli/</a>   </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </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>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div>