<div dir="ltr">Hi Rick,<div><br></div><div>Thanks! I'm absolutely sure it's the correct path, and I now get a file extension error as well:</div><div><br></div><div>---</div><div>
<p class=""><span class="">fatal:["FileSupport.c":4159]:(/home/matt.flournoy/PECAN/overview/July06/new_shp/USA_county_shps/USA_adms2.shp) has no file extension, can't determine type of file to open</span></p>
<p class=""><span class="">(0)<span class="">        </span>Error: gsn_add_shapefile_polylines: Can't open shapefile '/home/matt.flournoy/PECAN/overview/July06/new_shp/USA_county_shps/USA_adms2.shp'</span></p>
<p class=""><span class="">(0)<span class="">        </span> No shapefile information will be added.</span></p><p class=""><span class="">---</span></p><p class="">The .shp, .shx, and .dbf files are all in the same directory (.../USA_county_shps/), and all of them have the "USA_adm2" prefix.</p><p class="">Thanks,</p><p class="">Matt</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 4:29 PM, 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>Hi Matt,<br><br></div>The error says "...can't open shapefile...", so I'm not sure its a projection issue. Are you absolutely positive you've got the correct path? And you have the requisite 3 files at that path -- the .shp, the .shx, and the .dbf file, all with the same "<span>USA_adm2" prefix.<br><br></span></div><span>Rick<br></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Jun 2, 2016 at 2:56 PM, Matt Flournoy <span dir="ltr"><<a href="mailto:mflournoy37@gmail.com" target="_blank">mflournoy37@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 class="h5"><div dir="ltr">Hi Kacie!!<div><br></div><div>Thanks for the suggestions. I tried gsn_add_shapefile_polygons, but got the same error as when I used polylines. I'm not sure how to check the map projections for the shapefiles, but I'll look into that.</div><div><br></div><div>Thanks!</div><span><font color="#888888"><div>Matt</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 3:37 PM, Kacie Shourd <span dir="ltr"><<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Matty (<3),<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I’ve never plotted shapefiles in NCL before, so bear with me. Looking at your code, I would suggest you try using gsn_add_shapefile_polygons like you use gsn_add_shapefile_polylines.
Similar to how you are attempting to add the road polylines, try to add the polygons in this way as well?? The map you are calling in the create_SD_map function you have defined doesn’t draw these as far as I can tell.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Another thing to check would be that your map projections are matching between the shapefiles and the map you have called using NCL.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hopefully this helps, or someone else can guide you further.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Kacie
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">---<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black">Kacie N. Shourd</span><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Malgun Gothic",sans-serif;color:black">드림</span><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#222222">Graduate Research Assistant</span><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#222222">Desert Research Institute</span><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#222222"><a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a></span><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:#222222">Work: <a href="tel:%28775%29%20674-7049" value="+17756747049" target="_blank">(775) 674-7049</a></span><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>]
<b>On Behalf Of </b>Matt Flournoy<br>
<b>Sent:</b> Thursday, June 02, 2016 12:59 PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> [ncl-talk] shapefile woes<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'm trying to plot a simple map of a few counties and roads in South Dakota using NCL 6.3.0. To do this, I've downloaded USA county shapefiles (from "<a href="http://www.gadm.org/country" target="_blank">http://www.gadm.org/country</a>") and SD road network
shapefiles (from "<a href="http://download.geofabrik.de/north-america.html" target="_blank">http://download.geofabrik.de/north-america.html</a>"). Then, I use gsn_add_shapefile_polylines to add the USA counties to an existing map in my code, but I get this error message:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">(0) Error: gsn_add_shapefile_polylines: Can't open shapefile '/home/matt.flournoy/PECAN/overview/July06/new_shp/USA_adm_shp/USA_adm2.shp'<u></u><u></u></p>
<p class="MsoNormal">(0) No shapefile information will be added.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I get the same error if I try inputing the road network shapefile, except that the directory in the first error message is the directory where the road network shapefile is. The
map is plotted when I run the code, but the shapefile information is not on them.<u></u><u></u></p>
<p class="MsoNormal">Does anyone know what may be causing this issue? I've attached the code that I'm using, which is very similar to the NCL example online about reading in USA county shapefiles from
the same site as above.<u></u><u></u></p>
<p class="MsoNormal">Thank you,<u></u><u></u></p>
<p class="MsoNormal">Matt<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Matthew Flournoy<u></u><u></u></p>
<div>
<p class="MsoNormal">M.S. Meteorology Student, University of Oklahoma<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">B.S. Meteorology, Penn State University<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
<br>
<font face="Arial" size="2">PUBLIC RECORDS NOTICE: In accordance with NRS Chapter 239, this email and responses, unless otherwise made confidential by law, may be subject to the Nevada Public Records laws and may be disclosed to the public upon request.</font>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Matthew Flournoy<div>M.S. Meteorology Student, University of Oklahoma</div><div>B.S. Meteorology, Penn State University</div></div></div></div></div>
</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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Matthew Flournoy<div>M.S. Meteorology Student, University of Oklahoma</div><div>B.S. Meteorology, Penn State University</div></div></div></div></div>
</div>