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

Home » Public Forums » archive » error message
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
error message [message #40590] Tue, 17 August 2004 14:04
adharac is currently offline  adharac
Messages: 23
Registered: April 2004
Junior Member
Dear All,
I am getting an error message that says:

% Attempt to subscript A with I is out of range.
% Execution halted at: $MAIN$42 C:\RSI\IDL55\lib\A
This happens at line: ****************

Can someone tell me what is going on? I did it for index Z=32L and it
worked. Why it is not working for Z=2L??

Kind regards,
A



Vx=fltarr(49L,49L,2L) ;create 3 dimensional arrays to hold vector
data.
Vy=fltarr(49L,49L,2L) ;the indices will be Vx(x,y,z)
Vz=fltarr(49L,49L,2L)

For i = 0L, 4801L Do Begin
Vx(A(0,i)-1,A(1,i)-1,A(2,i)-1) = A(5,i)
;*****************************

Vy(A(0,i)-1,A(1,i)-1,A(2,i)-1) = A(4,i)

Vz(A(0,i)-1,A(1,i)-1,A(2,i)-1) = A(3,i)
Endfor

posx=indices[*,0]
posy=indices[*,1]
posz=indices[*,2]

Scale3, xr=[0,50],yr=[0,50],zr=[55,0],AX=30, AZ=50
Flow3, Vx, Vy, Vz,$
SX=posx,SY=posy,SZ=posz, $
LEN=1,ARROWSIZE=0.01

End
[Message index]
 
Read Message
Previous Topic: Getting rid of large nested FOR loops
Next Topic: error messages

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

Current Time: Fri Oct 10 19:46:12 PDT 2025

Total time taken to generate the page: 0.48180 seconds