-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm having a real problem with OpenDX's handling of positions vs. connections in n-dimensional data when there is effectively only 1 sample point in one or more of the dimensions.

For example, say I have the following data.general file:

file = data.raw
grid = 128 x 512 x 8 x 1
format = msb ieee
interleaving = record
majority = column
field = intensity
structure = scalar
type = float
dependency = positions
positions = regular, regular, regular, regular, 0, 1, 0, 1, 0, 1, 0, 1
end

Note the grid size of the 4th dimension is 1. After importing this data, when I try to take a slice to isolate dimension 1-3, dx assumes that the 4th dimension doesn't exist. I get the following error:

ERROR: Slice: Bad parameter: dimension is 3, connections for input have only dimension 0-2

However, if I use the input data as if it only had 3 dimensions (effectively ignoring the 4th), and try to take a slice to eliminate dimension 3, Slice complains that the data is invalid:

ERROR: Slice: Invalid data: number of connection dimensions (3) not equal to position dimensions (4)

How do I get around this when dealing with data which potentially has a width of only 1 in one of the dimensions? In other words, how do I convince OpenDX that my input data has 4 connection dimensions, or (alternatively) only 3 position dimensions in the case of the .general file above.

I'd like to avoid modifying my .general file to chop off the 4th dimension, as I am trying to run the same program on many different sets of data which have widths of >= 1 in dimension 4. It is not practical to create separate programs for each case.

Any help is greatly appreciated.

        -- Matt

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCjQYanLpDzL5I7l8RAtWBAJ4ps8bwwBilCY+RJ61oP7QCkR+PawCcCcgs
24WW1i716Sa4chXcuubIIYc=
=CSa3
-----END PGP SIGNATURE-----

Reply via email to