Skip to content

Commit

Permalink
Updates for orog reorg in forecast script
Browse files Browse the repository at this point in the history
- Move OROFIX and FIX_SFC path settings earlier so OROFIX can be used
to define a path above where it was previously set.
- Replace "${FIX_DIR}/orog/${CASE}" with "${OROFIX}".
- Update filename for orog data tile files.

Refs NOAA-EMC#1981
  • Loading branch information
KateFriedman-NOAA committed Nov 6, 2023
1 parent f78d110 commit b8075d0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,17 @@ EOF
#--------------------------------------------------------------------------
# Grid and orography data

OROFIX=${OROFIX:-"${FIX_DIR}/orog/${CASE}"}
FIX_SFC=${FIX_SFC:-"${OROFIX}/sfc"}

if [[ ${cplflx} = ".false." ]] ; then
${NLN} "${FIX_DIR}/orog/${CASE}/${CASE}_mosaic.nc" "${DATA}/INPUT/grid_spec.nc"
${NLN} "${OROFIX}/${CASE}_mosaic.nc" "${DATA}/INPUT/grid_spec.nc"
else
${NLN} "${FIX_DIR}/orog/${CASE}/${CASE}_mosaic.nc" "${DATA}/INPUT/${CASE}_mosaic.nc"
${NLN} "${OROFIX}/${CASE}_mosaic.nc" "${DATA}/INPUT/${CASE}_mosaic.nc"
fi

OROFIX=${OROFIX:-"${FIX_DIR}/orog/${CASE}.mx${OCNRES}_frac"}
FIX_SFC=${FIX_SFC:-"${OROFIX}/sfc"}
for n in $(seq 1 "${ntiles}"); do
${NLN} "${OROFIX}/oro_${CASE}.mx${OCNRES}.tile${n}.nc" "${DATA}/INPUT/oro_data.tile${n}.nc"
${NLN} "${OROFIX}/${CASE}.mx${OCNRES}_oro_data.tile${n}.nc" "${DATA}/INPUT/oro_data.tile${n}.nc"
${NLN} "${OROFIX}/${CASE}_grid.tile${n}.nc" "${DATA}/INPUT/${CASE}_grid.tile${n}.nc"
done

Expand Down

0 comments on commit b8075d0

Please sign in to comment.