Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
JAcousticsEventMonitor.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
11 set_variable DEADTIME_S 100e-3
12 set_variable WAVEFORM_S 5.0e-3
13 set_variable: DEBUG ACOUSTICS_DEBUG 2
14 set_variable: WORKDIR ACOUSTICS_WORKDIR ./
15 set_variable: FORMAT GRAPHICS_FORMAT gif
16 set_variable+ BATCH GRAPHICS_BATCH -B
17 
18 if do_usage $*; then
19  usage "$script (input file)+"\
20  "\nInput files correspond to the output of JAcousticsEventBuilder[.sh]."
21 fi
22 
23 if (( $# == 0 )); then
24  fatal "Wrong number of arguments."
25 fi
26 
27 set_array INPUT_FILES $argv[1,-1]
28 
29 $JPP_DIR/examples/JAcoustics/JAcousticsEventMonitor \
30  -f${^INPUT_FILES} \
31  -D $DEADTIME_S \
32  -p $WAVEFORM_S \
33  -d $DEBUG