comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Question About Scatter Surface Pro (www.dfanning.com)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Question About Scatter Surface Pro (www.dfanning.com) [message #48706] Wed, 17 May 2006 07:24 Go to next message
j.vanknippenberg is currently offline  j.vanknippenberg
Messages: 3
Registered: May 2006
Junior Member
Hi everyone :)

I want to use this program to view roughly 100 regularly spaced points,
and their properties. The problem I seem to have is that the ORBS are
not spherical, but instead kind of ellipsoid. This is because the data
ranges for X, Y and Z are not comparable? What I mean is that the
xrange goes from 0-100, while the zrange from 0-0.01 for example. Any
idea on how to fix this? ( Im relatively new to IDL ;) )

The program can be found here:
http://www.dfanning.com/tip_examples/scatter_surface.pro

And I think the orbs are created in this section:

; Create the symbols for each point. This is almost certainly
; not the most efficient way if you have lots of points, but
; it works well for a reasonable number.

npts = N_Elements(x)
orbs=ObjArr(npts)
line=ObjArr(npts)
FOR j=0,npts-1 DO BEGIN
orbs[j] = Obj_New('ORB', Color=[r[zcolors[j]], g[zcolors[j]],
b[zcolors[j]]], $
Style=2, Radius=0.015, Pos=[x[j],y[j],z[j]])
line[j] = Obj_New('IDLgrPolyLine', [x[j], x[j]], [y[j], y[j]],
[min(z), z[j]], $
Color=[r[zcolors[j]], g[zcolors[j]], b[zcolors[j]]])
thisModel->Add, orbs[j]
thisModel->Add, line[j]
ENDFOR

Also, my data consists of 3 different sets. I would like to have 1
color for each set, but ofcourse different when compared to the other
2. Any hints on how to proceed on this?

Thanks in advance! :)

J.vanknippenberg
Re: Question About Scatter Surface Pro (www.dfanning.com) [message #48774 is a reply to message #48706] Thu, 18 May 2006 09:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Well, clearly, this explanation of what is going on
> is as foggy as my understanding of the process, but
> you know what I mean. :-)

Oh, geez, hang on....

Now I can't even get my nifty example program to do
the right thing. Please forget this interruption and
go back to the interesting Mac problem going on this
morning. I'll get back to you when I figure it out again. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Question About Scatter Surface Pro (www.dfanning.com) [message #48775 is a reply to message #48706] Thu, 18 May 2006 09:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I have learned in discussions this morning that I can avoid
> this problem if I *don't* use the [XYZ]COORD_CONV keywords with
> the orbs, but simply position them with the DATA keyword *while*
> scaling and translating them. Huh!?

Well, clearly, this explanation of what is going on
is as foggy as my understanding of the process, but
you know what I mean. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Question About Scatter Surface Pro (www.dfanning.com)
Next Topic: IDL command for directory files listing

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:08:41 PDT 2025

Total time taken to generate the page: 0.00586 seconds