Your group has three members: pass it to three Select modules, giving the second parameter of Select as 0, 1, and 2. This will give you as output three fields. Each field will have a scalar data component, containing the x, y, or z positions respectively. Pass these three to the Compute module, as the first three inputs, in the appropriate order (x, y, then z). You may need to add a tab to Compute (look in the Edit menu under Input/Output tabs). In the expression field for Compute (which you get by double-clicking on Compute), put the expression "[a,b,c]" just as I've typed it. This creates a three-vector out of your three scalar values. Now you want it to be your positions: pass the output of Compute to the first input of Construct. This makes a field with your three-vectors as the positions. A simple first step is to pass the output of Construct to ShowPositions, then to Image to see what you get.
Now remaining is what you want to do with it next! You say a grid, so I'm assuming that you have some sort of regular mesh associated with these positions? In this case you can use Construct to create the appropriate mesh (as first input give construct an arbitrary origin, as the second input give it some arbitrary deltas, and as the third input give it the grid counts in the three dimensions). Then use Replace to extract the "connections" out of this new output of Construct, and insert it into your old output of Construct as the "connections" component. This will only work if your x, y and z positions are given in a reasonable order in the file corresponding to the mesh (not random!) You may need to play around with the order to give the mesh extents to construct so that you match the order in your file. Do you have data associated with these positions? _________________________________ Donna L. Gresh, Ph.D. Visual Analysis Group IBM T.J. Watson Research Center (914) 784-5049 [EMAIL PROTECTED] Thomas Wolfanger <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 06/26/2000 11:32:56 AM Please respond to [email protected] Sent by: [EMAIL PROTECTED] To: [email protected] cc: Subject: [opendx-users] rearranging data Hello all, I have a basic problem using dx. I actually know what to do with my data but I don´t know how to do and I´ve been trying now for several days without making much progresss. I have the following problem: I´m importing a netCDF data file. It contains three fields which contain each x-, y- and z- values of the vertices of a grid. As output, I get a group with three members. How can I tell dx that these three vectors are to be used as point positions? Sorry for the basic question, but I´m really stuck at this point. Thanks for your attention, Mit freundlichen Grüßen / Best regards ############################################################## # Thomas Wolfanger # # Turbo-Lufttechnik GmbH # # [EMAIL PROTECTED] # # Tel.: ..49/6332-808 425 # # Fax : ..49/6332-808 357 # ##############################################################
