fatal:Subscript out of range, error in subscript #0

From: Xi Chang <xi.chang01_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 27 2012 - 16:58:26 MST

I just wonder, why did i get this error message when i simply use
the my stat_dispersion function as follow:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "./stat_dispersion.ncl"

begin
[snip]

 opt = True
 opt@PrintStat = True
 stat = stat_dispersion(temp(:,{10:50}), opt )

end

----
the error :
fatal:Subscript out of range, error in subscript #0
fatal:Execute: Error occurred at or near line 92 in file
./stat_dispersion.ncl
----
My variable is:
Variable: temp
Type: float
Total Size: 30240 bytes
            7560 values
Number of Dimensions: 2
Dimensions and sizes: [lat | 21] x [lon | 360]
Coordinates:
            lat: [ -10..  10]
            lon: [-180.. 179]
Number Of Attributes: 6
----
I attached the "stat_dispersion" file here.
Thank you  for any response.
Xi


_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Thu Dec 27 16:58:37 2012

This archive was generated by hypermail 2.1.8 : Fri Jan 04 2013 - 15:32:29 MST