From 30910e9de9338f177bca3958069b1be31bf03d29 Mon Sep 17 00:00:00 2001 From: George Gayno Date: Fri, 9 Dec 2022 21:28:27 +0000 Subject: [PATCH] Update data retrieval script for v16.3 tarball name change. Fixes #722. --- util/gdas_init/get_v16.data.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/util/gdas_init/get_v16.data.sh b/util/gdas_init/get_v16.data.sh index 9c1934c82..0f72e2c61 100755 --- a/util/gdas_init/get_v16.data.sh +++ b/util/gdas_init/get_v16.data.sh @@ -6,8 +6,8 @@ # the 'prod' v16 tarballs started March 21, 2021 06Z. # # Starting at June 27, 2022 00z, the tarball names were changed. -# Older files had 'prod' in their name. Newer files has 'v16.2' -# in their name. +# Older files had 'prod' in their name. Newer files have the +# GFS version number in their name. #---------------------------------------------------------------------- bundle=$1 @@ -24,18 +24,22 @@ mm_m6=$(echo $date10_m6 | cut -c5-6) dd_m6=$(echo $date10_m6 | cut -c7-8) hh_m6=$(echo $date10_m6 | cut -c9-10) -if [ $yy$mm$dd$hh -ge 2022062700 ]; then - version="v16.2" -else - version="prod" -fi - #---------------------------------------------------------------------- # Account for tarball file name changes starting at # June 27, 2022 at 00z. #---------------------------------------------------------------------- -if [ ${yy_m6}${mm_m6}${dd_m6}${hh_m6} -ge 2022062700 ]; then +if [ $yy$mm$dd$hh -ge 2022112900 ]; then + version="v16.3" +elif [ $yy$mm$dd$hh -ge 2022062700 ]; then + version="v16.2" +else + version="prod" +fi + +if [ ${yy_m6}${mm_m6}${dd_m6}${hh_m6} -ge 2022112900 ]; then + version_enkf="v16.3" +elif [ ${yy_m6}${mm_m6}${dd_m6}${hh_m6} -ge 2022062700 ]; then version_enkf="v16.2" else version_enkf="prod"