-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Howdy all,
I am new to OpenDX, but am finding it quite useful. However, I am
finding it difficult to extract certain metadata from my imports (which
may very well stem from my own ignorance of OpenDX).
My problem is this:
I am trying to dynamically extract the number of grids in a certain
dimension dynamically (so I can use the same .net program on different
input data). What I have is effectively a sequence of three-dimensional
data blocks in a single raw file. The length of the sequences can vary.
I generate a .general header file for each raw data file with the
appropriate dimensional data.
Currently, I can extract the size of all dimensions as a vector by
doing:
Import(...) -> Extract("data") -> Inquire("grid counts")
This gives me (I think) an integer vector (e.g., [1024 768 6] (6 frames
of 1024 x 768 data blocks). How can I extract the last dimension value
as a scalar (which I then want to feed into my sequencer)?
I thought about multiplying the resultant vector by a mask (e.g., [0 0
1]) using Compute and then converting the result using Integer(...),
but this seems to be a roundabout way to do what I want. Is there a
better, or at least more direct way to extract a dimensional component
of a vector?
-- Matt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iD8DBQFCaB+9nLpDzL5I7l8RAjm6AJ0fyV8T3FdIQ9MD3hqZdpbRu7WImwCdGEQG
0n0HfrwONTgCPQLIIOTB3ns=
=lr5z
-----END PGP SIGNATURE-----