|
|
Re: this might be a stupid question [message #48197 is a reply to message #48196] |
Thu, 06 April 2006 15:18   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Just for kicks, I'd change the ORB radius in Scatter_Surface
> and hope you see something with your data. The BIG problem with
> object graphics is that *everything* is possible, including all
> those things that are dumb, stupid, or just plain useless.
> Change it by at least an order of magnitude or so. If you change
> it enough, we might begin to get a clue to what is going on.
Here is an example of what I mean:
PRO main
x = Scale_Vector(Randomu(seed, 50), 35, 70)
y = Scale_Vector(Randomu(seed, 50), -50, 50)
z = Randomu(seed, 50)* 100
scatter_surface, x, y, z
END
If I run this with the default ORB radius of 0.015, the orbs
are too small to be seen. If I change the ORB radius to 0.5,
then I see the data, but the orbs looks like tiny sausages
instead of orbs. Sigh... Go figure. Better ask one of the
iTool experts. They probably have an idea.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: this might be a stupid question [message #48200 is a reply to message #48197] |
Thu, 06 April 2006 15:11   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
ChiChiRuiz@gmail.com writes:
> here's how i code it
>
> pro main
> open/read files
> get x, y, z arrays
> scatter_surface, x, y, z
> end
>
> when i run main.pro, it did not work, but when i go to command prompt
> IDL> scatter_surface
> it works fine
Ah, well, one always hopes it works with the example data. :-)
Now, with *real* data you begin to appreciate the complexities
of object graphics. I'd guess that the radius of the orbs is
going to be tied, somehow, to the data range. If you use
a data range dissimilar to the one I used in the
example, it is possible that the orb shrinks to such a small
size you can't see it, or to such a large size that you are
inside it. In either case, you are probably hosed.
Just for kicks, I'd change the ORB radius in Scatter_Surface
and hope you see something with your data. The BIG problem with
object graphics is that *everything* is possible, including all
those things that are dumb, stupid, or just plain useless.
Change it by at least an order of magnitude or so. If you change
it enough, we might begin to get a clue to what is going on.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|
|
Re: this might be a stupid question [message #48203 is a reply to message #48202] |
Thu, 06 April 2006 14:43   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
ChiChiRuiz@gmail.com writes:
> Hi David, i have to generate a ROI to get the values of each parameter
> from this same pixel.
>
> so i have a general .pro
>
> pro main
>
> open files
> read files
>
> get x, y, z, each is an array with size n
>
> scatter_surface, x, y, z
>
> end
Are you saying that if you call the program like this
that it works?
pro main, x, y, z
open files
read files
get x, y, z, each is an array with size n
end
IDL> main, x, y, z
IDL> scatter_surface, x, y, z
And, how are you drawing the ROI?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: this might be a stupid question [message #48204 is a reply to message #48203] |
Thu, 06 April 2006 14:33   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
ChiChiRuiz@gmail.com writes:
> pro main
>
> open files
> read files
>
> get x, y, z, each is an array with size n
>
> scatter_surface, x, y, z
>
> end
>
> can i call a pro inside a pro??
Uh, I'd have to check, but I *think* so. :-)
Cheers,
David
P.S. Let's just say IDL programs would be pretty
sparse if we couldn't call procedures and functions
from within them!
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|
|
|