-
Notifications
You must be signed in to change notification settings - Fork 0
/
anaRelCorr_func.sh
executable file
·67 lines (65 loc) · 1.08 KB
/
anaRelCorr_func.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# Copyright (C) 2013 Thomas Carette
source $(which anaCommon.sh)
if [ "$( type -t rhfsA )" == "" ]
then
echo "WARNING: anaGrasp_func.sh not loaded"
echo "press enter to load it or Ctrl-C to cancel"
read
source $(which anaGrasp_func.sh)
fi
if [ "$( type -t hfsA )" == "" ]
then
echo "WARNING: anaAtsp2k_func.sh not loaded"
echo "press enter to load it or Ctrl-C to cancel"
read
source $(which anaAtsp2k_func.sh)
fi
DrhfsA ()
{
if [ -e $1.ch ]
then
if [ -e $4.h ]
then
local a=$( rhfsA $1 $2 $3 )
local b=$( hfsA $4 $5 )
if $(isnumber $a $b)
then
local str=$( echo "$a - ($b)" | bc -l )
fi
fi
fi
check $str
}
DrhfsB ()
{
if [ -e $1.ch ]
then
if [ -e $4.h ]
then
local a=$( rhfsB $1 $2 $3 )
local b=$( hfsB $4 $5 )
if $(isnumber $a $b)
then
local str=$( echo "$a - ($b)" | bc -l )
fi
fi
fi
check $str
}
Drsmsp ()
{
if [ -e $1.ci ]
then
if [ -e $4.s ]
then
local a=$( rsmsp $1 $2 $3 )
local b=$( smsp $4 $5 )
if $(isnumber $a $b)
then
local str=$( echo "$a -($b)" | bc -l )
fi
fi
fi
check $str
}