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." 
   23 # Acoustics keys for input files. 
   29     acoustics_trigger_parameters
 
   30     acoustics_fit_parameters
 
   35 # Acoustics keys 
for auxiliary 
files.
 
   44 # Method to add tripod data from given file into associative array.  
   47 # \param  2      associative array 
   49 function get_tripods+()
 
   51     set_local_variable __FILE__        $1
 
   52     set_local_variable __ARRAY__       $2
 
   54     while read __line__; 
do 
   56         if [[ -
n "$__line__" && 
"$__line__" != \#* ]]; 
then 
   58             echo $__line__ | 
read __id__ __x__ __y__ __z__
 
   60             eval ${__ARRAY__}\[${__id__}\]=\
"$__x__ $__y__ $__z__\" 
   68 # Method to write tripod data from given file into associative array.  
   71 # \param  2      associative array 
   73 function get_tripods() 
   82 # Method to add transmitter data from given file into associative array.  
   85 # \param  2      associative array 
   87 function get_transmitters+() 
   89     set_local_variable __FILE__        $1 
   90     set_local_variable __ARRAY__       $2 
   92     while read __line__; do 
   94         if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then 
   96             echo $__line__ | read __id__ __string__ __floor__ __x__ __y__ __z__ 
   98             eval ${__ARRAY__}\[${__id__}\]=\"$__x__ $__y__ $__z__\" 
  106 # Method to write transmitter data from given file into associative array.  
  109 # \param  2      associative array 
  111 function get_transmitters() 
  115     get_transmitters+ $1 $2 
  120 # Method to print string numbers of strings with with transmitter. 
  123 # \return        string numbers 
  125 function get_strings_with_transmitter() 
  127     set_local_variable __FILE__        $1 
  129     while read __line__; do 
  131         if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then 
  133             echo $__line__ | read __id__ __string__ __floor__ __x__ __y__ __z__ 
  135             echo -n " $__string__
" 
  145 # Method to print string numbers of strings with with hydrophone. 
  148 # \return        string numbers 
  150 function get_strings_with_hydrophone() 
  152     set_local_variable __FILE__        $1 
  154     while read __line__; do 
  156         if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then 
  158             echo $__line__ | read __string__ __floor__ __x__ __y__ __z__ 
  160             echo -n " $__string__
" 
  170 #  Method to write waveform data from given file into associative array. 
  173 # \param  2      associative array 
  175 function get_waveforms() 
  177     set_local_variable __FILE__        $1 
  178     set_local_variable __ARRAY__       $2 
  180     while read __line__; do 
  182         if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then 
  184             echo $__line__ | read __id__ __m__ 
  186             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
 
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null