<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Adam,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">We have a function called "gsn_coordinates" which draws grid points or grid lines for the given data array, but it doesn't handle the special case of an unstructured grid with N cells and NE edges.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">However, if your grid is defined such that you have an array of indexes that represent vertex edges for another array that contains the nodes, then you might be able to use the gsn_add_polyline routine with the special "gsSegments" resource.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See example "mpas_faster_2.ncl" which shows the gsSegments method, and the mpas_2.ncl example which draws the same thing, but in a slower fashion using basic line draws. The point of this example is to show how much faster gsSegments can make your code.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="https://www.ncl.ucar.edu/Applications/mpas.shtml">https://www.ncl.ucar.edu/Applications/mpas.shtml</a><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The ICON page that Guido pointed you to also makes use of the gsSegments resource, in example icon_faster_2.ncl.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="https://www.ncl.ucar.edu/Applications/icon.shtml">https://www.ncl.ucar.edu/Applications/icon.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="font-size:small">If you have an unstructured grid that is different from the ICON and the MPAS grids, then I would love to add this as yet another example on our website. I could help you create the script if necessary, but would need access to your data file. I could perhaps use this as a way to enhance gsn_coordinates to better handle unstructured grids.</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"> </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 3, 2016 at 3:01 PM, Adam Herrington <span dir="ltr"><<a href="mailto:adam.herrington@stonybrook.edu" target="_blank">adam.herrington@stonybrook.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">How would one plot grid lines for a data array on an unstructured grid? <div><br></div><div>I am able to plot grid boxes around nodes by setting cnFillMode = "CellFill" and defining the vertices of the grid box. But what if I want grid lines connecting the nodes? And what if I want to plot grid lines on every other node (not that the data arrays have one dimension for the horizontal dimension, containing all the tiles of the sphere --this is a global model)</div><div><br></div><div>Any help would be greatly appreciated</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Adam</div></font></span></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>