<div dir="ltr">Hi Rick,<div><br></div><div>The path may have been the original issue and why I wasn&#39;t getting a file extension error, because NCL couldn&#39;t find the file in the first place. So that&#39;s relatively embarrassing. But now I&#39;m sure I have the correct path. I&#39;ve attached the shapefiles that I&#39;m using. USA_adm_shp.zip contains the shapefiles with USA county borders, and south-dakota-latest.shp.zip contains shapefiles with South Dakota road networks.</div><div><br></div><div>Thanks,</div><div>Matt​<div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1;background-color:rgb(245,245,245)"><a href="https://drive.google.com/file/d/0BxjU3NJc2C4dTFVBMWowREw4LVU/view?usp=drive_web" target="_blank" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0;border:none"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">USA_adm_shp.zip</span></a><img src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png" style="opacity: 0.55; cursor: pointer; float: right; position: relative; top: -1px; display: none;"></div>​​<div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1;background-color:rgb(245,245,245)"><a href="https://drive.google.com/file/d/0BxjU3NJc2C4dTFg1SFZTT2c3UXM/view?usp=drive_web" target="_blank" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0;border:none"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">south-dakota-latest.shp.zip</span></a><img src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png" style="opacity: 0.55; cursor: pointer; float: right; position: relative; top: -1px; display: none;"></div>​</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 3, 2016 at 9:05 AM, Rick Brownrigg <span dir="ltr">&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@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">That&#39;s odd -- what has changed to now introduce the file-extension error?  In any case, are you able to send me the shapefiles in question so that I can check it out -- perhaps they are corrupt or something?<br><br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 3, 2016 at 7:18 AM, Matt Flournoy <span dir="ltr">&lt;<a href="mailto:mflournoy37@gmail.com" target="_blank">mflournoy37@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">Hi Rick,<div><br></div><div>Thanks! I&#39;m absolutely sure it&#39;s the correct path, and I now get a file extension error as well:</div><div><br></div><div>---</div><div>







<p><span>fatal:[&quot;FileSupport.c&quot;:4159]:(/home/matt.flournoy/PECAN/overview/July06/new_shp/USA_county_shps/USA_adms2.shp) has no file extension, can&#39;t determine type of file to open</span></p>
<p><span>(0)<span>        </span>Error: gsn_add_shapefile_polylines: Can&#39;t open shapefile &#39;/home/matt.flournoy/PECAN/overview/July06/new_shp/USA_county_shps/USA_adms2.shp&#39;</span></p><span>
<p><span>(0)<span>        </span>       No shapefile information will be added.</span></p></span><p><span>---</span></p><p>The .shp, .shx, and .dbf files are all in the same directory (.../USA_county_shps/), and all of them have the &quot;USA_adm2&quot; prefix.</p><p>Thanks,</p><p>Matt</p></div></div><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">&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@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><div>Hi Matt,<br><br></div>The error says &quot;...can&#39;t open shapefile...&quot;, so I&#39;m not sure its a projection issue. Are you absolutely positive you&#39;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 &quot;<span>USA_adm2&quot; prefix.<br><br></span></div><span>Rick<br></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Jun 2, 2016 at 2:56 PM, Matt Flournoy <span dir="ltr">&lt;<a href="mailto:mflournoy37@gmail.com" target="_blank">mflournoy37@gmail.com</a>&gt;</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">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&#39;m not sure how to check the map projections for the shapefiles, but I&#39;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">&lt;<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.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 link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Hi Matty (&lt;3),<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,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:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,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:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,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:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Best,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Kacie
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">---<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">Kacie N. Shourd</span><span style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Malgun Gothic&quot;,sans-serif;color:black">드림</span><span style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#222222">Graduate Research Assistant</span><span style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#222222">Desert Research Institute</span><span style="font-size:9.5pt;font-family:&quot;Arial&quot;,sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;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:&quot;Arial&quot;,sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;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:&quot;Arial&quot;,sans-serif;color:#222222"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,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&#39;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&#39;ve downloaded USA county shapefiles (from &quot;<a href="http://www.gadm.org/country" target="_blank">http://www.gadm.org/country</a>&quot;) and SD road network
 shapefiles (from &quot;<a href="http://download.geofabrik.de/north-america.html" target="_blank">http://download.geofabrik.de/north-america.html</a>&quot;). 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&#39;t open shapefile &#39;/home/matt.flournoy/PECAN/overview/July06/new_shp/USA_adm_shp/USA_adm2.shp&#39;<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&#39;ve attached the code that I&#39;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 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></blockquote></div><br></div>
</div></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>