| Re: Displaying 3-D vector fields [message #32833 is a reply to message #32726] |
Thu, 14 November 2002 07:33   |
jim.blackwell
Messages: 11 Registered: November 2002
|
Junior Member |
|
|
"Rick Towler" <rtowler@u.washington.edu> wrote in message news:<aqu1qc$28se$1@nntp6.u.washington.edu>...
> "Jim" <jim.blackwell@gsfc.nasa.gov> wrote
>>
>> forgive me for being such a doofus, but shouldn't the mag and loc
>> arrays be 3-D ?
>
> You tell me... Well I guess you just did. The 3rd dimension is time, I
> presume. That doesn't change anything except how you subscript your data.
>
> Say you have 100 samples from 100 data points. Your array will be in a form
> similar to [point,sample,values] or [100,100,3] where the last dimension is
> your x,y,z or u,v,w depending on if we're talking about your location array
> or magnitude array. Is that correct?
>
> In my example, I assumed 1 sample from 100 points [100,1,3] which I
> simplified to [100,3]. You can change the subscripts in the example to work
> with your data set. [n,*] would become something like [n,0,*] for your
> first sample, [n,1,*] for your second and so on.
>
>
>
>> Would it be as simple as just adding this code to the
>> existing code set for creating the vector object ?
>
> I don't understand what you are asking. But if you are asking if you should
> add this code to the vector object. No. Stick with my example.
>
> -Rick
Rick,
actually I have a data file containing the X, Y, Z positions of each
vector along with the magnitudes in the three dimensions. There are
then some (believe it or not) 18,000 individual vectors in the dataset
!
When I asked about adding in the code, I merely meant I wasn't sure
how to combine the vector code with the arrays to load the data.
Basically, how do I make it all work together, do I call the vector
object from the other code ? I'm really finding that I have trouble
thinking in 3-D for some reason and I have a Master's in Physics !!
:() Though it has been many years ago and we weren't programming such
things then.
Cheers,
Jim Blackwell
|
|
|
|