Last change
on this file since 448 was
439,
checked in by dubos, 8 years ago
|
Updated DCMIP2016 NCL scripts
|
-
Property svn:executable set to
*
|
File size:
524 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # collects all graphs from subdirectories |
---|
4 | # run this script from the main directory PLOTS |
---|
5 | |
---|
6 | rm -f graphs/* |
---|
7 | cd testcase |
---|
8 | ROOT=$(pwd) |
---|
9 | |
---|
10 | for CASE in * ; do |
---|
11 | echo $CASE |
---|
12 | cd $ROOT/$CASE/variant |
---|
13 | ls |
---|
14 | for EXP in * ; do |
---|
15 | echo $EXP |
---|
16 | cd $ROOT/$CASE/variant/$EXP |
---|
17 | pwd |
---|
18 | ls *.png *.gif |
---|
19 | for IMG in $(ls *.png *.gif) ; do |
---|
20 | cp $IMG $ROOT/../graphs/${CASE}_${EXP}_${IMG} |
---|
21 | done |
---|
22 | done |
---|
23 | done |
---|
24 | |
---|
25 | cp $ROOT/*/*.png $ROOT/*/*.gif $ROOT/../graphs |
---|
26 | # cleanup temporary files |
---|
27 | cd $ROOT/../graphs |
---|
28 | rm -f *000*.png |
---|
29 | |
---|
30 | clear |
---|
31 | ls -l |
---|
Note: See
TracBrowser
for help on using the repository browser.