-
Notifications
You must be signed in to change notification settings - Fork 348
/
blockmode-l2s.sh
executable file
·32 lines (28 loc) · 845 Bytes
/
blockmode-l2s.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
#
# Test blockmode longopts translation.
m=blockmode
l2s='--l2stranstest'
a=$m-l2s-a.txt
b=$m-l2s-b.txt
rm -f $a $b ; touch $b
cat << EOF > $a
--l2stranstest -Azslhw
--l2stranstest -Ashw
--l2stranstest -C
--l2stranstest -D+a -D40+c -D+h -D+l
--l2stranstest -E -Er+l -Es+h
--l2stranstest -Gfile.grd
--l2stranstest -Q
--l2stranstest -Wi -Wo+s
EOF
# module-specific longopts
gmt $m $l2s --fields=mode,L1_scale,low,high,weight >> $b
gmt $m $l2s --fields=l1_scale,high,weight >> $b
gmt $m $l2s --center >> $b
gmt $m $l2s --histogram+average --histogram=40+center --histogram+high --histogram+low >> $b
gmt $m $l2s --extend --extend=record+lower --extend=source+higher >> $b
gmt $m $l2s --outgrid=file.grd >> $b
gmt $m $l2s --quick >> $b
gmt $m $l2s --weights=in --weights=out+sigma >> $b
diff $a $b --strip-trailing-cr > fail