<div dir="ltr"><div class="gmail_default" style="font-size:small">The error messages are giving you useful information about what the problem is.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The first error message:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">warning:ContourPlotSetValues: Data values out of range of levels set by EXPLICITLEVELS mode</span><br style="font-size:12.8px"></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">is telling you that the contour levels you chose are not in the same range of your data. You chose these levels:</span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default">
<p class=""> res@cnLevels = (/ 5.4, 6.2, 6.9, 7.4, 7.8, 8.6 /)</p><p class="">So you should look at your data (VERY IMPORTANT) to see what the range is and make sure that your data intersects with this range of values. "printMinMax" is useful for this:</p><p class="">printMinMax(maskedS(nt,:,:),0)</p><p class="">The second error message:</p><p class=""><span style="font-size:12.8px">fatal:["Execute.c":5900]:</span><span style="font-size:12.8px">variable (NAME_3) is not in file (citiesShapes)</span></p><p class="">is telling you that you are trying to reference a variable called "NAME_3" from the "citiesShapes.shp" shapefile, but that the variable doesn't exist on the file. You need to look at your shapefile to see what the variable names are. You can either do this on the UNIX command line with:</p><p class=""> ncl_filedump citiesShapes.shp</p><p class="">or you can do it inside the NCL script by using the "getfilevarnames" function:</p><p class="">
</p><p class=""> f = <span class="">addfile</span>(<span class="">"citiesShapes.shp"</span>, <span class="">"r"</span>)</p><p class=""> print(getfilevarnames(f))</p><p class="">If you continue to have problems, please look at the error messages closely.<br></p><p class="">--Mary</p><p class=""><br></p>
</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 6:01 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><div>Dear Mary,<br><br></div>Now I am getting the error as shown below. I tried to change the name of NAME_3 according to name of the cities but still same.<br><br><br>warning:ContourPlotSetValues: Data values out of range of levels set by EXPLICITLEVELS mode<br>fatal:["Execute.c":5900]:variable (NAME_3) is not in file (citiesShapes)<br>fatal:["Execute.c":8128]:Execute: Error occurred at or near line 269 in file shapefiles_5.ncl<br><br><br></div>Appreciate for any help,<br><br></div>Soares<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 1, 2016 at 11:36 PM, 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"><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><span><font color="#888888"><pre><font face="arial, helvetica, sans-serif"><br></font></pre><pre><font face="arial, helvetica, sans-serif">--Mary</font></pre><pre><br></pre></font></span></div></div><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><br><br>fatal:syntax error: possibly an undefined procedure<br></span><span>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><div><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" 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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>