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

Home » Public Forums » archive » Need Some Advice on Seperating Out Some Data
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Need Some Advice on Seperating Out Some Data [message #49737 is a reply to message #49667] Wed, 09 August 2006 15:17 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Wed, 09 Aug 2006 13:13:12 -0700, rdellsy wrote:

> Thanks for that. I took it, and played around with it a bit to get it
> to work. [Errors I found were: x and y don't concatinate in the line
> 'array=transpose([[x],[y]])' and I found I had to comment away the
> /ISOTROPIC in the plotting.) Unfortunately, it seems that cluster
> seperates on a purely 1 dimensional basis. I tried discarding the
> histogram related code in favor of a much simpler system in case that
> was the problem, and it still didn't work. If you look at the data set
> I provided, the problem should be self evident.

Probably your x,y are column vectors. I can't parse that data set;
please repost in plain ASCII. I'm not sure why you say it works
1-dimensionally. Did you try the example as given with the fake cluster
data?

> Incidentally, I replaced everything from
> h=histogram(c,reverse_indices=ri) down to the second to last line with:
> --
> plot,x,y,psym=2
> bmax=max(array[0,*],maxsubsc)
> goodc=c[maxsubsc]
> keep=where(c[*] eq goodc)
> --
> I feel that my code may be a tad more efficient, though I don't know
> how efficient the WHERE command is.

HISTOGRAM is more efficient than WHERE, but then again if it's not slowing
you down, it's a bit harder to parse, and you're only searching on a few
cluster index values. You don't need c[*] above: that just slows things
down unnecessarily.

> Anywho, I'm looking CLUSTER_TREE right now, which shows some more
> promise. If I understand it correctly, it works using distance appart,
> not coordinates which is a bit more useful, I think, for my problem.
> I'm just not sure how I can take the output and turn it into a set of
> clusters.

I think CLUSTER does similar, it just doesn't build a "tree" of
cluster membership.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: functions to access ETOPO2 or other bathymetric data sets?
Next Topic: IDL Image Processing

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

Current Time: Fri Oct 10 00:48:36 PDT 2025

Total time taken to generate the page: 0.16011 seconds