From 780a511e51c83b339b02709a782c123a16c5788d Mon Sep 17 00:00:00 2001 From: AndrewEichmann-NOAA <58948505+AndrewEichmann-NOAA@users.noreply.github.com> Date: Thu, 9 Mar 2023 15:59:40 -0500 Subject: [PATCH] Archive ocean and ice files when CDUMP=gdas (#1384) --- scripts/exglobal_archive.sh | 16 +++++++++++++ ush/hpssarch_gen.sh | 46 +++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/scripts/exglobal_archive.sh b/scripts/exglobal_archive.sh index 5bc76d896f..af1daa8afd 100755 --- a/scripts/exglobal_archive.sh +++ b/scripts/exglobal_archive.sh @@ -220,12 +220,28 @@ elif [ "${CDUMP}" = "gdas" ]; then targrp_list="${targrp_list} gdaswave" fi + #gdasocean + if [ "${DO_OCN}" = "YES" ]; then + targrp_list="${targrp_list} gdasocean" + fi + + #gdasice + if [ "${DO_ICE}" = "YES" ]; then + targrp_list="${targrp_list} gdasice" + fi + if [ "${SAVEWARMICA}" = "YES" ] || [ "${SAVEFCSTIC}" = "YES" ]; then targrp_list="${targrp_list} gdas_restarta" if [ "${DO_WAVE}" = "YES" ]; then targrp_list="${targrp_list} gdaswave_restart" fi + if [ "${DO_OCN}" = "YES" ]; then + targrp_list="${targrp_list} gdasocean_restart" + fi + if [ "${DO_ICE}" = "YES" ]; then + targrp_list="${targrp_list} gdasice_restart" + fi fi if [ "${SAVEWARMICB}" = "YES" ] || [ "${SAVEFCSTIC}" = "YES" ]; then diff --git a/ush/hpssarch_gen.sh b/ush/hpssarch_gen.sh index fcaea0f067..a510b5e84b 100755 --- a/ush/hpssarch_gen.sh +++ b/ush/hpssarch_gen.sh @@ -399,6 +399,52 @@ if [[ ${type} = "gdas" ]]; then fi + #.................. + if [[ ${DO_OCN} = "YES" ]]; then + + rm -rf gdasocean.txt + touch gdasocean.txt + rm -rf gdasocean_restart.txt + touch gdasocean_restart.txt + + dirpath="gdas.${PDY}/${cyc}/ocean/" + dirname="./${dirpath}" + + head="gdas.t${cyc}z." + + #........................... + echo "${dirname}/${head}* " >>gdasocean.txt + echo "${dirname}/MOM_input " >>gdasocean.txt + + echo "${dirname}/RESTART/* " >>gdasocean_restart.txt + + dirpath="gdas.${PDY}/${cyc}/med/" + dirname="./${dirpath}" + + echo "${dirname}/RESTART/* " >>gdasocean_restart.txt + + fi + + if [[ ${DO_ICE} = "YES" ]]; then + + rm -rf gdasice.txt + touch gdasice.txt + rm -rf gdasice_restart.txt + touch gdasice_restart.txt + + dirpath="gdas.${PDY}/${cyc}/ice/" + dirname="./${dirpath}" + + head="gdas.t${cyc}z." + + #........................... + echo "${dirname}/${head}* " >>gdasice.txt + echo "${dirname}/ice_in " >>gdasice.txt + + echo "${dirname}/RESTART/* " >>gdasice_restart.txt + + fi + #----------------------------------------------------- fi ##end of gdas