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

Home » Public Forums » archive » what is the highest subscript in the array?!?
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: what is the highest subscript in the array?!? [message #70847 is a reply to message #70774] Fri, 07 May 2010 19:09 Go to previous messageGo to previous message
munka is currently offline  munka
Messages: 36
Registered: December 2009
Member
On May 7, 2:05 pm, pp <pp.pente...@gmail.com> wrote:
>
> Could do something like
>
> nflux=n_elements(flux)
> local_maxima=where((flux[1:nflux-2] ge flux[2:nflux-1]) and
> (flux[1:nflux-2] ge flux[0:nflux-3]))+1
>
> That would give the indexes of all points that are local maxima,
> defined as those larger than or equal to their immediate neighbors.
> Then max() or histogram() may be used to pick the highest maxima,
> depending on what is wanted.


Oh yeah! Is there an easy way to increase the "window" range from
just the points next to the point in question to some larger range?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting 3D array as a 'cloud'
Next Topic: Re: Begin-End matching in IDLDE?

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

Current Time: Wed Oct 08 14:00:05 PDT 2025

Total time taken to generate the page: 0.00258 seconds