Jpp  19.1.0
the software that should make you happy
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 ${TMPDIR:-/tmp}
18 set_variable DIR $JPP_DIR/examples/JCompass/
19 set_variable TIMESTAMP UTC
20 set_variable: FORMAT GRAPHICS_FORMAT gif
21 set_variable+ BATCH GRAPHICS_BATCH -B
22 
23 if do_usage $*; then
24  usage "$script"
25 fi
26 
27 if (( $# != 0 )); then
28  fatal "Wrong number of parameters."
29 fi
30 
31 $DIR/JNOAA \
32  -o $WORKDIR/noaa.root \
33  -d $DEBUG
34 
35 JPlot1D \
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 $WORKDIR/noaa.$FORMAT $BATCH