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

Home » Public Forums » archive » Re: How can i get the co-ordinates of the peaks in a plot?
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: How can i get the co-ordinates of the peaks in a plot? [message #50333 is a reply to message #50332] Mon, 25 September 2006 02:10 Go to previous messageGo to previous message
Tigran Khanzadyan is currently offline  Tigran Khanzadyan
Messages: 5
Registered: September 2006
Junior Member
zircola wrote:
> I used max function to get the y value but don't know how to get the
> corresponding x value and how to get the xy value of the more than one
> peaks. please help. thanks:)

Hi,

I can quickly answer to your first question:

sizeim=size(image)
szx=sizeim(1)*1.
szy=sizeim(2)*1.
inx=where(image eq max(image))
xv=round((inx/szx-fix(inx/szx))*szx)
xv=xv(0)
yv=fix(inx/szx)
yv=yv(0)

xx=findgen(szx)-xv
yy=findgen(szy)-yv
xx=xx*(image pixel scale)*(-1.) ; for correct RA direction
yy=yy*(image pixel scale)

You can use this coordinates to make a plot with 0 on maximum value.
For more peaks, maybe you can overplot contours and show that way
some of your peaks.

I hope this can solve some of your problems.

Cheers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Closing out of a Window
Next Topic: How can i get the co-ordinates of the peaks in a plot?

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

Current Time: Fri Oct 10 17:36:20 PDT 2025

Total time taken to generate the page: 0.88070 seconds