<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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]:<wbr>Execute: Error occurred at or near line 1251 in file /usr/local/ncl_ncarg-6.4.0/<wbr>lib/ncarg/nclscripts/<wbr>utilities.ncl<br><br>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 1275 in file /usr/local/ncl_ncarg-6.4.0/<wbr>lib/ncarg/nclscripts/<wbr>utilities.ncl<br><br>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 1314 in file /usr/local/ncl_ncarg-6.4.0/<wbr>lib/ncarg/nclscripts/<wbr>utilities.ncl<br><br>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 1721 in file /usr/local/ncl_ncarg-6.4.0/<wbr>lib/ncarg/nclscripts/<wbr>utilities.ncl<br><br>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 8240 in file /usr/local/ncl_ncarg-6.4.0/<wbr>lib/ncarg/nclscripts/csm/gsn_<wbr>code.ncl<br><br>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 9282 in file /usr/local/ncl_ncarg-6.4.0/<wbr>lib/ncarg/nclscripts/csm/gsn_<wbr>code.ncl<br><br>fatal:["Execute.c":8640]:<wbr>Execute: 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="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">-Dan<br></font></span></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>