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

Home » Public Forums » archive » Capturing print command output
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: Capturing print command output [message #63724 is a reply to message #63624] Mon, 17 November 2008 21:27 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Nov 17, 8:28 am, Nicolas <primese...@gmail.com> wrote:
> Hi folks,
>
> I have an interesting problem for you to solve! :)
>
> What I am trying to do is to capture the expressions output by a
> routine containing IDL 'print' commands.
> Of course without modifing the code of this routine (no 'printf').
>
> I have though about the following solutions:
> 1- Make a wrapper of the routine that what to execute
> 2- Make a sort of  'buffer listener' that can restore its content on
> demand
> 3- Temporarily redirect the standard output of the 'print' command
>
> None of them seems to be conclusive. Do you have any other ideas?

If you go for the 'wrapper' approach, you might consider PRINTLOG,
which is a drop-in replacement for PRINT, with logging.

Craig
PRINTLOG found here:
http://cow.physics.wisc.edu/~craigm/idl/io.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: data to image? Please help...
Next Topic: ASTER Data

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

Current Time: Fri Nov 28 19:14:27 PST 2025

Total time taken to generate the page: 1.12247 seconds