subscripting error

From: B N <gkhan100_at_nyahnyahspammersnyahnyah>
Date: Sat, 1 Aug 2009 03:35:30 -0400

Hi.

Sorry, I am having trouble getting around this error. I am trying to
average between two indices that represent latitudes. The error I am
getting seems to be from using a colon. When I'm trying to get a
result between two indices, is there other syntax I need to use?
Bold
(
The error is below and it does not seem to be WRF related)

ncl 18> loc = wrf_user_ll_to_ij(a, 35, 10.0, res)
ncl 19> print("X/Y location is: " + loc)
(0) X/Y location is: 140.345
(1) X/Y location is: 65.5673
ncl 20> loc = wrf_user_ll_to_ij(a, 35, 15.0, res)
ncl 21> print("X/Y location is: " + loc)
(0) X/Y location is: 140.345
(1) X/Y location is: 75.791
ncl 22> u700!0 = "lat"
ncl 23> u700!1 = "lon"
ncl 24> u700a=u700(lon|:,lat|:)
ncl 25> uZone = dim_avg_Wrap(u700a((140.345), (65.5673:75.791) ))
fatal:syntax error: line 25 before or near :
uZone = dim_avg_Wrap(u700a((140.345), (65.5673:
----------------------------------------------^

fatal:Error in subscript, normal subscripting is being used, make sure
named subscripting has not been used
fatal:syntax error: function dim_avg_Wrap expects 1 arguments, got 0
fatal:error at line 25
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Aug 01 2009 - 01:35:30 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 05 2009 - 20:36:03 MDT