Making a 2D Array from 3 columns [message #35883] |
Thu, 24 July 2003 14:32 |
touser2001
Messages: 8 Registered: July 2003
|
Junior Member |
|
|
Hello everyone, i just came to this newsgroup and already have two
posts! Shows how much I love IDL!!
Basically: Many programs such as contour programs or just 3-d
graphing programs need a 2-array as an input.
I do not have a 2-d array as input.
What I do have is three 1d arrays. One of these has the x positions
of several objects. Another has y positions of the same objects. The
last array has the density or flux or something else of these objects.
Note, only in the places of the xy field where there is an object do I
have data. I have nothing for the other regions of the xy field.
This to say that I do not have a continuous function z=f(x,y), mine is
discrete....
However, I would like to have contour plots of the density or flux, so
I would need to make the famous 2-d array the programs use as input.
I would appreciate any ideas since I have no clue how to do this.
Thank you!
Bruno
Astronomy PhD Student
University of Florida
|
|
|