[ncl-talk] shapefile woes

Matt Flournoy mflournoy37 at gmail.com
Thu Jun 2 13:59:17 MDT 2016


Hi all,

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 "
http://www.gadm.org/country") and SD road network shapefiles (from "
http://download.geofabrik.de/north-america.html"). 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:

(0) Error: gsn_add_shapefile_polylines: Can't open shapefile
'/home/matt.flournoy/PECAN/overview/July06/new_shp/USA_adm_shp/USA_adm2.shp'

(0)       No shapefile information will be added.


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.

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.

Thank you,

Matt

-- 
Matthew Flournoy
M.S. Meteorology Student, University of Oklahoma
B.S. Meteorology, Penn State University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160602/81163b6a/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shp_woes.docx
Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Size: 83101 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160602/81163b6a/attachment.bin 


More information about the ncl-talk mailing list