<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/nclscripts/functions/ut_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_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/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/">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/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="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div><div><font face="courier new, monospace">===============================<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/jaredlee</a><br>===============================</font><br></div></div></div></div></div></div></div></div></div>