Re: Subscript out of range?

From: Adam Phillips (asphilli AT XXXXXX)
Date: Tue Jan 08 2002 - 13:22:06 MST


Hello,

I think the problem is that you are using coordinate subscripting, but you are
not using coordinate subscripts that are valid. The time coordinate values range
from 17417712->17426472, and in your code you are specifying coordinate times
120->212. In this case, I believe the easiest solution is to use regular
subscripting, instead of coordinate subscripting...

uups = dim_avg(u(level|:,lat|:,lon|:,time|120:212))

If you did want to go ahead and use coordinate subscripting:

uups = dim_avg(u(level|:,lat|:,lon|:,{time|17420584:17422810}))

(I am unsure if I got the above values (17420584:17422810) correct.
You might want to double check.)

Hope that helps..
Adam
-------------------------------------------------------------
Adam Phillips email: asphilli AT ucar.edu
Climate and Global Dynamics Division tel: (303) 497-1726
National Center for Atmospheric Research fax: (303) 497-1333
P.O. Box 3000
Boulder, CO 80307-3000 http://www.cgd.ucar.edu/~asphilli



This archive was generated by hypermail 2b29 : Tue Feb 19 2002 - 08:48:12 MST