<div dir="ltr"><div class="gmail_default" style="font-size:small">Rebecca,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To address the &quot;mreg_part_corr&quot; issue: we have taken extra steps to make sure this doesn&#39;t happen in the future that we forget an &quot;undef&quot; before a newly defined function.  So, yes, 6.4.0 will fix this problem.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Perhaps your 6.2.1 </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">We do plan to release NCL 6.4.0 this month. I&#39;m in the process of building and testing binaries.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In fact, if you would like to receive NCL V6.4.0 and be one of our guinea pigs, I would be happy to tar it up for you. It would be invaluable to us if you could test this against ESMValTool. I just need to know what kind of system you have. Or, if you can tell me which 6.2.1 binary you downloaded.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As for the 6.2.1 issue at hand, I am stumped. But, could you try the attached script and see if it also gives you problems?  I&#39;ve attached the small data file.  This script is just going to produce a bunch of output, but it does require the contributed.ncl library, and I want to see if it still has trouble being loaded.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 16, 2017 at 2:59 AM, Thomas, Rebecca T <span dir="ltr">&lt;<a href="mailto:r.thomas14@imperial.ac.uk" target="_blank">r.thomas14@imperial.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="m_913905370881571149WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;">Hi Mary,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;">Yes, I also thought that might be the issue too but I checked and its definitely there (I also checked permissions and they are all fine):<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">ls $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">ccm_func.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">contributed.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">diagnostics_cam.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">gsn_code.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">gsn_csm.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">popRemap.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">shea_util.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">skewt_func.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Andale Mono&quot;">wind_rose.ncl<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;">I’ve been told the reason I can use ncl v 6.3 is because:</span><span style="font-family:&quot;Avenir Next&quot;"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:18.0pt">
<u></u><span style="font-family:&quot;Avenir Next&quot;"><span><span style="font:7.0pt &quot;Times New Roman&quot;">                       
</span></span></span><u></u><span style="font-family:&quot;Avenir Next&quot;"> </span><span style="font-family:&quot;Avenir Next&quot;">A missing &quot;undef&quot; before the declaration of the function &quot;mreg_part_corr&quot; in the NCL library “$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/shea_util.ncl”
 causes the ESMValTool to crash when this library is loaded more than once within the same execution. This unfortunately happens quite often within the tool, since libraries can be loaded multiple times within the various scripts.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;">If this is something that has been fixed in version 6.4, then I’m happy to wait until that’s released (apparently sometime this month), and hopefully the issue I’m having will fix itself?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;">Rebecca<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:&quot;Avenir Next&quot;"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;<br>
<b>Date: </b>Wednesday, 15 February 2017 20:23<br>
<b>To: </b>&quot;Thomas, Rebecca T&quot; &lt;<a href="mailto:r.thomas14@imperial.ac.uk" target="_blank">r.thomas14@imperial.ac.uk</a>&gt;<br>
<b>Cc: </b>&quot;HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED&quot; &lt;<a href="mailto:kevin.havener@us.af.mil" target="_blank">kevin.havener@us.af.mil</a>&gt;, &quot;<a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a>&gt;<br>
<b>Subject: </b>Re: [ncl-install] Error message: fatal:Could not open ($NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/contributed.<wbr>ncl)<u></u><u></u></span></p>
</div><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Hi Rebecca,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This may seem like a &quot;is it plugged in&quot; kind of question, but is there actually a contributed.ncl file in that directory?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:&quot;Andale Mono&quot;">ls $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/contributed.ncl</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Arial">NCL Version 6.2.1 should definitely have that file, but you didn&#39;t say how you installed NCL, and it&#39;s possible that your &quot;ncarg&quot; directory got installed somewhere other than in $NCARG_ROOT/lib.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Arial">--Mary</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Feb 15, 2017 at 6:50 AM, Thomas, Rebecca &lt;<a href="mailto:r.thomas14@imperial.ac.uk" target="_blank">r.thomas14@imperial.ac.uk</a>&gt; wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Hi Kevin,<br>
<br>
Thanks for the suggestion, but unfortunately it didn’t fix the problem.<span style="font-family:PMingLiU"><br>
</span><span style="color:#888888"><br>
<span class="m_913905370881571149hoenzb">Rebecca</span></span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
On 15/02/2017 13:16, &quot;HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED&quot; &lt;<a href="mailto:kevin.havener@us.af.mil" target="_blank">kevin.havener@us.af.mil</a>&gt; wrote:<br>
<br>
    I would export you NCARG environment in .bashrc not .bash_profile.   In my experience, I&#39;ve been bitten too many times by the the fact that the .bash_profile belongs to login shells, and .bashrc is more general applying to subshells and such.  So in my
 .bash_profile II just tend to source my .bshrc and keep my configuration there.<br>
<br>
    Kevin Havener<br>
<br>
    -----Original Message-----<br>
    From: <a href="mailto:ncl-install-bounces@ucar.edu" target="_blank">ncl-install-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-install-bounces@ucar.edu" target="_blank">ncl-install-bounces@<wbr>ucar.edu</a>] On Behalf Of Thomas, Rebecca<br>
    Sent: Wednesday, February 15, 2017 5:30 AM<br>
    To: <a href="mailto:ncl-install@ucar.edu" target="_blank">ncl-install@ucar.edu</a><br>
    Subject: [ncl-install] Error message: fatal:Could not open ($NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/contributed.<wbr>ncl)<br>
<br>
    Hi,<br>
<br>
<br>
<br>
    I’ve just installed ncl 6.2.1 and am getting the following error message when I try to run a scrip:<br>
<br>
<br>
<br>
    fatal:Could not open ($NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/contributed.<wbr>ncl)<br>
<br>
<br>
<br>
    I have looked through posts from other people who have had similar error messages, but I’m sure my NCARG_ROOT environment is correctly set:<br>
<br>
<br>
<br>
    In my .bash_profile I have:<br>
<br>
<br>
<br>
    export NCARG_ROOT=/usr/local/ncl-6.2.<wbr>1<br>
<br>
    export PATH=$NCARG_ROOT/bin:$PATH<br>
<br>
<br>
<br>
    And I have run the following checks:<br>
<br>
<br>
<br>
    env | grep NCARG<br>
<br>
    NCARG_ROOT=/usr/local/ncl-6.2.<wbr>1<br>
<br>
<br>
<br>
    which ncl<br>
<br>
    /usr/local/ncl-6.2.1/bin/ncl<br>
<br>
<br>
<br>
    ncl -V<br>
<br>
    6.2.1<br>
<br>
<br>
<br>
    Thanks,<br>
<br>
<br>
<br>
    Rebecca<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-install</a><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>