Re: wrf_user_ll_to_ij function

From: WRF Help <wrfhelp_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 02 2012 - 10:58:55 MDT

Negative values from this function does mean the lat/lon you are
looking for is outside your model domain
wrfhelp

On Mon, 8 Oct 2012 09:42:57 -0600
  Mary Haley <haley@ucar.edu> wrote:
> 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 Fri Nov 2 10:59:05 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 06 2012 - 15:05:49 MST