Jpp  15.0.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mechanics:plot.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: WORKDIR ACOUSTICS_WORKDIR ./
13 set_variable: FORMAT GRAPHICS_FORMAT gif
14 set_variable+ BATCH GRAPHICS_BATCH -B
15 
16 if do_usage $*; then
17  usage "$script <string identifier>"
18 fi
19 
20 if (( $# != 1 )); then
21  fatal "Wrong number of arguments."
22 fi
23 
25 
26 set_variable MECHANICS_TXT $WORKDIR/mechanicsab_${STRING}.txt
27 set_variable MECHANICS_ROOT $WORKDIR/mechanicsab_${STRING}.root
28 
29 if [[ ! -f $MECHANICS_TXT ]] then
30  fatal "No mechanics data file $MECHANICS_TXT."
31 fi
32 
33 JGraph2D \
34  -f $MECHANICS_TXT \
35  -o $MECHANICS_ROOT
36 
37 JPrintMechanics -M $WORKDIR/mechanics.txt -S $STRING | read DUMMY A B
38 
39 echo $A $B > ${TMPDIR:-/tmp}/graph.txt
40 
41 JGraph \
42  -f ${TMPDIR:-/tmp}/graph.txt \
43  -o ${TMPDIR:-/tmp}/graph.root
44 
45 typeset -Z 4 STRING
46 
47 set_variable DZ 1.50
48 
49 sort -nr -k 3,3 $MECHANICS_TXT | tail -1 | read A B CHI2 RMS
50 
51 let ZMIN="$CHI2"
52 let ZMAX="$CHI2 + $DZ"
53 
54 JPlot2D \
55  -f ${MECHANICS_ROOT}:\.\* \
56  -f ${TMPDIR:-/tmp}/graph.root:\.\* \
57  -\> "a [m^{-1}]" \
58  -\< "b [m]" \
59  -\^ "#chi^{2}/NDF" \
60  -N "X 505" \
61  -N "Y 510" \
62  -z "$ZMIN $ZMAX" \
63  -O COLZ \
64  -G XY \
65  -S 1.5 \
66  -T "[$STRING]" \
67  -o $WORKDIR/mechanicsab_${STRING}.$FORMAT $BATCH
68 
69 rm -f $MECHANICS_ROOT
70 rm -f ${TMPDIR:-/tmp}/graph.{txt,root}
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn only modules within the given range of floors are used fi case set_variable RANGE $argv[3]
then fatal No hydrophone data file $HYDROPHONE_TXT fi sort gr k
do $JPP JMEstimator M
Definition: JMEstimator.sh:37
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
clean eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY set_variable STRING
then usage $script< directory A >< directoryB > nIn each there should be a file detector datx and tripod txt
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
exit
Definition: JPizza.sh:36
then echo
do echo $TRIPODS[${key}] read X Y Z let DZ
Definition: JFootprint.sh:66
then fatal Invalid string $STRING
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR if do_usage *then usage $script[(input file)+] fi set_variable DEBUG set_variable WORKDIR TMPDIR
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
* usage
then JConvertDetectorFormat a $DETECTOR[1] o
do set_variable SIGMA_NS set_variable OUTLIERS set_variable OUTPUT_FILE matrix[${ALPHA_DEG}\deg\] root $JPP JMatrixNZ a $DETECTOR f $INPUT_FILE o $OUTPUT_FILE S
Definition: JMatrixNZ.sh:58
do JPlot2D f $WORKDIR detector root
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then display $WORKDIR
Definition: plot-Domino.sh:128
do set_variable MODULE getModule a $WORKDIR detector_a datx L $STRING JEditDetector a $WORKDIR detector_a datx M $MODULE setz o $WORKDIR detector_a datx JEditDetector a $WORKDIR detector_b datx M $MODULE setz o $WORKDIR detector_b datx done echo Output stored at $WORKDIR detector_a datx and $WORKDIR tripod_a txt JDrawDetector2D a $WORKDIR detector_a datx a $WORKDIR detector_b datx L BL o detector $FORMAT $BATCH JDrawDetector2D T $WORKDIR tripod_a txt T $WORKDIR tripod_b txt L BL o tripod $FORMAT $BATCH JCompareDetector a $WORKDIR detector_a datx b $WORKDIR detector_b datx o $WORKDIR abc root &dev null for KEY in X Y Z
do unset TRIPODS[${ID}] done fi set_variable TMPDIR $WORKDIR mkdir p $TMPDIR set_variable OUTPUT_FILE $TMPDIR katoomba root typeset a CHI2 CHI2
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
script
Definition: JAcoustics.sh:2
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null