clarification on indices

From: Peter Olsson <olsson_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 04 2011 - 12:45:10 MDT

All-

I was perusing a script of the users group archives the other day and found:
> .
> .
> .
> loc = wrf_user_ll_to_ij(a, lons, lats, True)
>
> ; loc(0,;) is west-east (x) ; loc(1,:) is south-north (y)
> ; subtract one since we want to use it as an index in NCL
>
> x_start = loc(0,0) - 1
> .
> .
> .

This makes me wonder if I have been misapplying wrf_user_ll_to_ij(). The comment section above suggests that the indices returned by the function perhaps range: 1 -> nx , 1 -> ny, while NCL uses the zero_offset: 0 -> nx - 1, 0 -> ny - 1?

Am I interpreting this correctly?

PLZ advise
PQO
  ___________________________________________________________
  |
  | Dr. Peter Q. Olsson,
  | Alaska State Climatologist, Alaska State Climate Center
  | Chief Scientist, Alaska Experimental Forecast Facility
  | University of Alaska Anchorage
  | 2811 Merrill Field Drive
  | Anchorage, AK 99501
  | voice: (907) 786-7234, fax (907) 786-7237|

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 4 12:45:30 2011

This archive was generated by hypermail 2.1.8 : Tue Nov 08 2011 - 15:54:50 MST