#!/bin/csh -f
# RUN AUTOFOCAS ON A LIST OF CATALOGS USING STANDARD PARAMETERS
if ($#argv == 0 || $1 == ^) then
   caterr <<'EOF'

   Run autofocas on a list of catalogs using standard parameters.
     usage: ccdfocas catalogs
     Arguments:
	catalog - catalogs to be processed
    Output
	Log file with name catalog.log

    Standard parameters for autofocas:
        Nmin  =  7  - minimum number of stars to be found by findstars
        sigma = .1  - maximum (sigma r1)/<r1> for stars in findstars
	size  =  9  - the psf size (<=15) for template
'EOF'
  exit
endif
 
foreach cat ($*)

autofocas $cat 7 .1 9 >& ${cat}.log

end
