Skip to content

Commit

Permalink
Archive ocean and ice files when CDUMP=gdas (NOAA-EMC#1384)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewEichmann-NOAA authored Mar 9, 2023
1 parent d8fdd29 commit 780a511
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/exglobal_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
46 changes: 46 additions & 0 deletions ush/hpssarch_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 780a511

Please sign in to comment.