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

Home » Public Forums » archive » Viewing a plot under bash?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Viewing a plot under bash? [message #62800] Sun, 05 October 2008 15:40
eyuchen is currently offline  eyuchen
Messages: 8
Registered: February 2008
Junior Member
Hi all,

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?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Virtual Machine
Next Topic: Degree of Polarization

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

Current Time: Sat Oct 11 04:20:23 PDT 2025

Total time taken to generate the page: 0.88293 seconds