This cshell gets the hwp angles

 

 

#!/bin/tcsh



set prefix='Carina'
set bindir='/sp2003/SPARO/bin'
set cal='/sp2003/SPARO/calibs'


#take care of integ
      
foreach file (*)
     if (($file =~ [0]*)&&($file !~ *[.]*)) then     
           echo $file
           $bindir/integ -i $file -o $file.out -dc -r $cal/rgm
     endif
end

gawk '$1=/U/ && $2=/=/ {print $16}' 03*.out > hwp
rm 03*.out