#!/bin/csh -f
# ************************************************************************
# *                                                                      *
# *   Contro9l file for reweighting X/S VLBA experiments.                *
# *                                                                      *
# * ### 02-JUL-2007  elim_vlba.csh  v1.0 (c)  L. Petrov  05-JUL-2007 ### *
# *                                                                      *
# ************************************************************************
set SOLVE_INIT = P1
set log_file   = $SPOOL_DIR/p1.log
set sol_dir    = /vlbi/solutions/2007b_astro
if ( -f $log_file ) rm $log_file   
solve_reset $SOLVE_INIT 40000 30000      >>&! $log_file
#
set     wei_file        = $sol_dir/2007b_astro_vlba_s.wei 
if ( -f $wei_file ) rm -f $sol_dir/2007b_astro_vlba_s.wei 
$Tl/sol $SOLVE_INIT  $sol_dir/2007b_astro_elim_s_vlba.cnt  >>&! $log_file
cp $SP1       $sol_dir/elim_s_vlba.spl
mv $log_file  $sol_dir/elim_s_vlba.log
#
set     wei_file        = $sol_dir/2007b_astro_vlba_x.wei 
if ( -f $wei_file ) rm -f $sol_dir/2007b_astro_vlba_x.wei 
$Tl/sol $SOLVE_INIT  $sol_dir/2007b_astro_elim_x_vlba.cnt  >>&! $log_file
cp $SP1       $sol_dir/elim_x_vlba.spl
mv $log_file  $sol_dir/elim_x_vlba.log
#
set     wei_file        = $sol_dir/2007b_astro_vlba_xs.wei 
if ( -f $wei_file ) rm -f $sol_dir/2007b_astro_vlba_xs.wei 
$Tl/sol $SOLVE_INIT  $sol_dir/2007b_astro_elim_xs_vlba.cnt >>&! $log_file
cp $SP1       $sol_dir/elim_xs_vlba.spl
mv $log_file  $sol_dir/elim_xs_vlba.log
