Skip to content

Commit

Permalink
Maintenance commit: adding new script to retrieve large data files re…
Browse files Browse the repository at this point in the history
…moved from git history
  • Loading branch information
mkavulich committed May 12, 2022
1 parent ab96947 commit 20760ee
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions contrib/get_all_static_data.sh
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/

0 comments on commit 20760ee

Please sign in to comment.