Todd You have not imported a group but a single Field, so you can not use the Select module after Import. Your data is probably importing correctly as currently described and you should try the Print (options="rd") to display how the data are stored within the DX data model. You will see a single Field with 3 components (data, positions, box). The data is just the atom labels.
I am still wondering what is in the 32 line header that you are ignoring. I am guessing it contains the atom size, bond length, etc. that you really want to display. Jeff On Tue, 10 Apr 2001, Todd McCaskey wrote: > Hello... > > Im still working on my import and I have not been able to get it to work yet. > > When I execute my net file, it halts on Select and gives and error message > saying "Bad parameter: input must be a group or list" > > What is wrong with my net file or general file that causes this error? How > can I > correct it? Does not the Import place the data in an vector list so that > select > may then choose which field to use? > > I would like look at my data setup with the "dx -prompter" but I cannot do so > beacause when I attempt to run it, dx does not load and gives me segmentation > fault error. That is another issue to be resolved at another time that I am > not > familiar with. > > Back to my problem at hand, here is my setup: > > My net file is as follows: > >Import -> Select -> Autocolor -> AutoGlyph -> Collect -> Image > > My general file is as follows: > >file = atom.data > >points = 60 > >format = ascii > >interleaving = field > >header = lines 32 > >field = label, locations > >structure = string[2], 3-vector > >type = string, float > > > >end > > My data file is as follows: > >32 lines header > >Xe 131.3000 2.000 0.0 > >C -144.861328357310 -138.510111919908 57.7522102060491 > > >C -120.450791461814 20.2810469146303 77.8698200819416 > > > > Regards, > Todd > > >X-Authentication-Warning: opendx.watson.ibm.com: majordom set sender to > [EMAIL PROTECTED] using -f > >Date: Wed, 4 Apr 2001 16:51:21 -0600 (MDT) > >From: Jeff Braun <[EMAIL PROTECTED]> > >To: [email protected] > >Subject: Re: [opendx-users] Correction RE: reading data with labels > >MIME-Version: 1.0 > > > >Todd > > > >Have you made any progress with the import? > > > >I am not sure where the additional data (size, etc.) is stored in your > >data file, all I see is label, locations. Is the size and bond lengths > >stored in the header? > > > >For the data file as you described, the Field list on the right side of > >the data prompter should contain two fields - > > > >label - type string, string size 2 > >locations - type float, structure 3-vector > > > >This will import the labels with the positions component. > > > >The .general file should look something like: > > > >file = atom.data > >points = 60 > >format = ascii > >interleaving = field > >header = lines 32 > >field = label, locations > >structure = string[2], 3-vector > >type = string, float > > > >end > > > >You can cut and paste the above and then open it in the data prompter with > >the File->Select Data File to see what I think the data prompter should > >look like. > > > >Jeff > > > > > > > >On Tue, 3 Apr 2001, Todd McCaskey wrote: > > > >> A correction on my previous email... > >> > >> I meant to ask "How can I read the coordinate positions from this format?" > >> > >> Then once I have these coordianates, how can I display EACH ataom in > >> 3-space > >> with appropriate data (i.e. size, label, bond lengths, etc) > >> > >> > >> Regards, > >> Todd > >> > >> > >> > >> Prev. Mesg. > >> ----------------------------------------------------------------------------- > >> ----------------------------------------------------------------------------- > >> Hello All, > >> > >> I'm relatively new to DX and having difficulty creating a general file and > >> interpreting the data. > >> > >> I have a data file with 32 lines of header; on the 33rd line the data > >> starts > in > >> this fashion for 60 atoms: > >> > >> Xe X1 Y1 Z1 > >> C X2 Y2 Z2 > >> Si X3 Y3 Z3 > >> ... > >> ... > >> > >> How can I read this data so that when I extract the coordinates? Once I > >> have > >> those coordinates, how can I display that atom in 3-space with the > appropriate > >> data relative the to specific atom (i.e. size, label, etc)? > >> > >> Regards, > >> Todd > >> > >> > >> ---------------------- > >> Todd McCaskey > >> [EMAIL PROTECTED] > >> Quantum Theory Project > >> University of Florida > >> Gainesville, FL 32612 > >> ---------------------- > >> > >> > ------------------------------------------------------------------------------- > >> > ------------------------------------------------------------------------------- > >> > >> > > > >---------------------------------------------------------------------- > >Jeff Braun Geophysics Dept. > >mailto: [EMAIL PROTECTED] Montana Tech > >(406) 496-4206 1300 W. Park St. > > Butte, MT 59701 > > > > > > ---------------------------------------------------------------------- Jeff Braun Geophysics Dept. mailto: [EMAIL PROTECTED] Montana Tech (406) 496-4206 1300 W. Park St. Butte, MT 59701
