<div dir="ltr"><div><div><div>Dear mother Mary<br><br></div>I still face the error even I change the name of location for the cities as below;<br><br>majorCities = (/ (/ &quot;Cristo Rei&quot;, &quot;Cristo Rei &quot;     /), \<br>              (/ &quot;Metinaro&quot;,  &quot;Metinaro  &quot;     /), \    <br>              (/ &quot;Vera Cruz&quot;, &quot;Vera Cruz&quot;     /), \<br>              (/ &quot;Nain Feto&quot;, &quot;Nain Feto&quot;     /), \     <br>              (/  &quot;Dom Aleixo&quot;,&quot;Dom Aleixo&quot;/) /)<br><br></div>I also added the printVarSummary but still face the error. I dont exactly which variable I should use because I have tried to some variables in line 296 but still not working. Sorry for asking alot.<br><br></div>Soares<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 11:58 PM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</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" style="font-size:small">Soares,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The problem is simply that are you are trying to look for cities called &quot;Dili&quot; and &quot;Hera&quot; in the TLS_adm2.shp file, but these names don&#39;t appear in the NAME_2 variable.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This is why Dennis and I were trying to tell you that &quot;print&quot; and &quot;printVarSummary&quot; can be very helpful.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you print the &quot;citiesShapes-&gt;NAME_2&quot; variable with:</div><div class="gmail_default">







<p style="font-size:small">print(citiesShapes<span>-&gt;</span>NAME_2)</p><p style="font-size:small">You would see that neither &quot;Dili&quot; or &quot;Hera&quot; are in the file, but &quot;Dili Barat&quot; and &quot;Dili Timur&quot; are.</p><p style="font-size:small">You will need to adjust your code to look for the correct names of the cities.  This is where &quot;ncl_filedump&quot; can help you.</p><p style="font-size:small">You can examine the contents of the TLS_adm2.shp shapefile from the UNIX command line with:</p><p style="font-size:small">ncl_filedump TLS_adm2.shp</p><p style="font-size:small">You will then see the following variables of type &quot;string&quot;:</p><p>      string ISO ( num_features )</p><p>      string NAME_0 ( num_features )</p><p>      string NAME_1 ( num_features )</p><p>      string NAME_2 ( num_features )</p><p>      string HASC_2 ( num_features )</p><p>      string CCA_2 ( num_features )</p><p>      string TYPE_2 ( num_features )</p><p>      string ENGTYPE_2 ( num_features )</p><p>      string NL_NAME_2 ( num_features )</p><p>      string VARNAME_2 ( num_features )</p><p>You can now examine the contents of each of these variables, also using ncl_filedump:</p><p>ncl_filedump -v NAME_2 TLS_adm2.shp<br>ncl_filedump -v ENGTYPE_2 TLS_adm2.shp<br>ncl_filedump -v VARNAME_2 TLS_adm2.shp</p><div>etc.</div><p>This will help you see which variables on the shapefile might be the most useful to you, and then the exact city name to search for. You can then make this change in your shapefiles_5.ncl script.</p><span class="HOEnZb"><font color="#888888"><p>--Mary</p><p><br></p></font></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 2:36 AM, isakhar sakhar isakhar <span dir="ltr">&lt;<a href="mailto:isakhar.inside13@gmail.com" target="_blank">isakhar.inside13@gmail.com</a>&gt;</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>Dear Mrs.Mary<br><br></div>I could not put my files into ftp server of NCL, so I share it with dropbox. <br><br><div><div><br><a href="https://www.dropbox.com/s/iie1snwo2m663dn/soares.tar.gz?dl=0" target="_blank">https://www.dropbox.com/s/iie1snwo2m663dn/soares.tar.gz?dl=0</a><br><div class="gmail_extra"><br><br></div><div class="gmail_extra">Thank you,<br></div><div class="gmail_extra">Soares<br></div><div class="gmail_extra"><br><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>