diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-25 20:57:49 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-25 20:57:49 (GMT) |
commit | d1c4bf158203c4e8ec29fdeb83fd311e36320885 (patch) | |
tree | 15874534e282f67505ce4af5ba805a1ff70ec43e /funtools/tfunjoin | |
parent | e19a18e035dc4d0e8e215f9b452bb9ef6f58b9d7 (diff) | |
parent | 339420dd5dd874c41f6bab5808291fb4036dd022 (diff) | |
download | blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.zip blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.gz blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.bz2 |
Merge commit '339420dd5dd874c41f6bab5808291fb4036dd022' as 'funtools'
Diffstat (limited to 'funtools/tfunjoin')
-rwxr-xr-x | funtools/tfunjoin | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/funtools/tfunjoin b/funtools/tfunjoin new file mode 100755 index 0000000..e352f67 --- /dev/null +++ b/funtools/tfunjoin @@ -0,0 +1,37 @@ +#!/bin/sh + +cat > foo1.txt <<EOF +val +--- +1.0 +1.5 +2.0 +2.5 +3.0 +3.5 +4.0 +EOF + +cat > foo2.txt <<EOF +val +--- +1.5 +2.5 +3.5 +EOF + +funtable foo1.txt foo1.fits +(funindex foo1.fits val) > /dev/null + +funtable foo2.txt foo2.fits +(funindex foo2.fits val) > /dev/null + +if [ x$1 = x ]; then + TOL=-1 +else + TOL=$1 +fi + +echo "./funjoin -t $TOL -j val foo1.fits foo2.fits stdout | fundisp stdin" +./funjoin -t $TOL -j val foo1.fits foo2.fits foo.fits +fundisp foo.fits |