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

Home » Public Forums » archive » Re: Viewing a plot under bash?
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: Viewing a plot under bash? [message #62799 is a reply to message #62795] Sun, 05 October 2008 15:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
eyuchen@gmail.com writes:

> I am using a binary file which has nothing to do with IDL to generate
> results of simulation.
> After the simulation is done, I would like to view them using IDL.
> However, I am just too
> lazy to key in things like:
> (idl
> readcol, blahblah
> plot, blahblah...)
> each time I run the simulation binary file.
>
> Therefore, I am trying to write a bash script that calls IDL plot
> functions. Here is what I tried:
> <view.sh>
> #!/bin/bash
> idl<<eof
> readcol,'result.dat',format='d,d',a,b
> plot,a,b
> eof
> # <end of view.sh>
>
> It seems that the script is running, *but* I was never able to view my
> data because the
> plot window was closed right after it was generated!
>
> I tried to insert a "stop" after "plot,a,b" and it did not work
> either. IDL returns:
> % Stop encountered: $MAIN$
> and closed the window--exited as usual. (i.e., did not give me the
> opportunity to enter .cont)
>
> Any suggestions?

No, no suggestions. But I will point out this seems like
a hell of a lot of effort to avoid writing a 30 second IDL
program. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Return two arrays
Next Topic: Display radar data?

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

Current Time: Fri Oct 10 10:34:30 PDT 2025

Total time taken to generate the page: 0.40007 seconds