diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 17:38:41 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 17:38:41 (GMT) |
commit | 5b44fb0d6530c4ff66a446afb69933aa8ffd014f (patch) | |
tree | e059f66d1f612e21fe9d83f9620c8715530353ec /funtools/tfunjoin | |
parent | da2e3d212171bbe64c1af39114fd067308656990 (diff) | |
parent | 23c7930d27fe11c4655e1291a07a821dbbaba78d (diff) | |
download | blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.zip blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.tar.gz blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.tar.bz2 |
Merge commit '23c7930d27fe11c4655e1291a07a821dbbaba78d' 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 |