<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Guido,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">What's likely happening is that the /home/mpim/m300382 directory has some files in it that are not valid NCL color maps, and the "utilities.ncl" script was not expecting this. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">One work-around is to create a clean directory that only contains valid NCL color maps, and put your sat_ir.rgb and any other color map files in this directory, but no other files.  Then, you can update your NCARG_COLORMAPS environment variable to point to this new directory.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The second work-around is to take the attached "utilities_fix.ncl" script, and load it at the top of your script, after other "load" commands:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">load "./utilities_fix.ncl"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This script fixes an internal function that retrieves color map names, so that it ignores anything that is not named xxxxx.yyy. This function is used in several places where color is involved.  Some of our resources, like "cnFillPalette" allow different ways to specify color (via a list of named colors, a single color map name, a list of color indexes, RGB/A array, etc), and these internal functions test the validity of whatever you are giving it.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In your case, I believe it is this line:</div><div class="gmail_default" style="font-size:small">







<p class="gmail-p1">







</p><p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space"> </span>res@</span><span class="gmail-s2">gsnXYBelow</span><span class="gmail-s3">FillColor</span><span class="gmail-s2">s</span><span class="gmail-s1"> = </span><span class="gmail-s4">"red"</span></p><p class="gmail-p1"><span class="gmail-s4">that caused the internal function to be called, because I think this particular resource allows you to input a color map name (don't quote me on this).</span></p><p class="gmail-p1"><span class="gmail-s4">--Mary</span></p><p class="gmail-p1"><span class="gmail-s4"><br></span></p></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 20, 2017 at 11:09 AM, Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">As a matter of fact I do! That was needed to include one of the colormaps that I created (sat_ir.rgb) <div><br></div><div><font face="Menlo">export NCARG_COLORMAPS=/home/mpim/<wbr>m300382:$NCARG_ROOT/lib/ncarg/<wbr>colormaps</font></div><div><br></div><div>When commenting out and re-logging in I don't have that problem anymore! So that was the reason.</div><div><br></div><div>Why is it parsing the color table names when using a XY plot? I actually did a lot of contour plot with color tables without problems, that's the only one that gave me the error :) </div><div><div><br></div><div><div><div class="h5"><br><div><blockquote type="cite"><div>On 20. Oct 2017, at 17:55, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:</div><br class="m_7067500061868051113Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_default" style="font-size:small">Guido and Rick,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I took a quick look at this because I was afraid it was some code I was responsible for (it is).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It looks like the error is coming from trying to parse color map names (although without digging further, I'm not sure why it's doing this).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">By any chance, do you have the NCARG_COLORMAPS environment variable set?  If so, you might try unsetting it just to see if the script runs.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It runs fine for me with NCL V6.3.0, V6.4.0, and our current development version.</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, can you let me know what it's set to, so I can see if there's something we need to fix with regard to 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"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 20, 2017 at 6:56 AM, Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Thanks Rick,<div>I tried on both on the cluster and on my local machine (osx) and had the same error. I have to say they are both 6.4<b>.0.</b></div><div><b>Cheers</b></div><div><div><div class="m_7067500061868051113h5"><b><br></b><div><blockquote type="cite"><div>On 20. Oct 2017, at 14:44, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:</div><br class="m_7067500061868051113m_4583981050867722327Apple-interchange-newline"><div><div dir="ltr">Hi,<div><br></div><div>The test script runs just fine, without warning/error, with my development version of NCL.  I'll give it a try with the 6.4.0 snapshot when I get into the office.</div><div><br></div><div>FWIW...</div><div>Rick</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 20, 2017 at 4:55 AM, Marston Johnston <span dir="ltr"><<a href="mailto:shejo284@gmail.com" target="_blank">shejo284@gmail.com</a>></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-GB" link="blue" vlink="purple"><div class="m_7067500061868051113m_4583981050867722327m_9084880478782730611WordSection1"><p class="MsoNormal"><span>There is still a lot of debugging you can do yourself to help with this situation. It is a very step to assume at this point that there is a bug in NCL.<u></u><u></u></span></p><p class="MsoNormal"><span>The error code tells you where the problem lies, and you can examine the data for both NCL versions to see what has changed, or at least to see what the data looks like.<u></u><u></u></span></p><p class="MsoNormal"><span>This is the golden rule: know your data.  <u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Marston S. Ward, PhD<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Department of Earth Sciences<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">University of Gothenburg, Sweden<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Email: <a href="mailto:marston.johnston@gu.se" target="_blank"><span style="color:#0070c0">marston.johnston@gu.se</span></a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">SkypeID: marston.johnston <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Phone: <a href="tel:+46%2031%20786%2049%2001" value="+46317864901" target="_blank">+46-31-7864901</a> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">Only the fruitful thing is true!<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p></div><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span><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-size:12pt">From: </span></b><span style="font-size:12pt">ncl-talk <<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>> on behalf of Guido Cioni <<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>><br><b>Date: </b>Friday, 20 October 2017 at 12:47<br><b>To: </b>ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br><b>Subject: </b>[ncl-talk] Possible bug in NCL 6.4.0<u></u><u></u></span></p></div><div><div class="m_7067500061868051113m_4583981050867722327h5"><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">Hi,<u></u><u></u></p><div><p class="MsoNormal">I'm not sure what is happening here. Running the same script on 6.3.0 works just fine while on 6.4.0 it produces an error inside the NCL code, which I'm not able to debug (as I don't know the original code that much). Maybe Mary or Dennis can take a look.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Menlo",sans-serif">fatal:Subscript out of range, error in subscript #0</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Menlo",sans-serif">fatal:An error occurred reading tmp_names</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Menlo",sans-serif">fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1251 in file /sw/rhel6-x64/ncl-6.4.0-gccsys<wbr>/lib/ncarg/nclscripts/utilitie<wbr>s.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:7.5pt;font-family:"Menlo",sans-serif">fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1275 in file /sw/rhel6-x64/ncl-6.4.0-gccsys<wbr>/lib/ncarg/nclscripts/utilitie<wbr>s.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:7.5pt;font-family:"Menlo",sans-serif">fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1314 in file /sw/rhel6-x64/ncl-6.4.0-gccsys<wbr>/lib/ncarg/nclscripts/utilitie<wbr>s.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:7.5pt;font-family:"Menlo",sans-serif">fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1721 in file /sw/rhel6-x64/ncl-6.4.0-gccsys<wbr>/lib/ncarg/nclscripts/utilitie<wbr>s.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:7.5pt;font-family:"Menlo",sans-serif">fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 5457 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/csm/gsn_csm.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:7.5pt;font-family:"Menlo",sans-serif">fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 6079 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/csm/gsn_csm.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:7.5pt;font-family:"Menlo",sans-serif">fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 158 in file statistics.ncl</span><u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Since I can switch easily from 6.4. to 6.3. on the cluster that's not a big issue for now but I just thought to bring it to the attention. I'm attaching a test code and files. <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Cheers <u></u><u></u></p></div></div></div><div><div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif"><br>Guido Cioni<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:Helvetica,sans-serif"><a href="http://guidocioni.altervista/" target="_blank">http://guidocioni.altervista</a>.o<wbr>rg<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">______________________________<wbr>_________________ ncl-talk mailing list <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> List instructions, subscriber options, unsubscribe: <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a> <u></u><u></u></p></div></div>
<br>______________________________<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>
</div></blockquote></div><br></div></div><span class="m_7067500061868051113HOEnZb"><font color="#888888"><div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class="m_7067500061868051113m_4583981050867722327Apple-interchange-newline">Guido Cioni</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://guidocioni.altervista/" target="_blank">http://guidocioni.altervista</a>.o<wbr>rg</div>

</div>
<br></font></span></div></div><br>______________________________<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>
</div></blockquote></div><br></div></div><span class="HOEnZb"><font color="#888888"><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class="m_7067500061868051113Apple-interchange-newline">Guido Cioni</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://guidocioni.altervista" target="_blank">http://guidocioni.altervista</a>.<wbr>org</div>

</div>
<br></font></span></div></div></div></blockquote></div><br></div>