Yes, Extract would be needed. Chris' suggestion is useful when doing an Import of a group with a bunch of named variables, one of which you might want to select for further processing. Since Import always reads at least some data, unfortunately, this can add overhead to setting up a metadata-driver interface (slow at start up or when changing data sets, particularly if the files are large). What I usually do is run some very fast/simple scripts or executables as Import filters that extract names, dynamic ranges, and other metadata from the relevant data sets to populate the interface so as not to read any real data.
Chris Pelkie <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 02/15/2002 07:24:28 AM Please respond to [email protected] Sent by: [EMAIL PROTECTED] To: [email protected] cc: Subject: Re: [opendx-users] Creating a selector list > >1) I'd like to 'query' the geometry data file (which contains the material >assignment by cell) and > generate a list of all the composition numbers that are used. >2) Rather than construct the IntegerList manually, I'd like to use the >information from Step 1 to > automatically create a SelectorList so that I can toggle materials on >or off. Categorize should find all the unique values in a data component. Lloyd already mentioned what to do with them, though you will probably need to Extract them to feed to SelectorList. Another handy trick is to use Inquire to ask for member names (and other stuff) that can also be fed as a list to modules that need a list. You may not need that now, but... Somewhere along the line I wrote a macro called FloatToStringList that iterates over the members of a list and uses Format to convert them then appends them to a new list. You might need something similar since some list inputs don't accept all types of lists and there's no other way I know of to cast float to string. -- Chris Pelkie Scientific Visualization Producer 618 Rhodes Hall Cornell Theory Center Conceptual Reality Presentations, Inc. Cornell University 30 W. Meadow Dr. Ithaca, NY 14853 Ithaca, NY 14850
