Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JNOAA.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3#
4# \author mdejong
5#
6version=1.0
7script=${0##*/}
8
9if [ -z $JPP_DIR ]; then
10 echo "Variable JPP_DIR undefined."
11 exit
12fi
13
14source $JPP_DIR/setenv.sh $JPP_DIR
15
16set_variable: DEBUG COMPASS_DEBUG 2
17set_variable: WORKDIR COMPASS_WORKDIR ${TMPDIR:-/tmp}
18set_variable DIR $JPP_DIR/examples/JCompass/
19set_variable TIMESTAMP UTC
20set_variable: FORMAT GRAPHICS_FORMAT gif
21set_variable+ BATCH GRAPHICS_BATCH -B
22
23if do_usage $*; then
24 usage "$script"
25fi
26
27if (( $# != 0 )); then
28 fatal "Wrong number of parameters."
29fi
30
31$DIR/JNOAA \
32 -o $WORKDIR/noaa.root \
33 -d $DEBUG
34
35JPlot1D \
36 -w 1200x600 \
37 -f $WORKDIR/noaa.root:\.\* \
38 -\^ "magnetic declination [rad]" \
39 -y "-0.1 +0.1" \
40 -t "$TIMESTAMP" \
41 -N "X 510" \
42 -T "" \
43 -L TL \
44 -o noaa.$FORMAT $BATCH
45
46rm -f $WORKDIR/noaa.root