Skip to content

Commit

Permalink
update for hafs downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMeixner-NOAA committed Dec 19, 2024
1 parent b1d31ca commit 7910cbe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -461,17 +461,29 @@ WW3_out() {
fi

# Copy restarts for next cycle for RUN=gdas|enkfgdas|enkfgfs
# TO DO: Will need to add if gefs here for self-cycled GEFS
# not added now since unclear if gefs has appropriate restart times for this yet
if [[ "${RUN}" =~ "gdas" || "${RUN}" == "enkfgfs" ]]; then
local restart_date
restart_date="${model_start_date_next_cycle}"
echo "Copying CICE restarts for 'RUN=${RUN}' at ${restart_date}"
echo "Copying WW3 restarts for 'RUN=${RUN}' at ${restart_date}"
#seconds=$(to_seconds "${restart_date:8:2}0000") # convert HHMMSS to seconds
#source_file="ufs.cpld.ww3.r.${restart_date:0:4}-${restart_date:4:2}-${restart_date:6:2}-${seconds}.nc"
target_file="${restart_date:0:8}.${restart_date:8:2}0000.restart.ww3.nc"
${NCP} "${DATArestart}/WW3_RESTART/${target_file}" \
"${COMOUT_WAVE_RESTART}/${target_file}"
fi

#Copy restarts for downstream usage in HAFS
if [[ "${RUN}" =~ "gdas" ]]; then
local restart_date
restart_date="${next_cycle}"
echo "Copying WW3 restarts for 'RUN=${RUN}' at ${restart_date}"
target_file="${restart_date:0:8}.${restart_date:8:2}0000.restart.ww3.nc"
${NCP} "${DATArestart}/WW3_RESTART/${target_file}" \
"${COMOUT_WAVE_RESTART}/${target_file}"
fi

}


Expand Down

0 comments on commit 7910cbe

Please sign in to comment.