[ncl-talk] Order in latitude/longitude variables
Dennis Shea
shea at ucar.edu
Wed Oct 2 10:16:09 MDT 2019
[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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191002/28fb27c8/attachment.html>
More information about the ncl-talk
mailing list