Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOM6 backgrounds in cycled DA mode were hardcoded for IAU #1355

Merged
merged 5 commits into from
Mar 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -876,15 +876,12 @@ MOM6_postdet() {
elif [[ "${CDUMP}" =~ "gdas" ]]; then
# Link output files for CDUMP = gdas

# MOM6 does not write out the first forecast hour, so start at FHOUT
local fhr="${FHOUT}"
while [[ "${fhr}" -le "${FHMAX}" ]]; do
# Save MOM6 backgrounds
for fhr in ${OUTPUT_FH}; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, OUTPUT_FH is only valid for atmosphere output. That was the reason for the while loop. If this works for you right now, then its fine for now.
MOM6 output frequency is controlled differently.

local idatestr=$(date -d "${CDATE:0:8} ${CDATE:8:2} + ${fhr} hours" +%Y_%m_%d_%H)
local fhr3=$(printf %03i ${fhr})
local fhr3=$(printf %03i "${fhr}")
$NLN "${COMOUTocean}/${CDUMP}.t${cyc}z.ocnf${fhr3}.nc" "${DATA}/ocn_da_${idatestr}.nc"
local fhr=$((fhr + FHOUT))
done

fi

mkdir -p "${COMOUTocean}/RESTART"
Expand Down