#!/bin/csh -f
# ************************************************************************
# *                                                                      *
# *   Control file for the first step of 2007b_astro processing.         *
# *                                                                      *
# * ### 04-JUL-2007    r1.csh   v1.0 (c)  L. Petrov     04-JUL-2007  ### *
# *                                                                      *
# ************************************************************************
set SOLVE_INIT = PE
set log_file   = $SPOOL_DIR/pe.log
set sol_dir    = /vlbi/solutions/2007b_astro
set wei_file   = $sol_dir/2007b_astro_no_vlba.wei
#
if ( -f $log_file ) rm $log_file   
if ( -f $wei_file ) rm $wei_file
solve_reset $SOLVE_INIT 40000 30000      >>&! $log_file
#
$Tl/sol $SOLVE_INIT  $sol_dir/2007b_astro_wei.cnt >>&! $log_file
cp $SPE $sol_dir/2007b_astro_no_vlba_wei.spl
cp $log_file $sol_dir/2007b_astro_no_vlba_wei.log
#
set SOLVE_INIT = P1
set log_file   = $SPOOL_DIR/p1.log
if ( -f $log_file ) rm $log_file   
$Tl/sol $SOLVE_INIT  $sol_dir/2007b_astro_no_vlba.cnt >>&! $log_file
cp $SP1 $sol_dir/2007b_astro_no_vlba.spl
cp $log_file $sol_dir/2007b_astro_no_vlba.log
