diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-05-21 19:00:29 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-05-21 19:00:29 (GMT) |
commit | 46d97c3965cb216b58ebf90a13f9f8237925b377 (patch) | |
tree | fa699432b8feb3ce7f19971cbabc35d15bcadb32 /funtools/tfunjoin | |
parent | 8c5d7ad35a627084cb69087a80ae61ff5c19dcc3 (diff) | |
download | blt-46d97c3965cb216b58ebf90a13f9f8237925b377.zip blt-46d97c3965cb216b58ebf90a13f9f8237925b377.tar.gz blt-46d97c3965cb216b58ebf90a13f9f8237925b377.tar.bz2 |
upgrade 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 |