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

Home » Public Forums » archive » problem defining vectors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
problem defining vectors [message #39470] Mon, 24 May 2004 14:09 Go to previous message
heoa is currently offline  heoa
Messages: 9
Registered: May 2004
Junior Member
Dear experts,

I have a file with 6 columns and 5,000 records.
Each of these records contain spatial coordinates (x,y,z) and vector
components (vx,vy,vz). The coordinates are from a Cubic space,
however, not all the points inside this cube are in the array. How
can I build the arrays so that they can have the same size? I thought
about inserting zeros in between.

Cube space
x=50
y=50
z=50

the program that I wrote looks like this: I think the second line is
not good!
thank you and best regards,
elias


file=DIALOG_PICKFILE(FILTER=['*.dat'])
array=fltarr(6,50*50L*50L)
Openr,1,file
readF,1,array
x=array[2,*]
y=array[1,*]
z=array[0,*]
u=array[3,*]
v=array[4,*]
w=array[5,*]

close,1
end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: color for Flow3
Next Topic: Using ASSOC

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

Current Time: Fri Oct 10 14:51:46 PDT 2025

Total time taken to generate the page: 1.76126 seconds