<div dir="ltr"><div class="gmail_default" style="font-size:small;display:inline">​Hi ​</div>Juan,<br><br>I think that wrf_user_ll_to_ij may be what you want:<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_ll_to_ij.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Functions/WRF_arw/<wbr>wrf_user_ll_to_ij.shtml</a><br><br>If you want to see an example of how a function is used in a real script, head over to:<br><br><a href="http://www.ncl.ucar.edu/Applications/" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/</a><br><br>and then click on the "functions/procedures" link at the top of the in this sentence:<br><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"></blockquote><i><br></i><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><i>List of tips, resources, functions/procedures and the example scripts they appear in.<br><br></i></blockquote><div class="gmail_default" style="font-size:small;display:inline">​This will take you to​ a long page that can take awhile to load:</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Applications/func_list.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/func_list.shtml</a></div><div><br></div><div><div class="gmail_default" style="font-size:small;display:inline">​and you can use your browser search window to look for "wrf_user_ll_to_ij", or just tack it onto the end of the URL:</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline"><a href="http://www.ncl.ucar.edu/Applications/func_list.shtml#" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/func_list.shtml#</a>​<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><wbr>wrf_user_ll_to_ij</span></div></div><div><br></div><div><div class="gmail_default" style="font-size:small;display:inline"></div><div class="gmail_default" style="font-size:small">​You will see a list like this:</div><div class="gmail_default" style="font-size:small"><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace, monospace">wrf_user_ll_to_ij</font></div><div><font face="monospace, monospace">    dataonmap_zoom_10.ncl</font></div><div><font face="monospace, monospace">    shapefiles_14_mask.ncl</font></div><div><font face="monospace, monospace">    wrf_debug_1.ncl (WRF debugging)</font></div><div><font face="monospace, monospace">    wrf_debug_2.ncl (WRF debugging)</font></div><div><font face="monospace, monospace">    wrf_debug_3.ncl (WRF debugging)</font></div><div><font face="monospace, monospace">    wrf_debug_4.ncl (WRF debugging)</font></div><div><font face="monospace, monospace">    wrf_gsn_10.ncl (WRF gsn_csm)</font></div><div><font face="monospace, monospace">    write_csv_5.ncl (Writing CSV files)</font></div></blockquote><div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This shows various NCL scripts and the page they appear on in parentheses. I recommend clicking on the page in the parentheses so you can see a description of the example. For example, "WRF_gsn_csm":</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/wrfgsn.shtml#ex10" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/wrfgsn.shtml#ex10</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">which describes wrf_user_ll_to_ij along with two other methods for getting i/j indexes from a lat/lon point.</div><div class="gmail_default"><br></div><div class="gmail_default">As a new user working with WRF data, I recommend looking at the WRF examples page:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/wrf.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/wrf.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">which has links to several other pages with lots of NCL scripts and descriptions of what they do.</div><div class="gmail_default"><br></div><div class="gmail_default">You may also want to check out the excellent and extensive <span class="gmail-il" style="font-size:12.8px">NCL</span><span style="font-size:12.8px"> </span><span class="gmail-il" style="font-size:12.8px">User</span><span style="font-size:12.8px"> </span><span class="gmail-il" style="font-size:12.8px">Guide</span><span style="font-size:12.8px"> (NUG), c</span><span style="font-size:12.8px">reated by Karin Meier-Fleischer and Michael Böttinger of </span><a href="https://www.dkrz.de/" target="_blank" style="font-size:12.8px"><span class="gmail-il">DKRZ</span></a><span style="font-size:12.8px"> (Deutsches Klimarechenzentrum). </span></div><div class="gmail_default"><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><a href="https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/" target="_blank" style="color:rgb(17,85,204)">https://www.<span class="gmail-il">ncl</span>.ucar.edu/<wbr>Document/Manuals/NCL_User_<wbr><span class="gmail-il">Guide</span>/</a></b><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">Good luck,</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small">​</div><br><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><i><br></i></blockquote></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 28, 2018 at 7:49 AM, Juan Carlos Anduckia <span dir="ltr"><<a href="mailto:janducki@yahoo.com" target="_blank">janducki@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div><div>Hello:</div><div><br></div><div>I'm new to the list and to NCL.</div><div>I
 have a 2d-observation field in a rectangular grid and I wonder if there
 is any built-in NCL function that allows one to find the nearest grid 
observation poinr indexes (i,j) to any wrfout* (lon,lat) coordinates.. </div><div>Thanks in advance,</div>                              Juan<br></div></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>