Commit 04cbf2ee authored by Sergey Kireev's avatar Sergey Kireev
Browse files

obsolete scripts deleted

parent 6672ac59
#!/bin/bash
source ./do_parameters.sh
fromdir=${rootdir}/${datdir}
target=`printf pic2d_%s_nsize%d $cell $nsize`
[ ! -d ${fromdir} ] && { echo "Directory ${fromdir} does not exist!" ; exit ; }
tmpdir=$(mktemp -d)
#trap "rm -r $tmpdir" SIGINT SIGTERM
values="0.20 0.40 0.60 0.80 1.00 1.20 1.40 1.60 1.80 2.00 2.20 2.40 2.60 2.80 3.00 3.20 3.40 3.60 3.80 4.00 4.20 4.40 4.60 4.80"
echo "Extracting $suffix files..."
init_iteration
while next_iteration; do
name=$(get_name)
datname=${name}_dat
dattgzfile=${fromdir}/$datname.tgz
if [[ -f $dattgzfile ]]; then
filename=`printf "%s%08d%s" ${prefix} ${nt} ${suffix}`
tmpdatname=${datname}/${filename}
#echo "tar -C $tmpdir -xzf $dattgzfile $tmpdatname"
tar -C $tmpdir -xzf $dattgzfile $tmpdatname || { echo "tar -C $tmpdir -xzf $dattgzfile $tmpdatname : failed!"; exit; }
#echo "mv $tmpdir/$tmpdatname -> $tmpdir/${dl}_${dn}"
mv $tmpdir/$tmpdatname $tmpdir/${dl}_${dn}
rmdir $tmpdir/$datname
fi
done
echo "Making ${target}.png ..."
gnuplot -e "name=\"${target}\"; nx=${nx}; ny=${ny}; ppp=${ppp}; \
rows=\"${values}\"; cols=\"${values}\"; rlabel=\"e_{nl}-e_{l}=\"; clabel=\"e_{n}-e_{nl}=\";
format=\"${tmpdir}/%s_%s\";" $script_png2d
rm -r $tmpdir
#!/bin/bash
source ./do_parameters.sh
fromdir=${rootdir}/${datdir}
target=`printf pic2d_%s_nsize%d_noscale $cell $nsize`
[ ! -d ${fromdir} ] && { echo "Directory ${fromdir} does not exist!" ; exit ; }
tmpdir=$(mktemp -d)
#tmpdir="/tmp/dat2d"
#mkdir $tmpdir
trap "rm -r $tmpdir" SIGINT SIGTERM
#values="0.20 0.40 0.60 0.80 1.00"
values="0.20 0.40 0.60 0.80 1.00 1.20 1.40 1.60 1.80 2.00 2.20 2.40 2.60 2.80 3.00 3.20 3.40 3.60 3.80 4.00 4.20 4.40 4.60 4.80"
echo "Extracting $suffix files..."
init_iteration
while next_iteration; do
name=$(get_name)
datname=${name}_dat
dattgzfile=${fromdir}/$datname.tgz
#echo -n "."
if [[ -f $dattgzfile ]]; then
filename=`printf "%s%08d%s" ${prefix} ${nt} ${suffix}`
tmpdatname=${datname}/${filename}
#echo "tar -C $tmpdir -xzf $dattgzfile $tmpdatname"
tar -C $tmpdir -xzf $dattgzfile $tmpdatname || { echo "tar -C $tmpdir -xzf $dattgzfile $tmpdatname : failed!"; exit; }
#echo "mv $tmpdir/$tmpdatname -> $tmpdir/${dl}_${dn}"
mv $tmpdir/$tmpdatname $tmpdir/${dl}_${dn}
rmdir $tmpdir/$datname
fi
done
#echo
echo "Making ${target}.png ..."
gnuplot -e "name=\"${target}\"; nx=${nx}; ny=${ny}; ppp=${ppp}; \
rows=\"${values}\"; cols=\"${values}\"; rlabel=\"e_{nl}-e_{l}=\"; clabel=\"e_{n}-e_{nl}=\";
format=\"${tmpdir}/%s_%s\";" $script_png2d_noscale
rm -r $tmpdir
#!/bin/bash
source ./do_parameters.sh
#renew=1
#nt=6400
fromdir=${rootdir}/${datdir}
todir=${rootdir}/png_${nt}
[ ! -d ${fromdir} ] && { echo "Directory ${fromdir} does not exist!" ; exit ; }
[ ! -d ${todir} ] && mkdir ${todir}
filename=`printf "%s%08d%s" ${prefix} ${nt} ${suffix}`
tmpdir=$(mktemp -d)
init_iteration
while next_iteration; do
name=$(get_name)
datname=${name}_dat
dattgzfile=${fromdir}/${datname}.tgz
tmpdatname=${datname}/${filename}
targetfile=${todir}/${datname}.png
if [[ -f $dattgzfile && ( $renew == 1 || !( -f $targetfile ) ) ]]; then
echo $name
title=$(get_title)
tar -C $tmpdir -xzf $dattgzfile ${tmpdatname} || { echo "tar -C $tmpdir -xzf $dattgzfile ${tmpdir}/${tmpdatname} : failed!"; exit; }
#mv ${tmpdatname} $targetfile
gnuplot -e "nx=${nx}; ny=${ny}; nt=${nt}; nts=${nts};
name=\"${tmpdir}/${tmpdatname}\";
title=\"${title}\"; sx=${pic_size_x}; sy=${pic_size_y};
colorn=\"${colorN}\"; colorl=\"${colorL}\"; colore=\"${colorE}\"" ${script_png}
# name=\"${fromdir}/${datname}\";
mv -f ${tmpdir}/${tmpdatname}.png $targetfile
rm ${tmpdir}/${tmpdatname}
rmdir ${tmpdir}/${datname}
fi
done
rmdir $tmpdir
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment