Re: command line args for pvwave ? [message #10900] |
Fri, 06 February 1998 00:00 |
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  |
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
|
|
|