David,

That's what I originally did, but then DX displays my grid which should
lie in the x-z plane in the x-y plane, so my original coordinate system
of (x,y,z) got mapped to (x,z,y).  It displays fine and for most purposes
would work, I could construct vectors from the components to match this
permutation, but I'm afraid that I would then be unable to use say the
curl operator since it is inherently handed.  Any way, doing this allows
the x-coordinate to vary fastest and puts things in the x-z plane
correctly.

# Define a set of regular points along the x-axis
object "nx" class gridpositions    201      1      1

# Define a set of regular points along the z-axis
object "nz" class gridpositions      1      1    401

# Construct a product array from this set of points
object 1 class productarray
term "nz"
term "nx"

Thanks,
Tom

On Tue, 20 Jun 2000, David L. Thompson wrote:

>You may also want to know that if you just reverse your deltas, it 
>should fix your problem
>
>origin 0 0
>delta 1 0
>delta 0 1
>
>Now x varies fastest.
>
>David
>
>>Hi,
>>
>>I'll try to keep this short.  In DX the native file format says that the
>>"last index varies fastest".  I have a 2-D grid with x varying fastest and
>>z varying slowest.  So I define positions like so
>>
>>object 1 class gridpositions counts 401 201
>>origin  0  0
>>delta   0  1
>>delta   1  0
>>
>>This displays nicely and all, but DX thinks that the first index is x and
>>the second is y.  So my original grid which is (x,y,z) gets mapped to
>>(x,z,y).  Now for scalars, who cares, but for vectors and more importantly
>>pseudovectors like magnetic fields this is an important point; my
>>coordinate system has just changed from being right-handed to left-handed.
>>
>>Would anyone happen to know a solution for this other than rewriting my
>>original data file to suit DX?
>>
>>Thanks,
>>Tom
>>
>>_________________________________________________________________________
>>Thomas Gardiner
>>[EMAIL PROTECTED]
>>
>>University of Rochester
>>Department of Physics and Astronomy
>>P. O. Box 270171
>>Rochester, NY 14627-0171
>>
>>(716) 275-9625 Office
>>(716) 275-8527 fax
>>__________________________________________________________________________
>>
>>The scientist does not study nature because it is useful; he studies it
>>because he delights in it, and he delights in it because it is beautiful.
>>If nature were not beautiful, it would not be worth knowing, and if nature
>>were not worth knowing, life would not be worth living.- Henri Poincare
>>__________________________________________________________________________
>
>-- 
>.............................................................................
>David L. Thompson                          The University of Montana
>mailto:[EMAIL PROTECTED]                 Computer Science Department
>http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
>                                            Work Phone : (406)257-8530
>

Reply via email to