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

Home » Public Forums » archive » IDL procedure and function names
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 procedure and function names [message #89238 is a reply to message #89237] Thu, 07 August 2014 09:31 Go to previous messageGo to previous message
cpaxson is currently offline  cpaxson
Messages: 2
Registered: August 2014
Junior Member
On Thursday, August 7, 2014 11:53:29 AM UTC-4, Paul van Delst wrote:
> On 08/07/14 11:41, cpaxson@cfa.harvard.edu wrote:
>
>> Dear IDL Users,
>
>>
>
>> I would like to print out the name of the procedure or function as
>
>> the code executes. In C I'd add a line referring to argv[0]. Is
>
>> there an equivalent in IDL such as argv or a !System variable?
>
>
>
> You can use the MESSAGE procedure, e.g.
>
>
>
> pro testpro
>
> message, 'Entered...', /informational
>
> ; do stuff
>
> end
>
>
>
> IDL> testpro
>
> % TESTPRO: Entered...
>
> IDL>
>
>
>
> I use this in concert with a debug keyword, e.g.
>
>
>
> pro testpro, debug=debug
>
> if ( keyword_set(debug) ) then $
>
> message, 'Entered...', /informational
>
> ; Do stuff
>
> end
>
>
>
> You can also pass an empty string.
>
>
>
> cheers,
>
>
>
> paulv

Thank you very much paul and phillip
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dirty resampling of irregularly spaced point data with GRID_INPUT
Next Topic: TS_SMOOTH function

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

Current Time: Wed Oct 08 15:56:14 PDT 2025

Total time taken to generate the page: 0.00442 seconds