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

Home » Public Forums » archive » How to obtain the name of the current routine?
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: How to obtain the name of the current routine? [message #93437 is a reply to message #93420] Thu, 14 July 2016 20:59 Go to previous message
zacharyanorman is currently offline  zacharyanorman
Messages: 17
Registered: July 2015
Junior Member
The easiest way would be to use the scope_traceback function like this:

pro test
scope = scope_traceback(/structure)

print, scope, /implied_print
end

The last element of the scope variable will contain information regarding the routine you are in. I use scope_traceback to determine the location of my functions or procedures that are being executed. Here is a link to the docs:

http://www.harrisgeospatial.com/docs/SCOPE_TRACEBACK.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Weighted standard deviation in IDL
Next Topic: Plotting time as x-axis

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

Current Time: Wed Oct 08 11:41:26 PDT 2025

Total time taken to generate the page: 0.00357 seconds