Re: Interactive mode in IDL [message #49717] |
Thu, 10 August 2006 13:19 |
adisn123
Messages: 44 Registered: July 2006
|
Member |
|
|
thanks. It looks like what I needed..
Wayne Landsman wrote:
>>
>> My program plots several differents things per one image.
>>
>> Let's say I have five original images to work on and want to plot
>> things after some calculation
>>
>> done by the program using each individual image out of five.
>>
>> If I want to do this rather interactively one by one looking at the
>> images that I'm getting,
>
> I'm not certain what you are asking for, but perhaps you just want a
> pause for keyboard input before proceeding to the next image. For
> example, the following code waits for the user to hit any key before
> proceeding (but exits if the user preses 'Q')
>
> ans = ''
> read,'Next Plot [Q to quit]? ',ans
> if strupcase(ans) EQ 'Q' then return
> ;....proceed to the next plot
>
>
> --Wayne
|
|
|
Re: Interactive mode in IDL [message #49726 is a reply to message #49717] |
Thu, 10 August 2006 09:23  |
news.verizon.net
Messages: 47 Registered: August 2003
|
Member |
|
|
>
> My program plots several differents things per one image.
>
> Let's say I have five original images to work on and want to plot
> things after some calculation
>
> done by the program using each individual image out of five.
>
> If I want to do this rather interactively one by one looking at the
> images that I'm getting,
I'm not certain what you are asking for, but perhaps you just want a
pause for keyboard input before proceeding to the next image. For
example, the following code waits for the user to hit any key before
proceeding (but exits if the user preses 'Q')
ans = ''
read,'Next Plot [Q to quit]? ',ans
if strupcase(ans) EQ 'Q' then return
;....proceed to the next plot
--Wayne
|
|
|
Re: Interactive mode in IDL [message #49735 is a reply to message #49726] |
Wed, 09 August 2006 19:20  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
adisn123@yahoo.com writes:
> Hello,
>
> Does any know how to perform an IDL program interactively like IRAF
> interactive mode on?
>
> My program plots several differents things per one image.
>
> Let's say I have five original images to work on and want to plot
> things after some calculation
>
> done by the program using each individual image out of five.
>
> If I want to do this rather interactively one by one looking at the
> images that I'm getting,
>
> do you have any suggestions to do that?
I usually put a breakpoint in your code where interesting things
happen -- either with STOP or BREAKPOINT -- and then single-step
through with the executive command ".SO"
I think you can do something similar with the emacs "electric"
debugging mode.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|