4 # --------------------------------------------------------------------------------------------
 
    6 # Auxiliary script to derive the geometry of the D0ARCA020 (116) detector from other detectors.
 
    8 # --------------------------------------------------------------------------------------------
 
   10 if [ -z $JPP_DIR ]; then
 
   11     echo "Variable JPP_DIR undefined."
 
   15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
 
   17 set_variable  DETECTOR_ID            116
 
   20     usage "$script <source directory>"                                              \
 
   21           "\nThe source directory corresponds to a pre-calibrated D0ARCA021 detector."
 
   25     1)  set_variable DIR                  ${1:a};;
 
   26     *)  fatal "Wrong number of arguments."
 
   29 set_variable  DETECTOR               $DIR/detector.datx
 
   30 set_variable  TRIPOD                 $DIR/tripod.txt
 
   32 if [[ ! -f $DETECTOR ]]; then
 
   33     fatal "Missing pre-calibrated D0ARCA021 input detector file"
 
   36 if [[ ! -f $TRIPOD ]]; then
 
   37     fatal "Missing pre-calibrated D0ARCA021 input tripod file"
 
   40 # Apply modifications.
 
   44     -@ "id=$DETECTOR_ID"               \
 
   54     -f $DIR_DETECTOR_A/transmitter.txt \
 
   59     -f $DIR_DETECTOR_A/hydrophone.txt  \