4 # ------------------------------------------------------------------------------------------ 
    6 #                               Toolkit for acoustics scripts. 
    8 # ------------------------------------------------------------------------------------------ 
   10 if [ -z $JPP_DIR ]; 
then 
   11     echo "Variable JPP_DIR undefined." 
   15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/
null 
   18     usage "source $script"\
 
   19           "\nToolkit for acoustics scripts." 
   29 # Acoustics keys for auxiliary files. 
   38 # Acoustics keys 
for input 
files.
 
   44     acoustics_trigger_parameters
 
   45     acoustics_fit_parameters
 
   50 # Method to add tripod data from given file into associative array.  
   53 # \param  2      associative array 
   55 function get_tripods+()
 
   57     set_local_variable __FILE__        $1
 
   58     set_local_variable __ARRAY__       $2
 
   60     while read __line__; 
do 
   62         if [[ -
n "$__line__" && 
"$__line__" != \#* ]]; 
then 
   64             echo $__line__ | 
read __id__ __x__ __y__ __z__
 
   66             eval ${__ARRAY__}\[${__id__}\]=\
"$__x__ $__y__ $__z__\" 
   74 # Method to write tripod data from given file into associative array.  
   77 # \param  2      associative array 
   79 function get_tripods() 
   88 # Method to add transmitter data from given file into associative array.  
   91 # \param  2      associative array 
   93 function get_transmitters+() 
   95     set_local_variable __FILE__        $1 
   96     set_local_variable __ARRAY__       $2 
   98     while read __line__; do 
  100         if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then 
  102             echo $__line__ | read __id__ __string__ __floor__ __x__ __y__ __z__ 
  104             eval ${__ARRAY__}\[${__id__}\]=\"$__x__ $__y__ $__z__\" 
  112 # Method to write transmitter data from given file into associative array.  
  115 # \param  2      associative array 
  117 function get_transmitters() 
  121     get_transmitters+ $1 $2 
  126 # Method to print string numbers of strings with with transmitter. 
  129 # \return        string numbers 
  131 function get_strings_with_transmitter() 
  133     set_local_variable __FILE__        $1 
  135     while read __line__; do 
  137         if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then 
  139             echo $__line__ | read __id__ __string__ __floor__ __x__ __y__ __z__ 
  141             echo -n " $__string__
" 
  151 # Method to print string numbers of strings with with hydrophone. 
  154 # \return        string numbers 
  156 function get_strings_with_hydrophone() 
  158     set_local_variable __FILE__        $1 
  160     while read __line__; do 
  162         if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then 
  164             echo $__line__ | read __string__ __floor__ __x__ __y__ __z__ 
  166             echo -n " $__string__
" 
  176 #  Method to write waveform data from given file into associative array. 
  179 # \param  2      associative array 
  181 function get_waveforms() 
  183     set_local_variable __FILE__        $1 
  184     set_local_variable __ARRAY__       $2 
  186     while read __line__; do 
  188         if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then 
  190             echo $__line__ | read __id__ __m__ 
  192             eval ${__ARRAY__}\[${__id__}\]=\"$__m__\" 
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary. 
 
then usage $script< input file > nFor possible input files
 
do set_variable DETECTOR_TXT $WORKDIR detector
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null