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

Home » Public Forums » archive » Re: string animations etc.
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: string animations etc. [message #40965] Mon, 20 September 2004 15:03 Go to previous message
MKatz843 is currently offline  MKatz843
Messages: 98
Registered: March 2002
Member
"Richard G. French" <rfrench@wellesley.edu> wrote in message news:<BD73940A.3502%rfrench@wellesley.edu>...
> Neat! But 'defined()' does not seem to be a built-in IDL function (I cobbled
> one together to get this to run), and I think the line should read
>
> If not defined(name0) then name0=''
>
Sorry about that! Here are two handy functions I use. The first is
defined() and the second is defined_and_equals(). The second one uses
the first one, and it lets you catch two birds with one net. Trust me,
it comes in handy sometimes.

;+
; -------------------------
; 12/04/94
; IDL function: defined.pro
; For a given input variable, this function returns
; 1b if the variable is defined
; 0b if the variable is undefined
; -------------------------
;-

function defined, a
return, (size(a, /type) NE 0)
end


;+
;-----------------------------
; 12/11/03
; IDL function: defined_and_equals.pro
;
; This boolean function does two things.
; The doesn't know if the argument is defined, but want to know:
; if it IS defined, then does it equal arg2?
;-----------------------------
;-

function defined_and_equals, a, b
return, defined(a) ? (a EQ b) : 0b
end



M. Katz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Irregularly Lat Lon Grid: Displaying Land Types
Next Topic: xinteranimate and string

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

Current Time: Fri Oct 10 09:29:19 PDT 2025

Total time taken to generate the page: 0.00200 seconds