<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 = (/ (/ "Cristo Rei", "Cristo Rei " /), \<br> (/ "Metinaro", "Metinaro " /), \ <br> (/ "Vera Cruz", "Vera Cruz" /), \<br> (/ "Nain Feto", "Nain Feto" /), \ <br> (/ "Dom Aleixo","Dom Aleixo"/) /)<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"><<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" 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 "Dili" and "Hera" in the TLS_adm2.shp file, but these names don'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 "print" and "printVarSummary" 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 "citiesShapes->NAME_2" variable with:</div><div class="gmail_default">
<p style="font-size:small">print(citiesShapes<span>-></span>NAME_2)</p><p style="font-size:small">You would see that neither "Dili" or "Hera" are in the file, but "Dili Barat" and "Dili Timur" 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 "ncl_filedump" 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 "string":</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"><<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>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>