Skip to content

Commit

Permalink
Merge pull request #465 from grantfirl/add_aero_clim_data
Browse files Browse the repository at this point in the history
Download climatological aerosol data and fix HR3 nml typo
  • Loading branch information
grantfirl authored May 21, 2024
2 parents a33f798 + 137bbfc commit 1dd3d88
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 1dd3d88

Please sign in to comment.