<div dir="ltr"><div>Hi,</div><div><br></div><div>A couple of things:</div><div><br></div><div>i) where did you get your copy of NCL?  Shapefile support is optional, although it is enabled in all binaries built by the NCL team.</div><div><br></div><div>ii) shape<i>file</i> is un unfortunate misnomer -- its really a collection of 3-6 files that work in tandem. Minimally for NCL, the xxxx.shp, xxxx.shx, anbd xxxx.dbf files must be present in the same directory</div><div><br></div><div>iii) if you can send your shapefiles to me (you can directly email me), I'll take a look</div><div><br></div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 2:34 PM Soumik Basu via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to add a shapefile to a wrf contour map plot. For some reason I could not read the .shp file with ncl. I am attaching the code I am using. I have all of them in the same directory as the NCL code like it said in the shapefile examples. I downloaded the shapefiles for Canada from <a href="http://gadm.org" target="_blank">gadm.org</a> website. <br></div><div><br></div><div>Can anybody please tell me what am I doing wrong to read the shapefile. <br></div><div><br></div><div>warning:_NclOpenFile: Can not open file <gadm36_CAN_3.shp>; file format not supported or file is corrupted<br>(0)     Error: gsn_add_shapefile_polylines: Can't open shapefile 'gadm36_CAN_3.shp'<br>(0)           No shapefile information will be added.<br></div><div></div><div>I can open the shapefile with QGIS so nothing is wrong with it most likely. <br></div><div><br></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div>Thanks,</div><div>Soumik<br></div></div></div></div></div></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></blockquote></div>