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

Home » Public Forums » archive » Flow3 procedure
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
Flow3 procedure [message #39295] Thu, 06 May 2004 10:24 Go to next message
adharac is currently offline  adharac
Messages: 23
Registered: April 2004
Junior Member
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
Re: Flow3 procedure [message #39345 is a reply to message #39295] Thu, 13 May 2004 12:07 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Adhara writes:

> Hello, I tried what you suggested me to do, but now, the program is crashing...
> Do you have any thing else in mind that can help me out?

Well, do you have any money. :-)

I have no ideas that don't involve looking at your
data, which crosses the line between free and paid
help with me. Sorry.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: sigma in curvefit function!
Next Topic: zero values with flow3

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

Current Time: Fri Oct 10 07:59:49 PDT 2025

Total time taken to generate the page: 1.03890 seconds