Marc,
Assuming your points that form the line are in connected order, you can
import as a 1D grid. It looks like your line is not straight based on
stated x,y,z coordinates. Here is what your general array import file
would look like for 100 data points organized with five values on each line:
x y z data1 data2
file = test.txt
grid = 100
format = ascii
interleaving = field
majority = column
field = locations, field0, field1
structure = 3-vector, scalar, scalar
type = float, float, float
end
This will create a group with two members. Now Select the member you want
to Color. Then use Compute to replace the data component from the other
member that will be use to determine the radius. Tube, RubbererSheet, Image:
Import
|__________________
| |
Select(0) Select(1) #Assuming color
based on field0
| |
Autocolor ________|
| |
Compute(b) #data component now has
field1 data
|
Tube
|
RubberSheet
|
Image
I think this is what you want. You can use the Print (rD) module to see how
the data is transformed in each step.
Jeff
At 01:53 AM 5/19/2004, you wrote:
Hi,
as OpenDX beginner I am not yet very comfortable with its data model,
and hoped to get some advice from this list to get me started on a
visualization task.
I would like to present line-dependent data as a tube with its diameter
varying as a function of one data component, and the color varying as
the function of another data component. In the future I'd also like to
go from simple spherical tube crosssections to elliptical ones.
For the above purpose I want to add some code to the program that calculates
the actual data in order to create a netCDF datafile that will be appropriate
for subsequent visualization in OpenDX.
As far as I got now, I will have to provide positions and connections for the
line and then the different datasets along this line of which I want to be
able
to choose one for the radii, another one for the color.
Now for example concerning the positions for the line, I don't know what's
best
for OpenDX, eg separate variables for x, y, z coordinates or one "points"
field. There are similar other basic questions for connections, etc.
So are there examples of a data model for line data available ?
Any pointers to helpful examples/documentation would be greatly appreciated.
Many thanks in advance,
Marc Baaden
--
Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris
mailto:[EMAIL PROTECTED] - http://www.marc-baaden.de
FAX: +49 697912 39550 - Tel: +33 15841 5176 ou +33 609 843217