<div dir="ltr"><div class="gmail_default" style="font-size:small">I would set res@returnInt to True so you get the index value returned instead of a float.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">But, you do bring up a good question about the meaning of the float values.  I have CCed wrfhelp as they should have a better idea.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">WRF help, can you email me offline and let me know how I can update the wrf_user_ll_to_ij documentation to make the meaning of the float values more clear?  Thanks.</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 Mon, Aug 3, 2015 at 9:42 AM, Saurabh Singh <span dir="ltr">&lt;<a href="mailto:saurabhsingh123op@gmail.com" target="_blank">saurabhsingh123op@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><b>NCL version : 6.1.0<br></b></div><div><b>OS: Ubuntu<br></b></div><div><br>i tried running the command to convert lat/long to wrf co-ordinates <br><br><i>  a   = addfile(&quot;/home/cee1/Desktop/new/<a href="http://wrf.nc" target="_blank">wrf.nc</a>&quot;,&quot;r&quot;)<br><br>  res = True<br>  res@returnInt = False                             ; return real values<br>  loc  = wrf_user_ll_to_ij(a, 103.3, 1.3, res)<br>  print(&quot;X/Y location is: &quot; + loc)<br></i><br></div>i get the output as<br><div><b>(0)    X/Y location is: 33.8303<br>(1)    X/Y location is: 53.5809<br><br></b></div><div>now while using this indices to extract variable i cannot understand what to  round it up and subtract 1. can anyone suggest me the indices value to be used.<span class="HOEnZb"><font color="#888888"><b><br></b></font></span></div><span class="HOEnZb"><font color="#888888"><div><br clear="all"><div><br>-- <br><div><div dir="ltr"><font style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif" size="2"><span>With regards</span><span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span><br></span></span></font><font style="font-family:arial,helvetica,sans-serif" size="2"><span style="color:rgb(0,0,0)"><span>Saurabh Kumar singh</span><span></span>
</span></font><br style="color:rgb(51,204,0)"><br><br><br></div></div>
</div></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>