<div dir="ltr"><div class="gmail_default" style="font-size:small">In general, you no longer need to load scripts at the top of your NCL file with:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font color="#000000" face="monospace, monospace"><span style="font-size:10.4000005722046px">load "$NCARG_ROOT/lib/ncarg/</span><span style="font-size:10.4000005722046px">nclscripts/csm/gsn_code.ncl"<br></span></font><span style="color:rgb(0,0,0);font-family:monospace,monospace"></span><span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:10.4000005722046px">load "$NCARG_ROOT/lib/ncarg/</span><span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:10.4000005722046px">nclscripts/csm/gsn_csm.ncl"</span><font color="#000000" face="monospace, monospace"><span style="font-size:10.4000005722046px"><br></span></font></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(0,0,0);font-size:10.4000005722046px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">However, if you do something like this:</font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><div class="gmail_default"><span style="color:rgb(0,0,0);font-family:monospace,monospace"></span><span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:10.4000005722046px">load "$NCARG_ROOT/lib/ncarg/</span><span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:10.4000005722046px">nclscripts/csm/gsn_csm.ncl"</span><font color="#000000" face="monospace, monospace"><span style="font-size:10.4000005722046px"><br></span></font></div><div><span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:10.4000005722046px"><br></span></div></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">then you will get an error about an undefined function or procedure, because you are now explicitly loading a script that depends on another script for some of its functions.</font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">Make sure the load commands at the top of your script are correct, and also make sure that if you have two versions of NCL installed on your system, that you have NCARG_ROOT pointing to the correct one.</font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">The script that Karin provided earlier should help you test this issue.</font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">--Mary</font></div><div class="gmail_default"><font color="#000000" face="monospace, monospace"><span style="font-size:10.4000005722046px"><br></span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 11:29 PM, gibies george <span dir="ltr"><<a href="mailto:gibies@tropmet.res.in" target="_blank">gibies@tropmet.res.in</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">Dear NCL users,<div><br></div><div>Is there any fix for the following warning message on NCL 6.3.0.</div><div><br></div><div><div>fatal:syntax error: line 631 in file /gpfs1/home/Libs/GNU/NCL/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/utilities.ncl before or near ; Draw box.</div><div> </div><div> gsn_polygon_ndc(wks,xbox+xpos(i),ybox+ypos(i),gnres) ; Draw box.</div><div>^</div><div><br></div><div>fatal:syntax error: possibly an undefined procedure</div><div>fatal:syntax error: line 634 in file /gpfs1/home/Libs/GNU/NCL/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/utilities.ncl before or near \n </div><div> gsn_polyline_ndc(wks,xbox+xpos(i),ybox+ypos(i),lnres)</div><div>----------------------------------------------------------^</div><div><br></div><div>fatal:syntax error: possibly an undefined procedure</div><div>fatal:syntax error: line 638 in file /gpfs1/home/Libs/GNU/NCL/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/utilities.ncl before or near \n </div><div> gsn_text_ndc(wks,label_strings(i),font_space+xpos(i),ypos(i)+font_space,txres)</div><div>-------------------------------------------------------------------------------------^</div><div><br></div><div>fatal:syntax error: possibly an undefined procedure</div><div>fatal:Syntax Error in block, block not executed</div><div>fatal:error at line 645 in file /gpfs1/home/Libs/GNU/NCL/ncl_ncarg-6.3.0/lib/ncarg/nclscripts/utilities.ncl</div><div><br></div><div><div><div dir="ltr"><div><b><font size="1"><br></font></b></div><div><b><font size="1">Gibies George,<br></font></b><b><font size="1">Senior Research Fellow (</font></b><b><font size="1">CSIR)</font></b><b><font size="1">,</font></b><b><font size="1"><br></font></b><b><font size="1"></font></b></div><div><b><font size="1">Climate and Global Modelling Division,<br>Indian Institute of Tropical Meteorology,<br>Dr. Homi Bhabha Road, NCL (P. O.), Pashan,<br>Pune 411008, India.<br>Office Teleph : <a href="tel:%2B912025904423" value="+912025904423" target="_blank">+912025904423</a><br>Office mail : <a href="mailto:gibies@tropmet.res.in" target="_blank">gibies@tropmet.res.in</a><br><br>________________<br><br>Vettikuzhiyil House<br>Ezhakkaranadu South<br>Puthencruz-682308, Kochi, India.<br>Mobile number : <a href="tel:%2B919028523910" value="+919028523910" target="_blank">+919028523910</a>, <a href="tel:%2B919420407392" value="+919420407392" target="_blank">+919420407392</a>, <a href="tel:%2B919881707796" value="+919881707796" target="_blank">+919881707796</a><br>Personal mail : <a href="mailto:gibiesgeorge@gmail.com" target="_blank">gibiesgeorge@gmail.com</a><br><a href="http://sites.google.com/site/gibiesge/" target="_blank">http://sites.google.com/site/gibiesge/</a></font></b><div style="margin-left:80px"><div><b><font size="1"><br></font></b></div></div><font color="#274e13"><b><span style="font-family:Arial;font-size:16px">_______________________________________________________</span><br>"Please do not print this e-mail unless you really need. Because every 3000 pages cost a tree. </b></font><div><b><font color="#274e13">Save Trees, Save mother Earth."</font> </b><div style="margin-left:80px"><span style="font-size:small"><font color="#38761d"><b></b></font></span></div><div style="margin-left:80px"><span style="font-size:small"><font color="#38761d"><b></b></font></span></div><font size="1"><br></font></div></div></div></div></div>
</div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>