source: configs/dcmip2016/PLOTS/make_links.sh @ 437

Last change on this file since 437 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
6RUN_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
14ROOT=$(pwd)
15
16cd $RUN_DIR
17TESTS=$(ls)
18echo "Test cases : " $TESTS
19for 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
31done
Note: See TracBrowser for help on using the repository browser.