comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » problem with idl program
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
problem with idl program [message #91994] Sun, 27 September 2015 11:32 Go to next message
Ali Gamal is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MONTHS IN PLOT
Next Topic: Array -Time

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:30:07 PDT 2025

Total time taken to generate the page: 0.00461 seconds