Hi Brendan, On Tue, Jul 15, 2003, Brendan M Johnson wrote: > I have a working DX program the way I want it visualizing the data from my > simulation, however my simulations data is sparse and is on a 200x200x200 > grid. This makes the data files 16megabytes of mostly zeros because I just > write the value at that point in the grid so there is a one to one > correspondence. So I was looking to cut down on the size of the output > files by changing the output format. I changed it to > > x y z value > x y z value .. > > This has made my data files much smaller but I'm having a hard time getting > this inputted to OpenDX. I would like to be just a change to the dx files > but I don't see how to tell OpenDX that the 3 int vector is the position > and following scalar is the value at that position. When I tried importing > it as scattered point data it plotted everything even the x y z as data. > Now this is ofcourse simple and should be able to be done with ease but I > don't see it and the documentation I've been reading talks alot about skew > grids that are one to one.
You need to tell the data import module to use position-dependent input values, which will do exactly what you want. Here's a very simple .general file that gives you the idea (this is what would be saved after using the data import module to create it)... file = sample.general points = 300 format = ascii interleaving = record-vector field = field0 structure = 3-vector type = float dependency = positions positions = regular, 0, 1 end Now, there are many modifications that can be made to this to improve its portability, such as encapsulating the number of points as a header in your data file, but that's for another day... Hope this helps, Daniel -- Daniel A. Freedman <[EMAIL PROTECTED]>, Graduate Fellow Electronic Structure Calculations, LASSP, Cornell University Free University Project: http://www.freeuniversityproject.org Help build an accredited open-admission, free-tuition online university!
