#! /bin/csh -fe
# Last edited on 1999-09-14 20:50:28 by hcgl

set usage = "$0 RUN BAND CURVEA CURVEB"

echo "$0 $*"

set run = $1; shift;
set band = $1; shift;
set curvea = $1; shift;
set curveb = $1; shift;

if ( $#argv != 0 ) then
  echo "usage: ${usage}"; exit 1
endif


set lmin = "$band"
echo '=== '${curvea}' x '${curveb}' =================='
set cvnamea  = "${curvea}/f${lmin}"
set cvnameb  = "${curveb}/f${lmin}"
set matname = "RUN-$1/${curvea}x${curveb}-f${lmin}"
/bin/sh -c "/bin/rm -f ${matname}.pgm; exit 0"
nice /home/lac1/hcgl/modula/PZMatchImage/SOLgnu/PZMatchImage \
  -xChain ${cvnamea} \
  -yChain ${cvnameb} \
  -outFile ${matname}

xv ${matname}.pgm 

