-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance commit: adding new script to retrieve large data files re…
…moved from git history
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
#set -ex | ||
|
||
# Directory where this script is located | ||
if [[ $(uname -s) == Darwin ]]; then | ||
MYDIR=$(cd "$(dirname "$(greadlink -f -n "${BASH_SOURCE[0]}" )" )" && pwd -P) | ||
else | ||
MYDIR=$(cd "$(dirname "$(readlink -f -n "${BASH_SOURCE[0]}" )" )" && pwd -P) | ||
fi | ||
BASEDIR=$MYDIR/.. | ||
|
||
# Change to directory containing the physics input data, download and extract archive | ||
data_files=("comparison_data" "physics_input_data" "processed_case_input" "raw_case_input") | ||
|
||
for file in "${data_files[@]}"; do | ||
mkdir -p $BASEDIR/scm/data/$file | ||
cd $BASEDIR/scm/data/$file | ||
echo "Retrieving $file" | ||
# wget https://github.com/NCAR/ccpp-scm/releases/download/v5.1.0/${file}.tar.gz | ||
# tar -xf ${file}.tar.gz | ||
# rm -f ${file}.tar.gz | ||
done | ||
|
||
cd $MYDIR | ||
|
||
#Legacy static data have their own scripts | ||
echo "retrieving mg_inccn_data" | ||
source get_mg_inccn_data.sh | ||
cd $MYDIR | ||
echo "retrieving thompson_tables" | ||
source get_thompson_tables.sh | ||
|
||
cd $BASEDIR/ | ||
|