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

Home » Public Forums » archive » Re: command line args for pvwave ?
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
Re: command line args for pvwave ? [message #10900] Fri, 06 February 1998 00:00
nospam is currently offline  nospam
Messages: 21
Registered: November 1997
Junior Member
In article <34DB2AB8.46E8@rosa.mpin-koeln.mpg.de> Alex Schuster <alex@rosa.mpin-koeln.mpg.de> writes:

> A workaround would be to buiold a script which puts the arguments in
> some file and then calls wave, and then the inputs are read from there.
> I always wanted to write something like this, but I just haven't had the
> time yet.

I've had great success with perl scripts that run IDL and issue
commands to it via a pipe. I'm sure the same sort of thing would
work with PVWAVE. Something like:

open(IDL, "|/usr/local/rsi/bin/idl") || die;
print IDL ".compile procedure1";
print IDL "var1 = 2.4";

foreach(@data_files){
print IDL "procedure1 '$_'";
...
}

--
Scott Stuart
stuart at ll mit edu
Re: command line args for pvwave ? [message #10902 is a reply to message #10900] Fri, 06 February 1998 00:00 Go to previous message
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
Andy Standley wrote:

> I use pvwave to create plots etc for satellite images. Sometimes I need
> to process many images and produce the same style of plot many times
> just changing the input filename and annotation strings. Is there a way
> to call pvwave with command-like args i.e.
>
> wave run_my_prog name1 title1
> wave run_my_prog name2 title2

I don't think so. 'wave run_my_prog' is equivalent to '@run_my_prog' at
the pvwave prompt, but I don't believe there is a way to get the other
parameters.
A workaround would be to buiold a script which puts the arguments in
some file and then calls wave, and then the inputs are read from there.
I always wanted to write something like this, but I just haven't had the
time yet.

Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Q: debuggging widget applications in IDL 5
Next Topic: IDL 5.0 problems with TrueColor under VMS

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

Current Time: Wed Oct 08 19:12:24 PDT 2025

Total time taken to generate the page: 0.00871 seconds