Jpp  19.1.0
the software that should make you happy
plot-BPS.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 # ------------------------------------------------------------------------------------------
5 #
6 # Example script to plot slow control data from database.
7 #
8 # ------------------------------------------------------------------------------------------
9 
10 if [ -z $JPP_DIR ]; then
11  echo "Variable JPP_DIR undefined."
12  exit
13 fi
14 
15 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
16 
17 set_variable DEBUG 2
18 set_variable WORKDIR ${TMPDIR:-/tmp}/
19 
20 if do_usage $*; then
21  usage "<input file>"
22 fi
23 
24 if (( $# == 1 )); then
25  set_variable INPUT_FILE $1
26 else
27  fatal "Wrong number of arguments."
28 fi
29 
30 
31 cat>$WORKDIR/parameters.txt<<EOF
32 %.00.bps_iback 0 200
33 %.00.bps_v375 0 1000
34 %.00.bps_i375 0 250
35 %.00.bps_v5 0 1000
36 EOF
37 
38 plot-Tuna.sh ${INPUT_FILE} $WORKDIR/parameters.txt