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

Home » Public Forums » archive » Re: Using self reference in WHERE statement?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Using self reference in WHERE statement? [message #82047] Sat, 10 November 2012 19:23 Go to next message
Balthasar Indermuehle is currently offline  Balthasar Indermuehle
Messages: 22
Registered: August 2012
Junior Member
I think I found one way. Let me know if you find something even neater:

This contains our time stamps:

t=[0, 3, 6, 9, 33, 35, 36, 54, 55, 59, 93, 97, 100]

Create an offset vector:
d=SHIFT(t,1)

PRINT, t(WHERE(ABS(t-d) GE 5))

0 33 54 93

This gives the first element after a time gap.

Cheers

- Balt
Re: Using self reference in WHERE statement? [message #84711 is a reply to message #82047] Sat, 10 November 2012 21:36 Go to previous message
Balthasar Indermuehle is currently offline  Balthasar Indermuehle
Messages: 22
Registered: August 2012
Junior Member
On Sunday, November 11, 2012 2:23:11 PM UTC+11, Balthasar Indermuehle wrote:
> I think I found one way. Let me know if you find something even neater:
>
>
>
> This contains our time stamps:
>
>
>
> t=[0, 3, 6, 9, 33, 35, 36, 54, 55, 59, 93, 97, 100]
>
>
>
> Create an offset vector:
>
> d=SHIFT(t,1)
>
>
>
> PRINT, t(WHERE(ABS(t-d) GE 5))
>
>
>
> 0 33 54 93
>
>
>
> This gives the first element after a time gap.
>
>
>
> Cheers
>
>
>
> - Balt
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Color table
Next Topic: envi_get_data

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

Current Time: Wed Oct 08 19:37:05 PDT 2025

Total time taken to generate the page: 0.00605 seconds