From 680368def0d3ae64450717bd28ff51ba759d3539 Mon Sep 17 00:00:00 2001 From: Grant Firl Date: Wed, 1 May 2024 17:05:42 -0400 Subject: [PATCH] add script to download and stage climatological aerosol data and fix typo in HR3 namelist --- ...t_GFS_v17_H3.nml => input_GFS_v17_HR3.nml} | 2 +- contrib/get_aerosol_climo.sh | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) rename ccpp/physics_namelists/{input_GFS_v17_H3.nml => input_GFS_v17_HR3.nml} (99%) create mode 100755 contrib/get_aerosol_climo.sh diff --git a/ccpp/physics_namelists/input_GFS_v17_H3.nml b/ccpp/physics_namelists/input_GFS_v17_HR3.nml similarity index 99% rename from ccpp/physics_namelists/input_GFS_v17_H3.nml rename to ccpp/physics_namelists/input_GFS_v17_HR3.nml index 10d60a77e..a4761fc3e 100644 --- a/ccpp/physics_namelists/input_GFS_v17_H3.nml +++ b/ccpp/physics_namelists/input_GFS_v17_HR3.nml @@ -43,7 +43,7 @@ fhlwr = 1200. ialb = 1 iems = 1 - iaer = 5111 + iaer = 1011 icliq_sw = 2 ico2 = 2 isubc_sw = 2 diff --git a/contrib/get_aerosol_climo.sh b/contrib/get_aerosol_climo.sh new file mode 100755 index 000000000..2039dc732 --- /dev/null +++ b/contrib/get_aerosol_climo.sh @@ -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/ +