Jpp  19.1.0-rc.1
the software that should make you happy
JConvertAcoustics.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: TYPE ACOUSTICS_TYPE JEvent
13 
14 if do_usage $*; then
15  usage "$script (input file)+ <output file>"
16 fi
17 
18 if (( $# < 2 )); then
19  fatal "Wrong number of arguments."
20 fi
21 
22 set_array INPUT_FILES $argv[1,-2]
23 set_variable OUTPUT_FILE $argv[-1]
24 
25 JConvertAcoustics \
26  -f${^INPUT_FILES} \
27  -o $OUTPUT_FILE \
28  -C $TYPE \
29  -d $DEBUG --!