<div dir="ltr"><div class="gmail_default" style="font-size:small">Mark,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Just FYI: your message ended up in my spam box, and I imagine it might have ended up in other people's spam box as well. I've noticed that <a href="http://yahoo.com">yahoo.com</a> addresses frequently get marked as "spam" by gmail.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Anyway, there's not really enough information here to answer your question. I'm not sure what you mean by "standard" netcdf data. Is this data rectilinear (1D lat/lon coordinate variables) or curvilinear (2D lat/lon) arrays or unstructured (1D data/lat/lon or something like a triangular mesh)?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If the data is rectilinear, then you can grab the points you want using the special { and } syntax:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><div class="gmail_default" style="">;---Open data file with coordinate arrays "lat" and "lon"</div><div class="gmail_default" style="">f = addfile("$NCARG_ROOT/lib/ncarg/data/cdf/<a href="http://uv300.nc">uv300.nc</a>","r")</div><div class="gmail_default" style="">lon_points = (/-25,10,0,-100,50/)</div><div class="gmail_default" style="">lat_points = (/-70,0,70/)</div><div class="gmail_default" style="">lon_subset = f->lon({lon_points})</div><div class="gmail_default" style="">lat_subset = f->lat({lat_points})</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">print("requested lat value = " + lat_points + \</div><div class="gmail_default" style=""> ", closest lat value = " + lat_subset)</div><div class="gmail_default" style="">print("requested lon value = " + lon_points + \</div><div class="gmail_default" style=""> ", closest lon value = " + lon_subset)</div></div><div class="gmail_default" style=""><div class="gmail_default" style=""><div class="gmail_default"><br></div><div class="gmail_default">Note that the values returned are the closest values that are *less than* (not interpolated values) to the points you specified.</div><div class="gmail_default"><br></div><div class="gmail_default">If you have 2D lat/lon arrays, then you can use the getind_latlon2d function:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/getind_latlon2d.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/getind_latlon2d.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">There's a good example on that page of how to use this function.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div><br></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px;background-color:rgb(255,255,255)"><div></div><div>Thanks very much in advance!</div><span class=""><font color="#888888"><div>Mark<br></div></font></span></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></div>