Re: [opendx-users] display polar coordinates

2005-06-17 Thread Dan Patnaude
Wow! That was so easy. Thanks. I guess I never really think of the  
array indices as 'positions',


Thanks for the help,
Dan
On Jun 17, 2005, at 6:32 AM, Dragos MOROIANU wrote:

After you import the data, you can pass it through a MARK-COMPUTE- 
UNMARK

control, where you can change the coordinates from polar to cartesian:

a
b
[a.x*cos(a.y),a.x*sin(a.y)]

Don't forget to mark the positions before you make the transform.

Dragos

On Thu, Jun 16, 2005 at 03:19:38PM -0400, Dan Patnaude wrote:


Hi-

I have some 2d data where the data is stored in a 1024 square array,
but the positions are not regular. That is, the data was made in a
simulation in polar coordinates (r, theta). I can't figure out how to
tell DX that this is the case. How do I construct a grid with polar
coords and then get DX to display the data in the proper format (i.e.
the grid ought to look like a pie slice, rather than square).

Any ideas would be helpful.

Thanks,
Dan



--



Re: [opendx-users] display polar coordinates

2005-06-17 Thread Bruce McGee
Hi Dan

I am doing some r-theta plots as well.  Would you be willing to share your
data and net files so I can use them as an example (template) for my own
data set.

Thanks


On 6/17/05 7:34 AM, Dan Patnaude [EMAIL PROTECTED] wrote:

 Wow! That was so easy. Thanks. I guess I never really think of the
 array indices as 'positions',
 
 Thanks for the help,
 Dan
 On Jun 17, 2005, at 6:32 AM, Dragos MOROIANU wrote:
 
 After you import the data, you can pass it through a MARK-COMPUTE-
 UNMARK
 control, where you can change the coordinates from polar to cartesian:
 
 a
 b
 [a.x*cos(a.y),a.x*sin(a.y)]
 
 Don't forget to mark the positions before you make the transform.
 
 Dragos
 
 On Thu, Jun 16, 2005 at 03:19:38PM -0400, Dan Patnaude wrote:
 
 Hi-
 
 I have some 2d data where the data is stored in a 1024 square array,
 but the positions are not regular. That is, the data was made in a
 simulation in polar coordinates (r, theta). I can't figure out how to
 tell DX that this is the case. How do I construct a grid with polar
 coords and then get DX to display the data in the proper format (i.e.
 the grid ought to look like a pie slice, rather than square).
 
 Any ideas would be helpful.
 
 Thanks,
 Dan
 
 
 -- 
 
 

Bruce C. W. McGee CD, Ph.D., P.Eng.
McMillan-McGee Corp.
4895-35B Street S.E.
Calgary, Alberta T2B 3M9
Direct: 403.569.5101
Cell: 403.461.7948
email: [EMAIL PROTECTED]