Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
billabong:run.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2script=${0:t}
3
4source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
5
6zmodload zsh/mathfunc
7
8let "DMAX_M = 1200.0"
9let "ZMAX_M = 150.0"
10let "TMAX_S = 0.010"
11let "GRID_DEG = 3.0"
12let "NUMBER_OF_HITS = 13"
13
14X=(70 -350.0 +350.0)
15Y=(70 -350.0 +350.0)
16Z=( 1 -1.0 +1.0)
17
18set_variable DEBUG 2
19set_variable WAVEFORM 1 # waveform
20
21if do_usage $*; then
22 usage "$script <detector> <input file> <output file>"
23fi
24
25if (( $# != 3 )); then
26 fatal "Wrong number of arguments."
27fi
28
29set_variable DETECTOR $1
30set_variable INPUT_FILE $2
31set_variable OUTPUT_FILE $3
32
33$JPP_DIR/examples/JAcoustics/JBillabong \
34 -a $DETECTOR \
35 -f $INPUT_FILE \
36 -@ "numberOfHits = $NUMBER_OF_HITS" \
37 -@ "Q = 0.0" \
38 -@ "DMax_m = $DMAX_M" \
39 -@ "ZMax_m = $ZMAX_M" \
40 -@ "TMaxVertex_s = $TMAX_S" \
41 -@ "gridAngle_deg = $GRID_DEG" \
42 -X "$X" \
43 -Y "$Y" \
44 -Z "$Z" \
45 -W $WAVEFORM \
46 -o $OUTPUT_FILE \
47 -d $DEBUG --!