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.
32 acoustics_trigger_parameters
33 acoustics_fit_parameters
38 # Method to add tripod
data from given
file into associative array.
41 # \param 2 associative array
43 function get_tripods+()
45 set_local_variable __FILE__ $1
46 set_local_variable __ARRAY__ $2
48 while read __line__;
do
50 if [[ -
n "$__line__" &&
"$__line__" != \#* ]];
then
52 echo $__line__ |
read __id__ __x__ __y__ __z__
54 eval ${__ARRAY__}\[${__id__}\]=\
"$__x__ $__y__ $__z__\"
62 # Method to write tripod data from given file into associative array.
65 # \param 2 associative array
67 function get_tripods()
76 # Method to add transmitter data from given file into associative array.
79 # \param 2 associative array
81 function get_transmitters+()
83 set_local_variable __FILE__ $1
84 set_local_variable __ARRAY__ $2
86 while read __line__; do
88 if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then
90 echo $__line__ | read __id__ __string__ __floor__ __x__ __y__ __z__
92 eval ${__ARRAY__}\[${__id__}\]=\"$__x__ $__y__ $__z__\"
100 # Method to write transmitter data from given file into associative array.
103 # \param 2 associative array
105 function get_transmitters()
109 get_transmitters+ $1 $2
114 # Method to print string numbers of strings with with transmitter.
117 # \return string numbers
119 function get_strings_with_transmitter()
121 set_local_variable __FILE__ $1
123 while read __line__; do
125 if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then
127 echo $__line__ | read __id__ __string__ __floor__ __x__ __y__ __z__
129 echo -n " $__string__
"
139 # Method to print string numbers of strings with with hydrophone.
142 # \return string numbers
144 function get_strings_with_hydrophone()
146 set_local_variable __FILE__ $1
148 while read __line__; do
150 if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then
152 echo $__line__ | read __string__ __floor__ __x__ __y__ __z__
154 echo -n " $__string__
"
164 # Method to write waveform data from given file into associative array.
167 # \param 2 associative array
169 function get_waveforms()
171 set_local_variable __FILE__ $1
172 set_local_variable __ARRAY__ $2
174 while read __line__; do
176 if [[ -n "$__line__
" && "$__line__
" != \#* ]]; then
178 echo $__line__ | read __id__ __m__
180 eval ${__ARRAY__}\[${__id__}\]=\"$__m__\"
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
then usage $script[< detector identifier >< run range >]< QA/QCfile > nExample script to produce data quality plots nWhen a detector identifier and run range are data are downloaded from the database nand subsequently stored in the given QA QC file
then echo Enter input within $TIMEOUT_S seconds echo n User name
then fatal Missing detector file $DETECTOR fi eval JPrintDetector a $DETECTOR O IDENTIFIER for KEY in tripod hydrophone transmitter
static JNullStream null
Null I/O stream.