source: configs/dcmip2016/PLOTS/copy_graphs.sh @ 438

Last change on this file since 438 was 438, checked in by dubos, 8 years ago

Updated DCMIP2016 NCL scripts

  • Property svn:executable set to *
File size: 477 bytes
Line 
1#!/bin/bash
2
3# collects all graphs from subdirectories
4# run this script from the main directory PLOTS
5
6rm -f graphs/*
7cd testcase
8ROOT=$(pwd)
9
10for 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
23done
24
25# cleanup temporary files
26cd $ROOT/../graphs
27rm -f *000*.png
28
29clear
30ls -l
Note: See TracBrowser for help on using the repository browser.