Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
makedeclinationtable.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 
18 if ( do_usage $* ); then
19  usage "$script <detector file>"
20 fi
21 
22 if (( $# != 1 )); then
23  fatal "Wrong number of parameters."
24 fi
25 
27 
28 eval `JPrintDetector -a $DETECTOR -O HEADER`
29 
30 if (( $DEBUG >= 3 )); then
31  echo $DETECTOR
32  JPrintDetector -a $DETECTOR -O header
33 fi
34 
35 notice makedeclinationtable.py $UTM_EAST $UTM_NORTH ${UTM_ZONE//[^0-9]/} ${UTM_ZONE//[0-9]/}
36 
37 makedeclinationtable.py $UTM_EAST $UTM_NORTH ${UTM_ZONE//[^0-9]/} ${UTM_ZONE//[0-9]/}
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
exit
Definition: JPizza.sh:36
then echo
* usage
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
Definition: JDomino.sh:39
then JCalibrateToT a
Definition: JTuneHV.sh:108
set_variable DETECTOR
version
Definition: JCalibratePMT.sh:7
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62