Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
JSydney.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: DEBUG ACOUSTICS_DEBUG 2
12 set_variable: WORKDIR ACOUSTICS_WORKDIR ./
13 set_variable: THREADS ACOUSTICS_THREADS 5
14 set_variable+ HYDROPHONE ACOUSTICS_HYDROPHONE -H hydrophone.txt
15 set_variable+ TRANSMITTER ACOUSTICS_TRANSMITTER -Y transmitter.txt
16 
17 if do_usage $*; then
18  usage "$script <detector file> (input file)+ <script file>"\
19  "\nAuxiliary script for position pre-calibration."\
20  "\nInput files correspond to the output of JAcousticsEventBuilder[.sh]."
21 fi
22 
23 if (( $# < 3 )); then
24  fatal "Wrong number of arguments."
25 fi
26 
27 set_variable DETECTOR $argv[1]
28 set_array INPUT_FILES $argv[2,-2]
29 set_variable SCRIPT $argv[-1]
30 
31 eval `JPrintDetector -a $DETECTOR -O IDENTIFIER`
32 
33 JAcoustics.sh $DETECTOR_ID
34 
35 CHECK_EXIT_CODE
36 
37 JSydney \
38  -a $DETECTOR \
39  -f "$INPUT_FILES[*]" \
40  -T tripod.txt \
41  ${TRANSMITTER} \
42  -V sound_velocity.txt \
43  -M mechanics.txt \
44  -@ acoustics_fit_parameters.txt \
45  -! disable.txt \
46  ${HYDROPHONE} \
47  -N $THREADS \
48  -s $SCRIPT \
49  -d $DEBUG --!