Re: [opendx-users] Choosing the data array

2000-09-08 Thread GRENON Richard
Thanks everybody for your help.

In fact no attribute clause was defined in my data file, and it was
working only with the array pointed to by the data field component.
Now I have put an attribute dep clause for each data array and Mark
is working as expected.

Best regards

--
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 BP 72, 92322 CHATILLON CEDEX - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:[EMAIL PROTECTED]
 http://www.onera.fr





[opendx-users] Choosing the data array

2000-09-07 Thread GRENON Richard
Hello everybody,

 I am now able to build a net and to get pretty pictures of my own
datas, but I have still some problems in understanting the DX data
structure and the way to choose from a field the data array to be used
for coloring an object. Any help would be greatly appreciated.

 My datas are typically pressure at the surface of on aircraft made of
several 2D surface grids. I have now an interface writing my own datas
into the native DX format (Many thanks to Trevor Wood) and a very simple
net with import-color-shade-image and some additionnal modules to
build the symmetrical part of the aircraft, use a personal colormap, add
a colorbar and bound the datas to some desired min and max values.

The DX data file defines a group object containing a number of fields.
Each field is built from some arrays previously defined in the data file
and has the following structure :

object n class field
  component position value npos
  component connection value ncon
  component data value narray1
  component vitesses value nvect
  component Kp value narray1
  component Pi/Pi0 value narray2

 The data component and the Kp component are pointing on the same
narray1 array for Static Pressure. The Pi/Pi0 component is pointing
on the narray2 array for Total Pressure. My net gives pictures colored
from the Kp component, but when I add the Mark module between
Import and Color to change the default data array for the Pi/Pi0
component, the Color modules complains :

Color : Bad parameter, missing data dependent attribute

But the data array seems to be the expected one : a Describe module or
the data driven Colormap module behind Mark both show the expected
data range for the Pi/Pi0 component, but I can't get a picture of the
aircraft. The net works again if I change for Kp in the Mark module.

My questions are :
-is the data component always needed in a field definition or can we
have only arrays with user defined names ?
-is it possible to import the desired array in a field without using
Mark to build the data flow ?
-if Mark is the only way to import the desired array, what is missing
in my net or in my data file ?

Thanks in advance for your help.

--
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 BP 72, 92322 CHATILLON CEDEX - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:[EMAIL PROTECTED]
 http://www.onera.fr





Re: [opendx-users] Choosing the data array

2000-09-07 Thread Chris Pelkie


 The data component and the Kp component are pointing on the same
narray1 array for Static Pressure. The Pi/Pi0 component is pointing
on the narray2 array for Total Pressure. My net gives pictures colored
from the Kp component, but when I add the Mark module between
Import and Color to change the default data array for the Pi/Pi0
component, the Color modules complains :

Color : Bad parameter, missing data dependent attribute




Each object that is going to be used as a data component must have a data
dep clause defined for it. You probably left one out.

something like:

object blah blah
numbers (or file pointer)
attribute dep string positions

Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]



Re: [opendx-users] Choosing the data array

2000-09-07 Thread David Thompson
In your native dx file, you need to be sure to add a dep attribute 
for the other components. For the 'data' component, you must have put 
the following:


attribute dep string positions

You must add this same line to your other components as well. Then 
your Mark will work just as you expect.


David


Hello everybody,

 I am now able to build a net and to get pretty pictures of my own
datas, but I have still some problems in understanting the DX data
structure and the way to choose from a field the data array to be used
for coloring an object. Any help would be greatly appreciated.

 My datas are typically pressure at the surface of on aircraft made of
several 2D surface grids. I have now an interface writing my own datas
into the native DX format (Many thanks to Trevor Wood) and a very simple
net with import-color-shade-image and some additionnal modules to
build the symmetrical part of the aircraft, use a personal colormap, add
a colorbar and bound the datas to some desired min and max values.

The DX data file defines a group object containing a number of fields.
Each field is built from some arrays previously defined in the data file
and has the following structure :

object n class field
  component position value npos
  component connection value ncon
  component data value narray1
  component vitesses value nvect
  component Kp value narray1
  component Pi/Pi0 value narray2

 The data component and the Kp component are pointing on the same
narray1 array for Static Pressure. The Pi/Pi0 component is pointing
on the narray2 array for Total Pressure. My net gives pictures colored
from the Kp component, but when I add the Mark module between
Import and Color to change the default data array for the Pi/Pi0
component, the Color modules complains :

Color : Bad parameter, missing data dependent attribute

But the data array seems to be the expected one : a Describe module or
the data driven Colormap module behind Mark both show the expected
data range for the Pi/Pi0 component, but I can't get a picture of the
aircraft. The net works again if I change for Kp in the Mark module.

My questions are :
-is the data component always needed in a field definition or can we
have only arrays with user defined names ?
-is it possible to import the desired array in a field without using
Mark to build the data flow ?
-if Mark is the only way to import the desired array, what is missing
in my net or in my data file ?

Thanks in advance for your help.

--
 Richard GRENON
 ONERA
 Departement d'Aerodynamique Appliquee - DAAP/ACI
 BP 72, 92322 CHATILLON CEDEX - FRANCE
 phone : +33 1 46 73 42 17
 fax   : +33 1 46 73 41 46
 mailto:[EMAIL PROTECTED]
 http://www.onera.fr


--
.
David L. Thompson  The University of Montana
mailto:[EMAIL PROTECTED] Computer Science Department
http://www.cs.umt.edu/u/dthompsn   Missoula, MT  59812
   Work Phone : (406)257-8530