Skip to content
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
Copy Markdown
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