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