<div dir="ltr">Hi Jacob,<div><br></div><div>While NCL uses 0-based indexing, the wrf_user_ll_to_ij routine actually returns the 1-based index from the Fortran routine that gets called under the hood.  So, if you were working with NCL, you would need to subtract 1 from the result returned.  In your case, you are using Matlab, which is a 1-based indexing system, so you should use the same values that are returned from wrf_user_ll_to_ij.  </div><div><br></div><div>Hope this helps,</div><div><br></div><div>Bill</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 8:58 AM, Jacob Alberto Garcia <span dir="ltr">&lt;<a href="mailto:jacob_garcia@dlsu.edu.ph" target="_blank">jacob_garcia@dlsu.edu.ph</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Since matlab indexing starts at 1. </p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Aug 2, 2016 10:56 PM, &quot;Jacob Alberto Garcia&quot; &lt;<a href="mailto:jacob_garcia@dlsu.edu.ph" target="_blank">jacob_garcia@dlsu.edu.ph</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi</p>
<p dir="ltr">If i were given 28 29 as the ij output from the wrf ll to if function would that mean that when i extract a variable in that cell index i would have to make it 29 30 in matlab?</p>
<p dir="ltr">Thank you</p>
</blockquote></div>

<br>
<a href="http://www.dlsu.edu.ph" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-logo.jpg"></a><a href="https://www.facebook.com/DLSU.Manila.100" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-fb.jpg"></a><a href="http://instagram.com/dlsu" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-instagram.jpg"></a><a href="https://twitter.com/dlsumanila" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-twitter.jpg"></a><a href="http://dlsumanila.tumblr.com/" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-tumbler.jpg"></a><a href="http://iblog.lasalle.ph/" target="_blank"><img src="http://www.dlsu.edu.ph/offices/mco/images/email-disclaimer/dlsu-blog.jpg"></a><font color="green" face="Arial" size="2"><br><br>DISCLAIMER AND CONFIDENTIALITY NOTICE </font><div><font color="green" face="Arial" size="2">The information contained in this e-mail, including those in its attachments, is confidential and intended only for the person(s) or entity(ies) to which it is addressed. If you are not an intended recipient, you must not read, copy, store, disclose, distribute this message, or act in reliance upon the information contained in it. If you received this e-mail in error, please contact the sender and delete the material from any computer or system. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of De La Salle University. </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>