#!/bin/csh

foreach i (g1*.fts)

  set a=`echo $i:r`
  echo "a is $a "

  sky $i box=1 bin=4
  stars $i sky=sky skysig=skysig minsig=10 minfwhm=1 maxfwhm=6 > $a.dat

end

exit 0
