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
Received on Sun Oct 7 08:37:07 2012
This archive was generated by hypermail 2.1.8 : Mon Oct 08 2012 - 15:54:16 MDT