Skip to content

Commit

Permalink
add script to download and stage climatological aerosol data and fix …
Browse files Browse the repository at this point in the history
…typo in HR3 namelist
  • Loading branch information
grantfirl committed May 1, 2024
1 parent bd3128c commit 680368d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
fhlwr = 1200.
ialb = 1
iems = 1
iaer = 5111
iaer = 1011
icliq_sw = 2
ico2 = 2
isubc_sw = 2
Expand Down
29 changes: 29 additions & 0 deletions contrib/get_aerosol_climo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

#set -ex

# Directory where this script is located
if [[ $(uname -s) == Darwin ]]; then
if [[ $(sw_vers -productVersion) < 12.3 ]]; 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
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=("FV3_aeroclim1" "FV3_aeroclim2" "FV3_aeroclim3" "FV3_aeroclim_optics")

cd $BASEDIR/scm/data/physics_input_data/
for file in "${data_files[@]}"; do
echo "Retrieving $file.tar.gz"
wget https://github.com/NCAR/ccpp-scm/releases/download/v6.0.0/${file}.tar.gz
tar -xvf ${file}.tar.gz
rm -f ${file}.tar.gz
done

cd $BASEDIR/

0 comments on commit 680368d

Please sign in to comment.