Skip to content

Commit

Permalink
*Deliver hafs.trak.patcf file to COMhafs and NOSCRUB dirs.
Browse files Browse the repository at this point in the history
*Turn off delivering hafs.trak.atcfunix.orig file to NOSCRUB dir.
  • Loading branch information
BinLiu-NOAA committed Apr 25, 2022
1 parent 4506134 commit 832ba6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 8 additions & 3 deletions scripts/exhafs_atm_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ sat_grb2indx=${out_prefix}.hafs${gridstr}.sat.f${FHR3}.grb2.idx
trk_grb2file=${out_prefix}.hafs${gridstr}.trk.f${FHR3}.grb2
trk_grb2indx=${out_prefix}.hafs${gridstr}.trk.f${FHR3}.grb2.ix

fort_patcf="fort.6$(printf "%02d" ${ng})"
trk_patcf=${out_prefix}.hafs.trak.patcf

# Check if post has processed this forecast hour previously
if [ -s ${INPdir}/post${nestdotstr}f${FHR3} ] && \
[ ${INPdir}/post${nestdotstr}f${FHR3} -nt ${INPdir}/logf${FHR3} ] && \
Expand Down Expand Up @@ -440,13 +443,15 @@ if [ -s ${INPdir}/INPUT/${oro_data} ] && [ ! -s ${INPdir}/RESTART/${oro_data} ];
${NCP} -pL ${INPdir}/INPUT/${oro_data} ${INPdir}/RESTART/
fi

# Pass over the grid_mspec files for moving nest (useful for storm cycling)
if [[ "${is_moving_nest:-".false."}" = *".true."* ]] || [[ "${is_moving_nest:-".false."}" = *".T."* ]] ; then
# Pass over the grid_mspec files for moving nest (useful for storm cycling)
if [ $FHR -lt 12 ] && [ -s ${INPdir}/${grid_mspec} ]; then
${NCP} -p ${INPdir}/${grid_mspec} ${INPdir}/RESTART/
fi
fi

# Deliver hafs.trak.patcf if exists
if [ $FHR -eq $NHRS ] && [ -s ${INPdir}/${fort_patcf} ]; then
${NCP} -p ${fort_patcf} ${COMOUTpost}/${trk_patcf}
fi
fi

# Write out the postdone message file
Expand Down
6 changes: 5 additions & 1 deletion scripts/exhafs_product.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,17 @@ fi
if [ ${COMOUTproduct} = ${COMhafs} ]; then
# Deliver track file to NOSCRUB:
mkdir -p ${CDNOSCRUB}/${SUBEXPT}
cp -p ${COMhafs}/${all_atcfunix}.orig ${CDNOSCRUB}/${SUBEXPT}/.
# cp -p ${COMhafs}/${all_atcfunix}.orig ${CDNOSCRUB}/${SUBEXPT}/.
if [ -s ${COMhafs}/${all_atcfunix} ]; then
cp -p ${COMhafs}/${all_atcfunix} ${CDNOSCRUB}/${SUBEXPT}/.
fi
if [ -s ${COMhafs}/${trk_atcfunix} ] && [ $STORMNUM != "00" ]; then
cp -p ${COMhafs}/${trk_atcfunix} ${CDNOSCRUB}/${SUBEXPT}/.
fi
# Deliver patcf file to NOSCRUB:
if [ -s ${COMhafs}/${out_prefix}.hafs.trak.patcf ]; then
${NCP} -p ${COMhafs}/${out_prefix}.hafs.trak.patcf ${CDNOSCRUB}/${SUBEXPT}/.
fi
fi

fi
Expand Down

0 comments on commit 832ba6b

Please sign in to comment.