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 #50321] Mon, 25 September 2006 13:29 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior 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:)

Take the derivative (use DERIV) of your curve to locate all the peaks (where the
derivative crosses the zero line. Then, as Mike Braedley's post detailed, use the MAX
function with the optional subscript to get the x value at each zero crossing. You *may*
have to interpolate if the x-axis resolution of your data is too low, but I'd be leery of
doing that.

There's probably an easier way if you use HISTOGRAM. :o)

cheers,

paulv

--
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
Ph: (301)763-8000 x7748
Fax:(301)763-8545
[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 10:52:06 PDT 2025

Total time taken to generate the page: 0.64168 seconds