<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title></title><style type="text/css">.felamimail-body-blockquote {margin: 5px 10px 0 3px;padding-left: 10px;border-left: 2px solid #000088;} </style></head><body>Thank you<br><br>MY idea is to use the shapefile as a .nc mask file to plot precipitation teleconnections over a basin.<br>Since the shapefile is made up of many shapes, and attributes, i cannot make it visualize in NCL.<br>SO i decided to create a .nc to overlay on my precipitation plots and mask the other regions out. <br><br>On Mar 3, 2017 8:07:13 PM, Mary Haley wrote:
<br><blockquote class="felamimail-body-blockquote"><div dir="ltr"><div class="gmail_default" style="font-size:small;">Hi Sri,</div><div class="gmail_default" style="font-size:small;"><br></div><div class="gmail_default" style="font-size:small;">You can actually type:</div><div class="gmail_default" style="font-size:small;"><br></div><div class="gmail_default" style="font-size:small;">&nbsp; &nbsp;ncl_convert2nc xxxx.shp</div><div class="gmail_default" style="font-size:small;"><br></div><div class="gmail_default" style="font-size:small;">Where "xxxx.shp" is the name of your shapefile, and it should create a "<a href="http://xxxx.nc" target="_blank">xxxx.nc</a>" file.&nbsp; You must also have the other files, xxxx.dbf and xxxx.shx in the same directory.</div><div class="gmail_default" style="font-size:small;"><br></div><div class="gmail_default" style="font-size:small;">I'm not sure if converting Shapefiles to NetCDF really buys you anything.&nbsp; If you plan to use this with a GIS application, then using the original shapefile is probably a better idea.</div><div class="gmail_default" style="font-size:small;"><br></div><div class="gmail_default" style="font-size:small;">--Mary</div><div class="gmail_default" style="font-size:small;"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 2, 2017 at 5:13 AM, Sri Nandini <span dir="ltr">&lt;<a href="mailto:snandini@marum.de" target="_blank">snandini@marum.de</a>&gt;</span> wrote:<br><blockquote class="felamimail-body-blockquote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hello<br><br>I am trying to convert shapefile using NCL_convert2nc into netcdf and wondered if anyone has done this or knows of an example?<br><a href="http://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml</a><br><br>On the above site it says its possible, but im not sure how to proceed. Could someone please confirm if this is possible to do with NCL?<br><br>THank you<span class="HOEnZb"><span style="color:#888888;"><br><br>Sri<br></span></span></div>
<br>_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br><br></blockquote></div><br></div>
</blockquote><br></body></html>