<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Jared,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I was able to reproduce your problem with 6.4.0 and 6.5.0 on cheyenne unfortunately. Thanks for providing a nice test program.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The work-around for now seems to be setting this environment variable:</div><div class="gmail_default" style="font-size:small"><br></div>setenv UDUNITS2_XML_PATH $NCARG_ROOT/lib/ncarg/udunits/udunits2.xml<div><br></div><div><div class="gmail_default" style="font-size:small">or </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">export <span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">UDUNITS2_XML_PATH=$NCARG_ROOT/lib/ncarg/udunits/udunits2.xml</span></div><br></div><div><div class="gmail_default" style="font-size:small">Can you try this and let me know if it works in your own environment on cheyenne, and I'll file an official ticket on this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</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"></div><br><div class="gmail_default" style="font-size:small"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 13, 2018 at 3:31 PM, Jared Lee <span dir="ltr"><<a href="mailto:jaredlee@ucar.edu" target="_blank">jaredlee@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, I have a follow-up on my original ticket from 10 Aug. I just discovered that I get the udunits-2 error mentioned in the previous email if I call ut_string_fix on its own. However, if I call ut_string and THEN call ut_string_fix, then I get no error and my script runs normally. So it appears that there's a bug in ut_string_fix in how it's calling the udunits-2 library. Sorry to keep finding bugs in this script.<div><br></div><div>Again, this is a problem with NCL v6.4.0, loading a special pre-release version of ut_string_fix for v6.5.0 (after I found an earlier bug with the v6.4.0 ut_string_fix function). I do not know if this was fixed for NCL v6.5.0 because I'm waiting for gnu compilers to be installed on my own workstation first, and NCL v6.5.0 is not yet installed on cheyenne, either.<span class="HOEnZb"><font color="#888888"><br><div><br></div><div>Jared</div></font></span></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 10, 2018 at 5:15 PM Jared Lee <<a href="mailto:jaredlee@ucar.edu" target="_blank">jaredlee@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi ncl-talk,<div><br></div><div>I'm encountering an error I've never seen before, and which doesn't show up at all in ncl-talk archives. I'm running NCL v6.4.0 on Cheyenne, and I'm calling a special bug-fix to the ut_string_fix function (it's what is now default in v6.5.0, I believe). When I call the ut_string_fix function with at least some specific values (I haven't done exhaustive testing, but I've done a few tests that yield the same issue), I get the error:</div><div><br></div><div>"Error initializing udunits-2 unit system"</div><div><br></div><div>Here's a simple script that demonstrates the issue:</div><div>==========</div><div><div><div><font face="monospace, monospace">load "/glade/u/home/jaredlee/tools/<wbr>nclscripts/functions/ut_<wbr>string_fix.ncl"</font></div><div><font face="monospace, monospace">begin<br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">obs_time = (/113976.d, 114720.d, 115392.d/)</font></div><div><font face="monospace, monospace">obs_time@units = "hours since 2000-01-01 00:00:00"</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">mo_nums1 = ut_string_fix(obs_time, "%N")</font></div><div><font face="monospace, monospace">print(mo_nums1)</font></div><div><font face="monospace, monospace">mo_nums2 = stringtoint(ut_string_fix(obs_<wbr>time, "%N"))</font></div><div><font face="monospace, monospace">print(mo_nums2)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">end</font></div></div><div>==========</div><div><br></div><div>And here is the output I get when executing this script:</div><div><br></div><div>==========</div><div><font face="monospace, monospace">jaredlee@cheyenne6:~/tools/<wbr>nclscripts> ncl bug_udunits2.ncl </font></div><div><font face="monospace, monospace"> Copyright (C) 1995-2017 - All Rights Reserved</font></div><div><font face="monospace, monospace"> University Corporation for Atmospheric Research</font></div><div><font face="monospace, monospace"> NCAR Command Language Version 6.4.0</font></div><div><font face="monospace, monospace"> The use of this software is governed by a License Agreement.</font></div><div><font face="monospace, monospace"> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details</font></div><div><font face="monospace, monospace">Error initializing udunits-2 unit system</font></div><div><font face="monospace, monospace">jaredlee@cheyenne6:~/tools/<wbr>nclscripts></font></div><div>==========<br></div><div><br></div><div>Does anyone have any ideas how to fix this? Is this something that cislhelp needs to be involved in to fix on cheyenne?</div><div><br></div><div>Jared</div><div><br></div><div>-- <br></div><div dir="ltr" class="m_-4339186051327282343m_2862827299869434051gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div><div><font face="courier new, monospace">==============================<wbr>=<br>Jared A. Lee, Ph.D.<br></font></div><font face="courier new, monospace">Project Scientist II<br></font></div><font face="courier new, monospace">Research Applications Laboratory<br></font></div><font face="courier new, monospace">National Center for Atmospheric Research<br>Boulder, Colorado, USA</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">Member, AMS Planning Commission<br><br></font></div><font face="courier new, monospace">Email: <a href="mailto:jaredlee@ucar.edu" target="_blank">jaredlee@ucar.edu</a> (w)<br></font></div><font face="courier new, monospace">Phone: 303.497.8485 (w)</font><div><font face="courier new, monospace">Web: <a href="https://staff.ucar.edu/users/jaredlee" target="_blank">https://staff.ucar.edu/users/<wbr>jaredlee</a><br>==============================<wbr>=</font><br></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-4339186051327282343gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div><div><font face="courier new, monospace">==============================<wbr>=<br>Jared A. Lee, Ph.D.<br></font></div><font face="courier new, monospace">Project Scientist II<br></font></div><font face="courier new, monospace">Research Applications Laboratory<br></font></div><font face="courier new, monospace">National Center for Atmospheric Research<br>Boulder, Colorado, USA</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">Member, AMS Planning Commission<br><br></font></div><font face="courier new, monospace">Email: <a href="mailto:jaredlee@ucar.edu" target="_blank">jaredlee@ucar.edu</a> (w)<br></font></div><font face="courier new, monospace">Phone: 303.497.8485 (w)</font><div><font face="courier new, monospace">Web: <a href="https://staff.ucar.edu/users/jaredlee" target="_blank">https://staff.ucar.edu/users/<wbr>jaredlee</a><br>==============================<wbr>=</font><br></div></div></div></div></div></div></div>
</div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>