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
RevLine 
[437]1#!/bin/bash
2
3# collects all graphs from subdirectories
[438]4# run this script from the main directory PLOTS
[437]5
[438]6rm -f graphs/*
7cd testcase
[437]8ROOT=$(pwd)
9
[438]10for CASE in * ; do
11    echo $CASE
12    cd $ROOT/$CASE/variant
13    ls
14    for EXP in * ; do
[437]15        echo $EXP
[438]16        cd $ROOT/$CASE/variant/$EXP
17        pwd
18        ls *.png *.gif
[437]19        for IMG in $(ls *.png *.gif) ; do
[438]20            cp $IMG $ROOT/../graphs/${CASE}_${EXP}_${IMG}
[437]21        done
22    done
23done
[438]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.