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

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 31 2012 - 13:57:49 MST

I think you have an old version of NCL.

%> ncl -V

The currrent version is 6.1.0.
Soon a new version [ 6.1.1 ] will be released.

On 12/31/12 1:39 PM, Xi Chang wrote:
> Dear NCL users,
>
> Thanks for the response,
> when i replace the old version contrib.ncl with the new one, it directly
> caused another problem
> on my codes (before just fine):
>
> *fatal:Undefined identifier: (pdfx_bin) is undefined, can't continue*
> *fatal:Execute: Error occurred at or near line 11176 in file
> ./contributed.ncl*
>
> Thanks
> Xi.
>
>
>
>
>
>
>
>
>
> On Mon, Dec 31, 2012 at 8:50 AM, Dennis Shea <shea@ucar.edu> wrote:
>
>> 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<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 Mon Dec 31 13:58:14 2012

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