[EMAIL PROTECTED]:
 |I have a dataset consisting of 128 slices (in z-direction) each
 |consisting of 128 lines (in y-direction) each consisting of
 |128 points (in x-direction).
...
 |How can I display (or fill in a *.general or *.dx) this data.
 |I've tried the data prompter but no luck so far.

Once you have a few .general files lying around, you may find it faster to
just copy and modify them.  But here, try this:

> dx -prompter

   Key in "datafile" for Data file name.
   Select "Grid or Scattered file (General Array Format)"
   Leave the regular grid icon selected, number of variables set to 1, 
         Single time step selected, and Block Data organization selected.
   Click Describe data.
   Key in Grid size of 128x128x128
   Change Data format to Binary (IEEE).
   Leave Data order set to Row.
   Change origins/deltas if your voxels aren't square.
   Change Type to "unsigned byte".
   Click Modify.
   Now, File->Save As... datafile.general

You should end up with something like this:

   > cat datafile.general 
   file = datafile
   grid = 128 x 128 x 128
   format = msb ieee
   interleaving = record
   majority = row
   field = field0
   structure = scalar
   type = unsigned byte
   dependency = positions
   positions = regular, regular, regular, 0, 1, 0, 1, 0, 1

   end

Then just Import("datafile.general")->AutoGrayScale->Image.  Should you
just want specific slices, pipe Import into Slice.

Randy

-- 
Randall Hopper
[EMAIL PROTECTED]

Reply via email to