Last change
on this file since 801 was
437,
checked in by dubos, 8 years ago
|
Plots for DCMIP2016
|
-
Property svn:executable set to
*
|
File size:
697 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # run this script first |
---|
4 | |
---|
5 | # adapt the line below as needed |
---|
6 | RUN_DIR=/glade/scratch/yannm/DCMIP2016/RUNS/ |
---|
7 | |
---|
8 | # the runs must be organized as : $RUN_DIR/TESTCASE/VARIANT |
---|
9 | # with TESTCASE = SUPERCELL ... |
---|
10 | # and VARIANT = dry ... |
---|
11 | # this structure will be reflected in the form tescase/TESTCASE/variant/VARIANT |
---|
12 | # data/TESTCASE/ contains NCL scripts for each test case |
---|
13 | |
---|
14 | ROOT=$(pwd) |
---|
15 | |
---|
16 | cd $RUN_DIR |
---|
17 | TESTS=$(ls) |
---|
18 | echo "Test cases : " $TESTS |
---|
19 | for CASE in $TESTS ; do |
---|
20 | cd $RUN_DIR/$CASE |
---|
21 | VARIANTS=$(ls) |
---|
22 | for VARIANT in $VARIANTS ; do |
---|
23 | DIR=$ROOT/testcase/$CASE/variant/$VARIANT |
---|
24 | mkdir -p $DIR |
---|
25 | cd $DIR |
---|
26 | for x in $RUN_DIR/$CASE/$VARIANT/*.nc ; do |
---|
27 | echo $x |
---|
28 | ln -sf $x . |
---|
29 | done |
---|
30 | done |
---|
31 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.