#! /bin/csh -f
# Last edited on 2003-11-20 22:58:40 by stolfi

set usage = "$0 NCURVES RUN BAND TAG MINCURV MINLENGTH"

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

set nCurves = "$1"; shift;
set run = "$1"; shift;
set band = "$1"; shift;
set tag = "$1"; shift;
set minCurv = "$1"; shift
set minLength = "$1"; shift;

echo "run-PZMapStraightSegs run = ${run} band = ${band} tag = ${tag}"
source RUN-${run}/f${band}.parms
echo "step = ${step}"
echo "minCurv = ${minCurv}"
echo "minLength = ${minLength}"

echo "=== begin PZGetStraightSegs ==="

set output = "RUN-${run}/f${band}-${tag}"

nice -n 19 \
  PZGetStraightSegs \
    -chainDir . -chainPrefix f \
    -band ${band} -step ${step} \
    -nCurves ${nCurves} \
    -output ${output} \
    -minLength ${minLength} \
    -minCurvature ${minCurv} \
    -blurFactor 2.0 \
    -printSegs 100

echo "=== end PZGetStraightSegs ==="


