projects
/
physik
/
posic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed disable p-ctrl feature
[physik/posic.git]
/
pair_corr_calc_script
diff --git
a/pair_corr_calc_script
b/pair_corr_calc_script
index
3913ca1
..
8006e1f
100755
(executable)
--- a/
pair_corr_calc_script
+++ b/
pair_corr_calc_script
@@
-7,7
+7,7
@@
do_it() {
echo "processing $1 ..."
do_it() {
echo "processing $1 ..."
- ./pair_correlation_calc $
1 $2
+ ./pair_correlation_calc $
2 $1
trg=`echo $1 | sed 's%s-%pair_corr-%' | sed 's%.save%%'`
mv pair_corr_func.txt $trg
echo "done"
trg=`echo $1 | sed 's%s-%pair_corr-%' | sed 's%.save%%'`
mv pair_corr_func.txt $trg
echo "done"
@@
-27,7
+27,11
@@
fi
if [ "$3" = "g" ]; then
if [ "$3" = "g" ]; then
-pdir=`dirname $1`
+if [ -d $1 ]; then
+ pdir=$1
+else
+ pdir=`dirname $1`
+fi
pfile=$pdir/pair_corr.scr
cat > $pfile <<-EOF
pfile=$pdir/pair_corr.scr
cat > $pfile <<-EOF
@@
-39,11
+43,12
@@
set ytic auto
set title 'Pair correlation function'
set xlabel 'r [A]'
set ylabel 'g(r) [a.u.]'
set title 'Pair correlation function'
set xlabel 'r [A]'
set ylabel 'g(r) [a.u.]'
+unset ytics
set terminal postscript eps enhanced color solid lw 1 'Helvetica' 14
set output '$pdir/pair_corr.eps'
EOF
set terminal postscript eps enhanced color solid lw 1 'Helvetica' 14
set output '$pdir/pair_corr.eps'
EOF
-echo -en "plot [1.
5:3
.0] " >> $pfile
+echo -en "plot [1.
0:6
.0] " >> $pfile
komma=0
komma=0
@@
-61,14
+66,14
@@
for i in $pdir/pair_corr-*; do
if [ ! -z `echo $4 | grep b` ]; then
[ "$komma" = "1" ] &&
echo -en ", " >> $pfile
if [ ! -z `echo $4 | grep b` ]; then
[ "$komma" = "1" ] &&
echo -en ", " >> $pfile
- echo -en "\"$i\" u 1:3 w l t \"a
b
$time\"" >> $pfile
+ echo -en "\"$i\" u 1:3 w l t \"a
a
$time\"" >> $pfile
komma=1
fi
if [ ! -z `echo $4 | grep c` ]; then
[ "$komma" = "1" ] &&
echo -en ", " >> $pfile
komma=1
fi
if [ ! -z `echo $4 | grep c` ]; then
[ "$komma" = "1" ] &&
echo -en ", " >> $pfile
- echo -en "\"$i\" u 1:4 w l t \"
a
b $time\"" >> $pfile
+ echo -en "\"$i\" u 1:4 w l t \"
b
b $time\"" >> $pfile
komma=1
fi
komma=1
fi