From 130cc2e6e6f1981119ffc5687149c42a23579baf Mon Sep 17 00:00:00 2001 From: Grant Firl Date: Mon, 22 Feb 2021 09:42:04 -0700 Subject: [PATCH] add script to retrieve MG IN/CCN data --- contrib/get_mg_inccn_data.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 contrib/get_mg_inccn_data.sh diff --git a/contrib/get_mg_inccn_data.sh b/contrib/get_mg_inccn_data.sh new file mode 100755 index 000000000..c4fa5cd4e --- /dev/null +++ b/contrib/get_mg_inccn_data.sh @@ -0,0 +1,17 @@ +#!/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 +cd $BASEDIR/scm/data/physics_input_data/ +wget https://github.com/NCAR/gmtb-scm/releases/download/v5.0.0-alpha/MG_INCCN_data.tar +tar -xvf MG_INCCN_data.tar +rm -f MG_INCCN_data.tar