<div dir="ltr"><div>Hi,<br><br></div>This worked for me, when i tried to plot precipitation over TN.<br><br>load "./shapefile_utils.ncl"<br><br>.....<br><br>sname = "IND_adm0.shp"<br>print_shapefile_info(sname)<br>plot_shapefile(sname)<br><br>.....<br><br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="text-align:left"><font size="2"><span style="font-family:times new roman,serif"><font size="2">R</font>egards<br></span></font></div><div style="text-align:left"><font face="verdana,sans-serif"><font size="2"><span style="font-family:times new roman,serif">-Krishna-</span></font></font><br></div></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 6, 2017 at 2:27 PM, Sri Nandini <span dir="ltr"><<a href="mailto:snandini@marum.de" target="_blank">snandini@marum.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>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><div><div class="h5"><br>On Mar 3, 2017 8:07:13 PM, Mary Haley wrote:
<br><blockquote class="m_-5718261479776434010felamimail-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"> 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. 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. 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"><<a href="mailto:snandini@marum.de" target="_blank">snandini@marum.de</a>></span> wrote:<br><blockquote class="m_-5718261479776434010felamimail-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/<wbr>Document/Tools/ncl_convert2nc.<wbr>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="m_-5718261479776434010HOEnZb"><span style="color:#888888"><br><br>Sri<br></span></span></div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br><br></blockquote></div><br></div>
</blockquote><br></div></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>