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
|