[ncl-talk] Order in latitude/longitude variables

Borja Sas González saszalez at gmail.com
Mon Oct 14 06:15:41 MDT 2019


To keep the answer for the community. I have asked the developer and he has
confirmed that for the rest of the variables the order is (lat, lon).

El mié., 2 oct. 2019 a las 17:16, Dennis Shea (<shea at ucar.edu>) escribió:

> [1] You should ask the WRF post-processor developers.
>
> [2] The argument order is up to the developer. While the lack of
> consistency in the 'lat/lon' argument order is a bit of a nuisance, it is
> not important if the function works properly 'under-the-hood'.
>
> [3]  **Possibly** one developer was looking from a fortran (column-major)
> perspective and the other from a 'C' (row major) perspective.
>
>      x(mlon,nlat,ntime)  ==> Fortran      [column-major]
>      x(ntime,nlat,mlon)  ==> 'C'  (NCL)  [row-major]
>
> See: Section 7.7 of NCL's *Mini-Language Manual*
> <http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf>
>
>
> On Wed, Oct 2, 2019 at 9:15 AM Borja Sas González via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> Hi. I have a doubt. When I use the following WRF function.
>>
>> The order in which I indicate the variables is the first longitude and
>> then latitude, that is, first the X and then the Y.
>>
>> wrf_user_ll_to_xy(file,lon,lat,opt)
>>
>> But when I use another function and want to print the data at the point I
>> want, first is latitude and then longitude (first Y and then X)? Example:
>>
>> psfc = wrf_user_getvar(file,"slp",-1)
>> print(slp(time,lat,lon))
>>
>> --
>> Borja Sas González
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 
Borja Sas González
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191014/26e18de9/attachment.html>


More information about the ncl-talk mailing list