problem with idl program [message #91994] |
Sun, 27 September 2015 11:32  |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
Hi,
when I run idl program, this message appears
.............
IDL> .r 20150711scan02_iquv_2_1.pro
% Compiled module: $MAIN$.
% Subscript range values of the form low:high must be >= 0, < size, with low <= high: <FLOAT Array[1024, 128]>.
% Execution halted at: $MAIN$ 29 /20150711scan02_iquv_2_1.pro
....................
This from source programe
yr=[50,450]
swit=2e4
xr=[400,800]
ss=size(arr0)
nx=ss[1]
ny=ss[2]
nf=ss[4]
nny=yr[1]-yr[0]+1
arr=fltarr(nx,nf,nny)
for ii=0,3 do begin
if ii eq 0 then begin
for i=0,nf-1 do begin
arr[*,i,*]=(arr0[*,*,0,i])[*,yr[0]:yr[1],0,0] ; line 29
endfor
.....
what can I do ?
|
|
|
Re: problem with idl program [message #91995 is a reply to message #91994] |
Sun, 27 September 2015 11:35  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ali Gamal writes:
>
> Hi,
> when I run idl program, this message appears
> .............
> IDL> .r 20150711scan02_iquv_2_1.pro
> % Compiled module: $MAIN$.
> % Subscript range values of the form low:high must be >= 0, < size, with low <= high: <FLOAT Array[1024, 128]>.
> % Execution halted at: $MAIN$ 29 /20150711scan02_iquv_2_1.pro
> ....................
> This from source programe
>
> yr=[50,450]
> swit=2e4
> xr=[400,800]
>
> ss=size(arr0)
> nx=ss[1]
> ny=ss[2]
> nf=ss[4]
> nny=yr[1]-yr[0]+1
> arr=fltarr(nx,nf,nny)
> for ii=0,3 do begin
> if ii eq 0 then begin
> for i=0,nf-1 do begin
> arr[*,i,*]=(arr0[*,*,0,i])[*,yr[0]:yr[1],0,0] ; line 29
> endfor
>
> .....
> what can I do ?
Check all your assumptions. Make sure all your variables contain the
values you think they do.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|