Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JNOAA.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 #
4 # \author mdejong
5 #
6 version=1.0
7 script=${0##*/}
8 
9 if [ -z $JPP_DIR ]; then
10  echo "Variable JPP_DIR undefined."
11  exit
12 fi
13 
14 source $JPP_DIR/setenv.sh $JPP_DIR
15 
16 set_variable DEBUG ${COMPASS_DEBUG:-2}
17 set_variable WORKDIR ${COMPASS_WORKDIR:-/tmp}
18 set_variable BACKGROUND ${COMPASS_BACKGROUND:+-B}
19 set_variable DIR $JPP_DIR/examples/JCompass/
20 set_variable TIMESTAMP "%d-%m-%y%F1970-01-01 00:00:00"
21 
22 if ( do_usage $* ); then
23  usage "$script"
24 fi
25 
26 if (( $# != 0 )); then
27  fatal "Wrong number of parameters."
28 fi
29 
30 $DIR/JNOAA \
31  -o $WORKDIR/noaa.root \
32  -d $DEBUG
33 
34 JPlot1D \
35  -w 1200x600 \
36  -f $WORKDIR/noaa.root:\.\* \
37  -\^ "magnetic declination [rad]" \
38  -y "-0.1 +0.1" \
39  -t "$TIMESTAMP" \
40  -N "X 510" \
41  -T "" \
42  -L TL \
43  -o $WORKDIR/noaa.gif $BACKGROUND
data_type w[N+1][M+1]
Definition: JPolint.hh:741
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
exit
Definition: JPizza.sh:36
do set_array DAQHEADER JPrintDAQHeader f
Definition: JTuneHV.sh:79
do echo Generating $dir eval DIR
Definition: JPlotNPE1D.sh:52
then echo
do set_variable OUTPUT_DIRECTORY $WORKDIR T
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
* usage
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:45
then display $WORKDIR
Definition: plot-Domino.sh:127
static const char *const TIMESTAMP
Time stamp of earliest UTC time.
then usage $script[input file[working directory[option]]] nWhere option can be N
Definition: JMuonPostfit.sh:37
version
Definition: JCalibratePMT.sh:7
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition: JLegolas.sh:28
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62