wrf_user_ll_to_ij problem

From: Chris Klich <cak10c_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 28 2011 - 13:36:41 MDT

I have been trying to start a script to create a cross section, and I am
trying to use the function wrf_user_ll_to_ij to extract the i,j locations
for specific lat and lon locations. However, I am getting the error:

Variable: times
Type: string
Total Size: 4 bytes
            1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Number Of Attributes: 2
  description : times in file
  _FillValue : missing
(0) 2008-04-21_00:00:00
fatal:Undefined identifier: (wrf_ll_to_ij) is undefined, can't continue
fatal:Execute: Error occurred at or near line 1456 in file ./WRFUserARW.ncl

fatal:Execute: Error occurred at or near line 30

I've checked the file and the function is there. Note that the
WRFUserARW.ncl file is in my script directory as I've downloaded the newest
version of it, and not the $NCARG_ROOT directory. Other WRF functions seem
to work, but this one I am having problems with. Any help or suggestions
would be appreciated.

Thank you,


load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"
load "./WRFUserARW.ncl"


a =

times = wrf_user_list_times(a) ; get time(s) in the file
ntimes = dimsizes(times)


dimll = dimsizes(lat) ; get size of dimensions
nlat = dimll(0)
mlon = dimll(1)

start_lat = 27.1
start_lon = 133.1
end_lat = 38.1
end_lon = 142.1

resll = True
resll@returnInt = True

start_loc = wrf_user_ll_to_ij(a,start_lon,start_lat,resll)
end_loc = wrf_user_ll_to_ij(a,end_lon,end_lat,resll)

print("start_loc = "+start_loc)
print("end_loc = "+end_loc)


ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Jun 28 13:36:52 2011

This archive was generated by hypermail 2.1.8 : Thu Jun 30 2011 - 12:54:44 MDT