#!/bin/bash

# ----------------------------------------------------------------
# RPC Project :
# Run RPC_GEOULF_vectime_calibration : Calibrate a L1 Vectime file
#                                      for GEOS/ULF
#
# P. Robert, LPP, 2011-03-21
# ----------------------------------------------------------------

appli=`basename $0`
appli36=`echo "$appli                                 " | cut -c1-36`
Narg=0
echo " -------------------------------------------------------------------"
echo $appli $*

if( (test $# = 1 ) && (test $1 = -h ) ) ; then hh=1 ; else hh=0 ; fi

if test $# != $Narg || test $hh = 1
   then
    # On n'a pas le bon nombre d'arguments ou on demande un "help"
    echo 
    echo "rpc_test_keplerlib : Compute Earth orbit, to check routines"
    echo "------------------"
    echo
    echo "This command run without argument"
    echo "example:"
    echo "RPC_test_keplerlib"
    echo " "
    echo "The output files correspond to the result of the command execution"
    echo "and will be created in the current directory"
    echo " "
    echo =======================================================================
    echo ""
 if test $hh = 1 ; then exit 0 ; fi
   echo "$appli36 : *** ERROR ! Command aborted." >&2
   exit 1
fi

datim1=`date +%F'  '%H':'%M':'%S `
julsec1=`date +%s`

# remove RPC_ from RPC command

appli=`echo $appli | cut -c5-`

touch $appli.in

# run appli.exe 

. run_appli.bash $appli
err=$?
exit $err
