Skip to content

Commit 20760ee

Browse files
committed
Maintenance commit: adding new script to retrieve large data files removed from git history
1 parent ab96947 commit 20760ee

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

contrib/get_all_static_data.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+

0 commit comments

Comments
 (0)