File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # set -ex
4+
5+ # Directory where this script is located
6+ if [[ $( uname -s) == Darwin ]]; then
7+ MYDIR=$( cd " $( dirname " $( greadlink -f -n " ${BASH_SOURCE[0]} " ) " ) " && pwd -P)
8+ else
9+ MYDIR=$( cd " $( dirname " $( readlink -f -n " ${BASH_SOURCE[0]} " ) " ) " && pwd -P)
10+ fi
11+ BASEDIR=$MYDIR /..
12+
13+ # Change to directory containing the physics input data, download and extract archive
14+ data_files=(" comparison_data" " physics_input_data" " processed_case_input" " raw_case_input" )
15+
16+ for file in " ${data_files[@]} " ; do
17+ mkdir -p $BASEDIR /scm/data/$file
18+ cd $BASEDIR /scm/data/$file
19+ echo " Retrieving $file "
20+ # wget https://github.com/NCAR/ccpp-scm/releases/download/v5.1.0/${file}.tar.gz
21+ # tar -xf ${file}.tar.gz
22+ # rm -f ${file}.tar.gz
23+ done
24+
25+ cd $MYDIR
26+
27+ # Legacy static data have their own scripts
28+ echo " retrieving mg_inccn_data"
29+ source get_mg_inccn_data.sh
30+ cd $MYDIR
31+ echo " retrieving thompson_tables"
32+ source get_thompson_tables.sh
33+
34+ cd $BASEDIR /
35+
You can’t perform that action at this time.
0 commit comments