<div dir="ltr"><div class="gmail_default"><font face="arial, helvetica, sans-serif">Soares,</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">The error is telling you that you have a undefined function or procedure. If you have an older version of NCL, then you may need to include some "load" command at the top of your script:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><pre><font face="arial, helvetica, sans-serif"> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</font></pre><pre><font face="arial, helvetica, sans-serif"><br></font></pre><pre><font face="arial, helvetica, sans-serif">--Mary</font></pre><pre><br></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 28, 2016 at 3:59 AM, isakhar sakhar isakhar <span dir="ltr"><<a href="mailto:isakhar.inside13@gmail.com" target="_blank">isakhar.inside13@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 dir="ltr"><div><div>Dear Mr.Rick<br><br></div>I still face the error as shown below;<br><br>fatal:syntax error: line 122 in file shapefiles_5.ncl before or near \n <br> gsn_define_colormap(wks, cmap) <br>---------------------------------^<span class=""><br><br>fatal:syntax error: possibly an undefined procedure<br></span><span class="">fatal:syntax error: line 329 in file shapefiles_5.ncl before or near \n <br> gsn_table(wks, (/ 1, 1 /), (/ ulX-.005, ulX+.255 /), (/ ulY-.21, ulY /), (/ " " /), tblRes)<br>---------------------------------------------------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 337 in file shapefiles_5.ncl before or near \n <br> gsn_table(wks, hdr, hdrX, hdrY, hdrText, tblRes)<br>--------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 346 in file shapefiles_5.ncl before or near \n <br> gsn_table(wks, subHdr, hdrX, hdrY, subHdrText, tblRes)<br>--------------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 380 in file shapefiles_5.ncl before or near \n <br> gsn_table(wks, tblBdy, tblX, tblY, tblText, tblRes)<br>-----------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:Syntax Error in block, block not executed<br>fatal:error at line 383 in file shapefiles_5.ncl<br><br><br></span></div>Soares<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 28, 2016 at 12:56 AM, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@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,<br><br></div>It looks there's a syntax error at line 258 that likely cascades to the other errors. Lines 257-258 read:<br><br><span style="font-family:monospace,monospace"> majorCities = (/ (/ "Dili", "Dili" /), \<br> (/ "Hera ","Hera"/)<span style="color:rgb(255,0,0)">, \</span> /)<br><br> ^^^^^^^^<br></span></div><span style="font-family:monospace,monospace">That should be:<br><br> majorCities = (/ (/ "Dili", "Dili" /), \<br> (/ "Hera ","Hera"/) /)<br></span><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, May 27, 2016 at 3:35 AM, isakhar sakhar isakhar <span dir="ltr"><<a href="mailto:isakhar.inside13@gmail.com" target="_blank">isakhar.inside13@gmail.com</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><div dir="ltr"><div>Dear NCL team<br><br></div>I download the shapefiles for administrative boundaries from GIVA-DIS website (<a href="http://www.diva-gis.org/gdata" target="_blank">http://www.diva-gis.org/gdata</a>) to run my wrfout. Here I got error as shown below;<br><div><div><br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 258 in file shapefiles_5.ncl before or near \n <br><br>^<br><br>fatal:syntax error: line 329 in file shapefiles_5.ncl before or near \n <br> gsn_table(wks, (/ 1, 1 /), (/ ulX-.005, ulX+.255 /), (/ ulY-.21, ulY /), (/ " " /), tblRes)<br>---------------------------------------------------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 337 in file shapefiles_5.ncl before or near \n <br> gsn_table(wks, hdr, hdrX, hdrY, hdrText, tblRes)<br>--------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 346 in file shapefiles_5.ncl before or near \n <br> gsn_table(wks, subHdr, hdrX, hdrY, subHdrText, tblRes)<br>--------------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:syntax error: line 380 in file shapefiles_5.ncl before or near \n <br> gsn_table(wks, tblBdy, tblX, tblY, tblText, tblRes)<br>-----------------------------------------------------^<br><br>fatal:syntax error: possibly an undefined procedure<br>fatal:Syntax Error in block, block not executed<br>fatal:error at line 383 in file shapefiles_5.ncl<br><br><br></div><div>Here I attach my ncl script and ncdump file.<br></div><div>Many thanks for your help.<br><br></div><div>Regards,<br></div><div>Soares<br></div></div></div>
<br></div></div>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>