Hello,
1. Can someone tell me why do I get an error message that says:
% FLOW3: Incorrect number of arguments.
% Execution halted at: $MAIN$ 49 C:\RSI\IDL55\lib\velocity3.pro
When I include in the FLOW3 argument the sx,sy,sz arrays?
2. If I erase sx,sy,sz, my vectors appear extremelly small! How can I fix this?
Regards,
Hector
openr,q,'Vel.dat',/Get_Lun ;open files for reading
A=fltarr(6,90*360L) ;create arrays to hold data in files
readf,q,A ;read files into arrays
Free_Lun,q ;close files and clear logical unit assigned to each file
Vx=fltarr(360,360,90) ;create 3 dimensional arrays to hold vector data.
Vy=fltarr(360,360,90) ;the indices will be Vx(x,y,z)
Vz=fltarr(360,360,90)
factor = 10
For i = 0, 32399L Do Begin ;change here the number of records ifneeded.
;(0) first column of the array is z (0<z<90)
;(1) second column of the array is y (constant)
;(2) third column of the array is x (0<x<360)
;(3) fourth column of the array is Vx
;(4) fifth column of the array is Vy
;(5) sixth column of the array is Vz
Vx(A(2,i)-1,A(1,i)-1,A(0,i)-1) = A(3,i)*10.0^factor
Vy(A(2,i)-1,A(1,i)-1,A(0,i)-1) = A(4,i)*10.0^factor
Vz(A(2,i)-1,A(1,i)-1,A(0,i)-1) = A(5,i)*10.0^factor
Endfor
vol = FLTARR(360, 360, 90)
WINDOW, XSIZE = 390, YSIZE = 400
;CREATE_VIEW, XMAX = 360, YMAX = 360, ZMAX = 100
Scale3, zr=[0,90], yr=[0,360], xr = [0,360] ;create 3D scaling system
sx=A[2,*]
sy=A[1,*]
sz=A[0,*]
Flow3, Vx, Vy, Vz, sx,sy,sz
end
|