Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JAcoustics/JEvD.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: RATIO ACOUSTICS_RATIO 0.1
14set_variable: PRESCALE ACOUSTICS_PRESCALE 1
15set_variable DIR $JPP_DIR/examples/JAcoustics
16set_variable: FORMAT GRAPHICS_FORMAT gif
17set_variable+ BATCH GRAPHICS_BATCH -B
18
19if do_usage $*; then
20 usage "$script <detector file> (input file)+"\
21 "\nInput file corresponds to the output of JKatoomba[.sh]."
22fi
23
24if (( $# < 2 )); then
25 fatal "Wrong number of arguments."
26fi
27
28set_variable DETECTOR $argv[1]
29set_array INPUT_FILES $argv[2,-1]
30
31eval `JPrintDetector -a $DETECTOR -O IDENTIFIER`
32
33
34JAcoustics.sh $DETECTOR_ID
35
36for INPUT_FILE in $INPUT_FILES[*]; do
37
38 $DIR/JEvD \
39 -a $DETECTOR \
40 -f $INPUT_FILE \
41 -o A_%.$FORMAT \
42 -V $WORKDIR/sound_velocity.txt \
43 -M $WORKDIR/mechanics.txt \
44 -R $RATIO \
45 -P $PRESCALE \
46 -N 1 \
47 -d $DEBUG $BATCH
48done
49
50if [[ "$BATCH" != "" ]]; then
51 make_movie.sh A_[0-9]*.gif
52fi