Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JSydney.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2script=${0##*/}
3
4if [ -z $JPP_DIR ]; then
5 echo "Variable JPP_DIR undefined."
6 exit
7fi
8
9source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10
11set_variable: DEBUG ACOUSTICS_DEBUG 2
12set_variable: WORKDIR ACOUSTICS_WORKDIR ./
13set_variable: THREADS ACOUSTICS_THREADS 5
14set_variable+ HYDROPHONE ACOUSTICS_HYDROPHONE -H hydrophone.txt
15set_variable+ TRANSMITTER ACOUSTICS_TRANSMITTER -Y transmitter.txt
16
17if 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]."
21fi
22
23if (( $# < 3 )); then
24 fatal "Wrong number of arguments."
25fi
26
27set_variable DETECTOR $argv[1]
28set_array INPUT_FILES $argv[2,-2]
29set_variable SCRIPT $argv[-1]
30
31eval `JPrintDetector -a $DETECTOR -O IDENTIFIER`
32
33JAcoustics.sh $DETECTOR_ID
34
35CHECK_EXIT_CODE
36
37JSydney \
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 --!