summaryrefslogtreecommitdiffstats
path: root/funtools/tfunjoin
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2016-10-25 20:57:49 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2016-10-25 20:57:49 (GMT)
commitd1c4bf158203c4e8ec29fdeb83fd311e36320885 (patch)
tree15874534e282f67505ce4af5ba805a1ff70ec43e /funtools/tfunjoin
parente19a18e035dc4d0e8e215f9b452bb9ef6f58b9d7 (diff)
parent339420dd5dd874c41f6bab5808291fb4036dd022 (diff)
downloadblt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.zip
blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.gz
blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.bz2
Merge commit '339420dd5dd874c41f6bab5808291fb4036dd022' as 'funtools'
Diffstat (limited to 'funtools/tfunjoin')
-rwxr-xr-xfuntools/tfunjoin37
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