#!/bin/csh -f
# ************************************************************************
# *                                                                      *
# *   Contro9l file for reweighting X/S VLBA experiments.                *
# *                                                                      *
# * ### 02-JUL-2007  rewei_vlba.csh v1.0 (c)  L. Petrov  02-JUL-2007 ### *
# *                                                                      *
# ************************************************************************
set SOLVE_INIT = P1
set log_file   = $SPOOL_DIR/p1.log
set sol_dir    = $Vs/2007b_astro
#
solve_reset $SOLVE_INIT 40000 30000      >>&! $log_file
#
if ( -f $log_file ) rm $log_file   
$Tl/sol $SOLVE_INIT  $sol_dir/2007b_astro_elim_s_vlba.cnt >>&! $log_file
mv $log_file $Vs/2007b_astro/2007b_astro_rewei_vlba_s.log
cp $SP1      $Vs/2007b_astro/2007b_astro_rewei_vlba_s.spl
#
if ( -f $log_file ) rm $log_file   
$Tl/sol $SOLVE_INIT  $sol_dir/2007b_astro_elim_x_vlba.cnt  >>&! $log_file
mv $log_file $Vs/2007b_astro/2007b_astro_rewei_vlba_x.log
cp $SP1      $Vs/2007b_astro/2007b_astro_rewei_vlba_x.spl
#
if ( -f $log_file ) rm $log_file   
$Tl/sol $SOLVE_INIT  $sol_dir/2007b_astro_elim_xs_vlba.cnt >>&! $log_file
mv $log_file $Vs/2007b_astro/2007b_astro_rewei_vlba_xs.log
cp $SP1      $Vs/2007b_astro/2007b_astro_rewei_vlba_xs.spl
