Two answers to the first part. First - data driven interactors. You can
pass a data object into an interactor to set it up. In the accompanying
ddi network, there are two interactors: one that scales the data, and one
that chooses an isovalue from the scaled data. No matter how you set the
first, the slider choosing the isovalue remains scaled from the min to the
max value of the data. Alternatively, you could use Statistics to find the
min and max of the data, then scale the data to a known range, say 0 - 1.
Then you are always choosing isovalues relatively. The stat network does
it this way. No matter how you set the upper data scaler, the slider
always varys from 0 to 1 - the range is set in the slider's attributes
dialog once. This approach has a major downside - you've lost the
relationship of the isovalue to the original data, so it (for example) you
drive a caption with it, it won't reflect the data scaling. You see this
in the example nets: the caption in stats is always between 0 and 1
regardless of the true data range, while in the ddi network, it reflects a
value representative of the true data.
There are a couple differences in the way that these nets behave - try them
out.
I'm not sure about the second question - it depends on how the netCDF data
is imported. If the netCDF variables are imported as separate components
in a Field object, you can use Inquire(... "component names") to create a
list of the com0ponents that are present in the object and do something
appropriate with it.
Greg
(See attached file: stat.net)(See attached file: ddi.net)(See attached
file: stat.cfg)(See attached file: ddi.cfg)
Akua A Nti <[EMAIL PROTECTED]>
Sent by: To:
<[email protected]>
[EMAIL PROTECTED] cc:
son.ibm.com Subject:
[opendx-users] default values in control panels
07/31/03 04:13 PM
Please respond to
opendx-users
Hello everyone,
I would like to know how one goes about setting default values for
interactors in a control panel. I have a particular file that I am
working with, and because I use it most of the time when I am creating
visual programs, I know which values of the various interactors will
ensure that there is data. In this case, I am using a scalar interactor
to change the position of a slice of 3D data that I have created using the
MapToPlane module. However, when I try to import a different file, the
values in the interactors are not necessarily in an appropriate place.
Is there some way to automatically detect, say, a mean point in the data,
and have the interactor start off set to that value, but still have the
user be able to change the value starting from that point?
I also would like to know how to automatically detect the variables in a
netCDF file and use a selection interactor to choose which ones to view.
It would be very good if I could sort the variables into different
selectors (and different paths) based on characteristics of the data.
Thanks in advance for your help.
Akua Nti
stat.net
Description: Binary data
ddi.net
Description: Binary data
stat.cfg
Description: Binary data
ddi.cfg
Description: Binary data
