[ncl-talk] Wrf ll to ij

Bill Ladwig ladwig at ucar.edu
Tue Aug 2 09:54:11 MDT 2016


Hi Jacob,

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.

Hope this helps,

Bill

On Tue, Aug 2, 2016 at 8:58 AM, Jacob Alberto Garcia <
jacob_garcia at dlsu.edu.ph> wrote:

> Since matlab indexing starts at 1.
> On Aug 2, 2016 10:56 PM, "Jacob Alberto Garcia" <jacob_garcia at dlsu.edu.ph>
> wrote:
>
>> Hi
>>
>> 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?
>>
>> Thank you
>>
>
> <http://www.dlsu.edu.ph> <https://www.facebook.com/DLSU.Manila.100>
> <http://instagram.com/dlsu> <https://twitter.com/dlsumanila>
> <http://dlsumanila.tumblr.com/> <http://iblog.lasalle.ph/>
>
> DISCLAIMER AND CONFIDENTIALITY NOTICE
> 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.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160802/c4461b74/attachment.html 


More information about the ncl-talk mailing list