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

Home » Public Forums » archive » Re: IDL-way to use WHERE result as subscripting indices without having to do IF count
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: IDL-way to use WHERE result as subscripting indices without having to do IF count [message #76183 is a reply to message #76180] Fri, 20 May 2011 06:27 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Or, if in IDL 8, set the NULL keyword to the Where
> function:
>
> IDL> a=[1,2]
> IDL> help, where(a lt 0)
> <Expression> LONG = -1
> IDL> help, where(a lt 0, /null)
> <Expression> UNDEFINED = !NULL
> IDL> c=a[where(a lt 0, /NULL)]

By the way, if you are writing code that there
is any chance someone else might use, you have
to wait at least two years or two major releases
of IDL, whichever is longer, before you can
use any new feature in a program.

If you do it too soon, your life will become
a nightmare of support issues. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: H5F_OPEN/H5F_CLOSE apparent memory leak
Next Topic: A Sign You're Getting Old

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

Current Time: Fri Oct 10 04:47:38 PDT 2025

Total time taken to generate the page: 0.55978 seconds