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

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun Dec 30 2012 - 16:50:00 MST

You have an older version of contributed.ncl

An updated version will be sent offline.

On 12/27/12 4:58 PM, Xi Chang wrote:
> 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
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Dec 30 16:50:12 2012

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