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

Home » Public Forums » archive » where help
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
where help [message #7998] Mon, 27 January 1997 00:00 Go to previous message
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
How do I get the x,y coords from the result of where?

Here's what I did:
IDL> t = where(slice eq max(slice))
IDL> print,slice(t)
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28 28 28 28 28 28 28
28 28 28
IDL> print,size(slice)
2 256 256 2 65536
IDL> y = t/255
IDL> x = t - (y*255)
IDL> print,slice(x,y)
0 0 0 0 0 0 10 10 10
11 9 10 0 10 10 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0

I also tried

IDL> print,slice(y,x)
0 0 0 0 0 0 0 0 0
0 0 0 0 12 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 10 11 19
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 10 0 0
0 10 0

IDL> print,max(slice)
28

What is going on??? Any help would be GREATLY appreciated!

Phil
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://scuttle.chmcc.org/~williams/
/*********************************************************** ********/
[Message index]
 
Read Message
Read Message
Previous Topic: Polar Contour lavel problem
Next Topic: Puzzled by colour tables...

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

Current Time: Wed Oct 08 17:34:54 PDT 2025

Total time taken to generate the page: 0.00384 seconds