- Timestamp:
- 06/16/16 23:31:05 (8 years ago)
- Location:
- configs/dcmip2016/PLOTS
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
configs/dcmip2016/PLOTS/copy_graphs.sh
r437 r438 2 2 3 3 # collects all graphs from subdirectories 4 # run first "make_all_graphs" to generate graphs4 # run this script from the main directory PLOTS 5 5 6 rm -f graphs/* 7 cd testcase 6 8 ROOT=$(pwd) 7 9 8 for CASE in test* ; do 9 cd $ROOT/$CASE/data 10 EXPS=$(ls) 11 for EXP in $EXPS ; do 10 for CASE in * ; do 11 echo $CASE 12 cd $ROOT/$CASE/variant 13 ls 14 for EXP in * ; do 12 15 echo $EXP 13 cd $ROOT/$CASE/data/$EXP 16 cd $ROOT/$CASE/variant/$EXP 17 pwd 18 ls *.png *.gif 14 19 for IMG in $(ls *.png *.gif) ; do 15 # echo $IMG ../../graphs/${CASE}_${EXP}_${IMG} 16 cp $IMG $ROOT/graphs/${CASE}_${EXP}_${IMG} 20 cp $IMG $ROOT/../graphs/${CASE}_${EXP}_${IMG} 17 21 done 18 22 done 19 23 done 24 25 # cleanup temporary files 26 cd $ROOT/../graphs 27 rm -f *000*.png 28 29 clear 30 ls -l -
configs/dcmip2016/PLOTS/make_graphs.sh
r437 r438 1 1 #!/bin/bash 2 2 3 # this script should be run from a test case directory (test1, test2, test3) 4 # not from the main directory (PLOTS), where it is stored 5 # from PLOTS, run "make_all_graphs" to make all graphs 3 # this script should be run from a test case directory PLOTS/testcase/CASE 4 # and not from the main directory (PLOTS), where it is stored 6 5 7 6 # execute "bash -l" before running this script … … 12 11 CASE=$(basename $ROOT) 13 12 14 cd data13 cd variant 15 14 EXPS=$(ls) 16 15 17 cd $ROOT18 16 for EXP in $EXPS ; do 19 17 echo $EXP 20 cd $ROOT/ data/$EXP18 cd $ROOT/variant/$EXP 21 19 rm -f *.png *.gif 22 20 ln -s ../../include/* .
Note: See TracChangeset
for help on using the changeset viewer.