<div dir="ltr"><div class="gmail_default" style="font-size:small">Noah,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">First, NCL doesn't have any tools for writing shapefile data.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Second, I'm a little confused by this request, because the shapefiles we that we use in NCL are for geographical outlines, which means the X and Y arrays on the shapefile correspond with longitude and latitude data. A feature of shapefiles is that you can have "ragged arrays". That is, you may have a geographical area that is represented by several distinct areas, each one defined by an X/Y array of different lengths. The file you provided only contains a 2D array filled with 0s and 1s, so I'm not sure how you want this translated into shapefile data with geographic information.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you need to use this mask for computational or graphical purposes in NCL, then you shouldn't need to translate it to anything. You should be able to use it directly. See the "mask" and "where" functions as a start:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml</a><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">You may also want to see our "mask" examples page:</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Applications/mask.shtml">http://www.ncl.ucar.edu/Applications/mask.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">--Mary</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 29, 2016 at 1:29 AM, Kerandi, Noah Misati (IMK) <span dir="ltr"><<a href="mailto:noah.kerandi@kit.edu" target="_blank">noah.kerandi@kit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Dear ncl users,</p>
<p>I have a netcdf file (see attached) which i use as a mask. i need assistance to generate a shape file.
</p>
<p>Such assistance will be appreciated.</p>
<p>Regards.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div>
<div><font size="2">
<div>Noah M. Kerandi<br>
KIT-Campus Alpin<br>
IMK-IFU: Atmospheric Environmental Research<br>
Kreuzeckbahnstr. 19,<br>
82467 Garmisch-Partenkirchen<br>
Germany</div>
</font></div>
</div>
</div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>