#!/bin/csh -f
# ************************************************************************
# *                                                                      *
# *   C-shell program for running 2006a_astro solution.                  *
# *                                                                      *
# *  ### 08-JUL-2006               v1.0 (c)  L. Petrov  08-JUL-2006 ###  *
# *                                                                      *
# ************************************************************************
set log_file = /vlbi/solutions/2006a_astro/2006a_astro.log
# goto cat
if ( -f $log_file ) rm -f $log_file 
set DATE_LONG = `date "+%d-%h-%Y %H:%M:%S" | tr "[a-z]" "[A-Z]"`
echo $DATE_LONG > $log_file
echo "============================================" >> $log_file
#
solve pe /vlbi/solutions/2006a_astro/2006a_astro_xs.cnt >> $log_file
cp $SPE /vlbi/solutions/2006a_astro/2006a_astro_xs.spl
echo "============================================" >> $log_file
#
#@ solve pe /vlbi/solutions/2006a_astro/2006a_astro_x.cnt >> $log_file
#@ cp $SPE /vlbi/solutions/2006a_astro/2006a_astro_x.spl
#@ echo "============================================" >> $log_file
#
solve pe /vlbi/solutions/2006a_astro/2006a_astro_s.cnt >> $log_file
cp $SPE /vlbi/solutions/2006a_astro/2006a_astro_s.spl
echo "============================================" >> $log_file
echo $DATE_LONG >> $log_file
#
cat:
cd /tmp/
getpar /vlbi/solutions/2006a_astro/2006a_astro_xs.spl 2006a_astro_xs
getpar /vlbi/solutions/2006a_astro/2006a_astro_x.spl  2006a_astro_x
getpar /vlbi/solutions/2006a_astro/2006a_astro_s.spl  2006a_astro_s
mv 2006a_astro_xs.sou /vlbi/solutions/2006a_astro/
mv 2006a_astro_x.sou  /vlbi/solutions/2006a_astro/
mv 2006a_astro_s.sou  /vlbi/solutions/2006a_astro/
$Ex/vcs_outcat.e  >> $log_file
echo "============================================" >> $log_file
echo $DATE_LONG >> $log_file
