Changeset 438 for configs


Ignore:
Timestamp:
06/16/16 23:31:05 (8 years ago)
Author:
dubos
Message:

Updated DCMIP2016 NCL scripts

Location:
configs/dcmip2016/PLOTS
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • configs/dcmip2016/PLOTS/copy_graphs.sh

    r437 r438  
    22 
    33# collects all graphs from subdirectories 
    4 # run first "make_all_graphs" to generate graphs 
     4# run this script from the main directory PLOTS 
    55 
     6rm -f graphs/* 
     7cd testcase 
    68ROOT=$(pwd) 
    79 
    8 for CASE in test* ; do 
    9     cd $ROOT/$CASE/data 
    10     EXPS=$(ls) 
    11     for EXP in $EXPS ; do 
     10for CASE in * ; do 
     11    echo $CASE 
     12    cd $ROOT/$CASE/variant 
     13    ls 
     14    for EXP in * ; do 
    1215        echo $EXP 
    13         cd $ROOT/$CASE/data/$EXP 
     16        cd $ROOT/$CASE/variant/$EXP 
     17        pwd 
     18        ls *.png *.gif 
    1419        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} 
    1721        done 
    1822    done 
    1923done 
     24 
     25# cleanup temporary files 
     26cd $ROOT/../graphs 
     27rm -f *000*.png 
     28 
     29clear 
     30ls -l  
  • configs/dcmip2016/PLOTS/make_graphs.sh

    r437 r438  
    11#!/bin/bash 
    22 
    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 
    65 
    76# execute "bash -l" before running this script 
     
    1211CASE=$(basename $ROOT) 
    1312 
    14 cd data 
     13cd variant 
    1514EXPS=$(ls) 
    1615 
    17 cd $ROOT 
    1816for EXP in $EXPS ; do 
    1917    echo $EXP 
    20     cd $ROOT/data/$EXP 
     18    cd $ROOT/variant/$EXP 
    2119    rm -f *.png *.gif 
    2220    ln -s ../../include/* . 
Note: See TracChangeset for help on using the changeset viewer.