]> hackdaworld.org Git - physik/posic.git/commitdiff
added very simple delta e calc script
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Thu, 16 Aug 2007 16:27:55 +0000 (18:27 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Thu, 16 Aug 2007 16:27:55 +0000 (18:27 +0200)
calc_delta_e [new file with mode: 0755]

diff --git a/calc_delta_e b/calc_delta_e
new file mode 100755 (executable)
index 0000000..9c5ecda
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+e0=`grep ^0 $1/energy | awk '{ print $4 }'`
+e1=`tail -n 1 $1/energy | awk '{ print $4 }'`
+ev=`grep ^19.000 $1/energy | awk '{ print $4 }'`
+en=`grep ^20.000 $1/energy | awk '{ print $4 }'`
+
+echo "$e0 $e1 $2 $ev $en" | \
+       awk '{ print $5*($3+1)-$4*$3-($2*($3+1)-$1*$3) " eV" }'