Re: wrf_user_ll_to_ij function

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 08 2012 - 09:42:57 MDT

Hi Xin,

Can you provide your geo_d01.nc file? I have a feeling you may be giving it values that are outside the range of your lat/lon arrays, but I need to look at the file first.

You can put it on our ftp account:

http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP

--Mary

On Oct 7, 2012, at 8:36 AM, Xin Xi wrote:

> Hello,
>
> I am trying to use wrf_user_ll_to_ij function to find the nearest wrf model grid indices of a 2d lat/lon array (which is converted to 1d before use). I used the WPS geogrid output file (geo_d01.nc) as the file handle in the function, as follows:
>
> r0_lat1d = ndtooned(r0_lat2d)
> r0_lon1d = ndtooned(r0_lon2d)
> geo_file = addfile("geo_d01.nc", "r")
> opt = True
> opt@returnInt = True
> cell_ij = wrf_user_ll_to_ij(geo_file, r0_lon1d, r0_lat1d, opt)
> cell_ij = cell_ij - 1 ; convert to ncl subscripts
>
> I got negative values in cell_ij, which is wrong. Can someone help me out ?
>
> Thanks!
>
> Xin
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 8 09:43:06 2012

This archive was generated by hypermail 2.1.8 : Mon Oct 08 2012 - 15:54:16 MDT