ds9-2det.sh
im1=$1
im2=$2
ds9='/Applications/SAOImageDS9.app/Contents/MacOS/ds9'
# fimgbin $im $imR ${rebin}
zoom=1
lm1=0.01
lm2=10
opt1="-zoom to ${zoom} "
geo="-geometry 1718x1122+55+2"
scale="-scale log"
#limit="-scale limits $lm1 $lm2"
# reg="-regions load $reg_file"
#cmap="-cmap b"
cmap="-cmap gray -cmap invert yes"
ps=test1.ps
ds9X="ds9$$"
echo $ds9
opt_i="$cmap $scale $limit"
$ds9 -title $ds9X $opt1 $geo $im1 ${opt_i} $im2 ${opt_i}