<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Dan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It's not a new thing. It's just a bug we had to fix.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In V6.4.0 I updated a function that traverses all the NCL colormaps, to also include any colormaps pointed to by NCARG_COLORMAPS. This function was incorrectly assuming that every file in NCARG_COLORMAPS would have the form "xxxxx.yyy". The function was corrected to no longer make this assumption, so hopefully you don't need to point to a "clean" directory.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The script that I attached to the previous email should fix this issue for you, so you don't have to wait for 6.5.0.</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 Fri, Nov 17, 2017 at 1:06 PM, Daniel Adriaansen - NCAR <span dir="ltr"><<a href="mailto:dadriaan@ucar.edu" target="_blank">dadriaan@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"><div><div><div>Hi Mary,<br><br></div>You are correct about the NCARG_COLORMAPS environment variable. When I unset that variable I was able to run the example code.<br><br></div>Is this something new in NCL 6.4.0 where the NCARG_COLORMAPS variable should point to a "clean" directory with only color map files? In previous versions we've been using this variable set to a directory with much more than just color map files inside.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">-Dan<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 7, 2017 at 7:16 AM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@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"><div class="gmail_default" style="font-size:small">Hi Dan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think this error is coming from having the environment variable NCARG_COLORMAPS set to a directory that contains files without a "." in them.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Could you check if you have this environment variable set? From the UNIX command line:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">printenv NCARG_COLORMAPS</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you do have it set, then as a quick test, you can try unsetting it and rerunning your script. You can also try temporarily moving any files that don't have a "." in them.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you do have NCARG_COLORMAPS set, we recommend pointing this to a "clean" directory that contains color map files only. If you have a bunch of other non colormap files in the directory, NCL is going to try to read every file because it doesn't know what is or isn't a potential color map.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As a second test, you can try loading the attached script at the top of your NCL script, *after* any other "load" commands you have:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">load "./get_colormap_names_fix.ncl"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If neither of these fix the problem, please respond back to ncl-talk and let us know. Also let us know if you had NCARG_COLORMAPS set.</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"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_1772966114548900166h5">On Mon, Nov 6, 2017 at 3:03 PM, Daniel Adriaansen - NCAR <span dir="ltr"><<a href="mailto:dadriaan@ucar.edu" target="_blank">dadriaan@ucar.edu</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="m_1772966114548900166h5"><div dir="ltr"><div><div><div>Hello,<br><br></div>I am attempting to run example 6 from the histogram example page (histo_6.ncl) but I am receiving errors:<br><br> Copyright (C) 1995-2017 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.4.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>fatal:Subscript out of range, error in subscript #0<br>fatal:An error occurred reading tmp_names<br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1251 in file /usr/local/ncl_ncarg-6.4.0/lib<wbr>/ncarg/nclscripts/<a href="http://utilities.nc">utilities.nc</a><wbr>l<br><br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1275 in file /usr/local/ncl_ncarg-6.4.0/lib<wbr>/ncarg/nclscripts/<a href="http://utilities.nc">utilities.nc</a><wbr>l<br><br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1314 in file /usr/local/ncl_ncarg-6.4.0/lib<wbr>/ncarg/nclscripts/<a href="http://utilities.nc">utilities.nc</a><wbr>l<br><br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1721 in file /usr/local/ncl_ncarg-6.4.0/lib<wbr>/ncarg/nclscripts/<a href="http://utilities.nc">utilities.nc</a><wbr>l<br><br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 8240 in file /usr/local/ncl_ncarg-6.4.0/lib<wbr>/ncarg/nclscripts/csm/gsn_code<wbr>.ncl<br><br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 9282 in file /usr/local/ncl_ncarg-6.4.0/lib<wbr>/ncarg/nclscripts/csm/gsn_code<wbr>.ncl<br><br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 50 in file ncltest.ncl<br><br></div>Line 50 in the example is the second call to gsn_histogram. Everything else references the nclscripts libraries. Could anyone offer any suggestions? Thanks!<span class="m_1772966114548900166m_-318930462182877996HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_1772966114548900166m_-318930462182877996HOEnZb"><font color="#888888">-Dan<br></font></span></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><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>