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

Update wave jobs to use COMIN/COMOUT #2643

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
63c47ab
../jobs/JGLOBAL_WAVE_POST_BNDPNT
henrywinterbottom-wxdev May 24, 2024
74370c4
Update.
henrywinterbottom-wxdev May 24, 2024
47f873c
Wave post-processing script fixes.
henrywinterbottom-wxdev May 25, 2024
8427e46
Updates for COMIN/COMOUT.
henrywinterbottom-wxdev May 27, 2024
257ec6b
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2451
HenryRWinterbottom May 29, 2024
5bafc6b
Bringing branch UTD with WIP.
HenryRWinterbottom May 29, 2024
1861a77
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2451
HenryRWinterbottom May 29, 2024
b8e0c00
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2451
HenryRWinterbottom May 30, 2024
8432581
COMIN/COMOUT updates/corrections.
HenryRWinterbottom May 30, 2024
3118937
Update jobs/JGLOBAL_WAVE_INIT
HenryRWinterbottom May 31, 2024
31082aa
Update jobs/JGLOBAL_WAVE_POST_BNDPNT
HenryRWinterbottom May 31, 2024
a9a0258
Update jobs/JGLOBAL_WAVE_POST_BNDPNTBLL
HenryRWinterbottom May 31, 2024
94a9688
Update jobs/JGLOBAL_WAVE_POST_PNT
HenryRWinterbottom May 31, 2024
cdb0e82
Update jobs/JGLOBAL_WAVE_POST_SBS
HenryRWinterbottom May 31, 2024
883fa7c
Update jobs/JGLOBAL_WAVE_POST_SBS
HenryRWinterbottom May 31, 2024
2a81ae8
Update jobs/JGLOBAL_WAVE_PRDGEN_BULLS
HenryRWinterbottom May 31, 2024
87e2492
Update jobs/JGLOBAL_WAVE_PRDGEN_GRIDDED
HenryRWinterbottom May 31, 2024
4d27a6c
Update jobs/JGLOBAL_WAVE_PREP
HenryRWinterbottom May 31, 2024
cb1764c
Update jobs/JGLOBAL_WAVE_PRDGEN_GRIDDED
HenryRWinterbottom May 31, 2024
1241ede
Update scripts/exgfs_wave_init.sh
HenryRWinterbottom May 31, 2024
b0c7bad
Update jobs/JGLOBAL_WAVE_INIT
HenryRWinterbottom May 31, 2024
4b2f7ce
Addressing reviewer suggestion.
HenryRWinterbottom May 31, 2024
8f65499
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom May 31, 2024
cc4b281
Update ush/wave_tar.sh
HenryRWinterbottom Jun 4, 2024
d17d688
Update ush/wave_prnc_ice.sh
HenryRWinterbottom Jun 4, 2024
7438915
Update ush/wave_grid_interp_sbs.sh
HenryRWinterbottom Jun 4, 2024
226e112
Update ush/wave_grid_interp_sbs.sh
HenryRWinterbottom Jun 4, 2024
2acd4cc
Update jobs/JGLOBAL_WAVE_POST_SBS
HenryRWinterbottom Jun 4, 2024
52bfa61
Update jobs/JGLOBAL_WAVE_POST_BNDPNT
HenryRWinterbottom Jun 4, 2024
31e3e88
Update jobs/JGLOBAL_WAVE_POST_PNT
HenryRWinterbottom Jun 4, 2024
6be0cef
Update jobs/JGLOBAL_WAVE_POST_SBS
HenryRWinterbottom Jun 4, 2024
4ce3fe5
Update jobs/JGLOBAL_WAVE_POST_BNDPNT
HenryRWinterbottom Jun 4, 2024
96e3b42
Update jobs/JGLOBAL_WAVE_INIT
HenryRWinterbottom Jun 4, 2024
a6b36c7
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 4, 2024
a3fcbe1
Fixed typo detected by linter.
henrywinterbottom-wxdev Jun 4, 2024
4a5fef0
Added missing semicolon.
henrywinterbottom-wxdev Jun 4, 2024
0131597
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 6, 2024
526c64c
Merge branch 'NOAA-EMC:develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 7, 2024
fc6d0c2
Addressed reviewer comment.
HenryRWinterbottom Jun 10, 2024
e125237
Addressed reviewer comments.
HenryRWinterbottom Jun 10, 2024
3351699
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 11, 2024
0c53d4b
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 12, 2024
5b35906
Addressed reviewer comments.
HenryRWinterbottom Jun 12, 2024
cde9194
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 12, 2024
1186cad
Bug fix.
HenryRWinterbottom Jun 12, 2024
cf666ea
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 13, 2024
cfc4f78
Addressed reviewer comments.
henrywinterbottom-wxdev Jun 13, 2024
b224d62
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 13, 2024
a549600
Shellcheck linter.
henrywinterbottom-wxdev Jun 13, 2024
03eba4e
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 13, 2024
416b524
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 17, 2024
452fcd9
Merge branch 'develop' into feature/gwdev_issue_2451
aerorahul Jun 18, 2024
7401664
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 20, 2024
acbf9c9
Addressed reviewer comment.
HenryRWinterbottom Jun 20, 2024
0fed287
Update jobs/JGLOBAL_WAVE_PREP
HenryRWinterbottom Jun 20, 2024
0f91c5c
Removed unneccessary template creation.
HenryRWinterbottom Jun 20, 2024
7922af7
Merge branch 'feature/gwdev_issue_2451' of https://github.com/HenryWi…
HenryRWinterbottom Jun 20, 2024
eb5fe34
Removed unnecessary template.
HenryRWinterbottom Jun 20, 2024
9ecbfd5
Addressed reviewer comment.
HenryRWinterbottom Jun 20, 2024
0134119
Fixed linter error; updated call.
HenryRWinterbottom Jun 20, 2024
abef5ef
Fixed linter error.
HenryRWinterbottom Jun 20, 2024
401bbba
Updated flags.
HenryRWinterbottom Jun 20, 2024
ccc0718
Reverted previous mkdir call flags.
HenryRWinterbottom Jun 20, 2024
0474c12
Update jobs/JGLOBAL_WAVE_PRDGEN_GRIDDED
HenryRWinterbottom Jun 21, 2024
aff4814
Addressed reviewer comment.
HenryRWinterbottom Jun 21, 2024
6214778
Merge branch 'develop' into feature/gwdev_issue_2451
aerorahul Jun 21, 2024
26ba301
Corrected CI/CD detected bug.
HenryRWinterbottom Jun 21, 2024
11a7937
Merge branch 'feature/gwdev_issue_2451' of https://github.com/HenryWi…
HenryRWinterbottom Jun 21, 2024
67417a3
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 24, 2024
63904c2
Update jobs/JGLOBAL_WAVE_POST_SBS
HenryRWinterbottom Jun 25, 2024
fbbd643
Merge branch 'develop' into feature/gwdev_issue_2451
HenryRWinterbottom Jun 25, 2024
e17eec7
Made correction to path causing issue for RDHPCS Hercules.
HenryRWinterbottom Jun 25, 2024
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
5 changes: 3 additions & 2 deletions jobs/JGLOBAL_WAVE_INIT
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ export errchk=${errchk:-err_chk}
export MP_PULSE=0

# Set COM Paths
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_WAVE_PREP
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_WAVE_PREP:COM_WAVE_PREP_TMPL

mkdir -m 775 -p ${COM_WAVE_PREP}
if [[ ! -d "${COMOUT_WAVE_PREP}" ]]; then mkdir -p "${COMOUT_WAVE_PREP}"; fi
aerorahul marked this conversation as resolved.
Show resolved Hide resolved

# Set mpi serial command
export wavempexec=${wavempexec:-"mpirun -n"}
Expand Down
7 changes: 5 additions & 2 deletions jobs/JGLOBAL_WAVE_POST_BNDPNT
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ export errchk=${errchk:-err_chk}
export MP_PULSE=0

# Set COM Paths and GETGES environment
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_WAVE_PREP COM_WAVE_HISTORY COM_WAVE_STATION
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMIN_WAVE_HISTORY:COM_WAVE_HISTORY_TMPL \
COMOUT_WAVE_STATION:COM_WAVE_STATION_TMPL

if [[ ! -d ${COM_WAVE_STATION} ]]; then mkdir -p "${COM_WAVE_STATION}"; fi
if [[ ! -d "${COMOUT_WAVE_STATION}" ]]; then mkdir -p "${COMOUT_WAVE_STATION}"; fi

# Set wave model ID tag to include member number
# if ensemble; waveMEMB var empty in deterministic
Expand Down
7 changes: 5 additions & 2 deletions jobs/JGLOBAL_WAVE_POST_BNDPNTBLL
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ export CDATE=${PDY}${cyc}
export MP_PULSE=0

# Set COM Paths and GETGES environment
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_WAVE_PREP COM_WAVE_HISTORY COM_WAVE_STATION
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMIN_WAVE_HISTORY:COM_WAVE_HISTORY_TMPL \
COMOUT_WAVE_STATION:COM_WAVE_STATION_TMPL

if [[ ! -d ${COM_WAVE_STATION} ]]; then mkdir -p "${COM_WAVE_STATION}"; fi
if [[ ! -d "${COMOUT_WAVE_STATION}" ]]; then mkdir -p "${COMOUT_WAVE_STATION}"; fi

# Set wave model ID tag to include member number
# if ensemble; waveMEMB var empty in deterministic
Expand Down
7 changes: 5 additions & 2 deletions jobs/JGLOBAL_WAVE_POST_PNT
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ export errchk=${errchk:-err_chk}
export MP_PULSE=0

# Set COM Paths and GETGES environment
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_WAVE_PREP COM_WAVE_HISTORY COM_WAVE_STATION
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMIN_WAVE_HISTORY:COM_WAVE_HISTORY_TMPL \
COMOUT_WAVE_STATION:COM_WAVE_STATION_TMPL

if [[ ! -d ${COM_WAVE_STATION} ]]; then mkdir -p "${COM_WAVE_STATION}"; fi
if [[ ! -d "${COMOUT_WAVE_STATION}" ]]; then mkdir -p "${COMOUT_WAVE_STATION}"; fi

# Set wave model ID tag to include member number
# if ensemble; waveMEMB var empty in deterministic
Expand Down
12 changes: 9 additions & 3 deletions jobs/JGLOBAL_WAVE_POST_SBS
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ export errchk=${errchk:-err_chk}
export MP_PULSE=0

# Set COM Paths and GETGES environment
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_WAVE_PREP COM_WAVE_HISTORY COM_WAVE_GRID

mkdir -p "${COM_WAVE_GRID}"
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMIN_WAVE_HISTORY:COM_WAVE_HISTORY_TMPL \
COMOUT_WAVE_PREP:COM_WAVE_PREP_TMPL \
WalterKolczynski-NOAA marked this conversation as resolved.
Show resolved Hide resolved
WalterKolczynski-NOAA marked this conversation as resolved.
Show resolved Hide resolved
COMOUT_WAVE_GRID:COM_WAVE_GRID_TMPL

for out_dir in "${COMOUT_WAVE_PREP}" "${COMOUT_WAVE_GRID}"; do
if [[ ! -d "${out_dir}" ]]; then mkdir -p "${out_dir}"; fi
done


# Set wave model ID tag to include member number
Expand Down
6 changes: 4 additions & 2 deletions jobs/JGLOBAL_WAVE_PRDGEN_BULLS
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ export SENDDBN_NTC=${SENDDBN_NTC:-YES}
export SENDDBN=${SENDDBN:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_WAVE_STATION COM_WAVE_WMO
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_STATION:COM_WAVE_STATION_TMPL \
COMOUT_WAVE_WMO:COM_WAVE_WMO_TMPL

if [[ ! -d ${COM_WAVE_WMO} ]]; then mkdir -p "${COM_WAVE_WMO}"; fi
if [[ ! -d ${COMOUT_WAVE_WMO} ]]; then mkdir -p "${COMOUT_WAVE_WMO}"; fi

###################################
# Execute the Script
Expand Down
7 changes: 4 additions & 3 deletions jobs/JGLOBAL_WAVE_PRDGEN_GRIDDED
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ export SENDDBN_NTC=${SENDDBN_NTC:-YES}
export SENDDBN=${SENDDBN:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_WAVE_GRID COM_WAVE_WMO
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_GRID:COM_WAVE_GRID_TMPL \
WalterKolczynski-NOAA marked this conversation as resolved.
Show resolved Hide resolved
COMOUT_WAVE_WMO:COM_WAVE_WMO_TMPL

if [[ ! -d ${COM_WAVE_WMO} ]]; then mkdir -p "${COM_WAVE_WMO}"; fi
if [[ ! -d ${COMOUT_WAVE_WMO} ]]; then mkdir -p "${COMOUT_WAVE_WMO}"; fi

mkdir -p "${COM_WAVE_WMO}"

###################################
# Execute the Script
Expand Down
9 changes: 6 additions & 3 deletions jobs/JGLOBAL_WAVE_PREP
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ export MP_PULSE=0
export CDO=${CDO_ROOT}/bin/cdo

# Set COM Paths and GETGES environment
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_OBS COM_WAVE_PREP
declare_from_tmpl -rx COM_RTOFS
[[ ! -d ${COM_WAVE_PREP} ]] && mkdir -m 775 -p "${COM_WAVE_PREP}"
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_OBS:COM_OBS_TMPL \
HenryRWinterbottom marked this conversation as resolved.
Show resolved Hide resolved
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMOUT_WAVE_PREP:COM_WAVE_PREP_TMPL \
WalterKolczynski-NOAA marked this conversation as resolved.
Show resolved Hide resolved
COMIN_RTOFS:COM_RTOFS_TMPL
if [[ ! -d ${COMOUT_WAVE_PREP} ]]; then mkdir -p "${COMOUT_WAVE_PREP}"; fi

# Execute the Script
${SCRgfs}/exgfs_wave_prep.sh
Expand Down
17 changes: 8 additions & 9 deletions scripts/exgfs_wave_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ source "${USHgfs}/preamble.sh"
grdALL=$(printf "%s\n" "${array[@]}" | sort -u | tr '\n' ' ')

for grdID in ${grdALL}; do
if [[ -f "${COM_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" ]]; then
if [[ -f "${COMOUT_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" ]]; then
set +x
echo " Mod def file for ${grdID} found in ${COM_WAVE_PREP}. copying ...."
echo " Mod def file for ${grdID} found in ${COMOUT_WAVE_PREP}. copying ...."
set_trace
cp "${COM_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" "mod_def.${grdID}"
cp "${COMOUT_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" "mod_def.${grdID}"

else
set +x
echo " Mod def file for ${grdID} not found in ${COM_WAVE_PREP}. Setting up to generate ..."
echo " Mod def file for ${grdID} not found in ${COMOUT_WAVE_PREP}. Setting up to generate ..."
echo ' '
set_trace
if [ -f ${FIXgfs}/wave/ww3_grid.inp.$grdID ]
Expand Down Expand Up @@ -125,7 +125,6 @@ source "${USHgfs}/preamble.sh"
fi
#TO DO: how do we say "it's unstructured, and therefore need to have error check here"

[[ ! -d "${COM_WAVE_PREP}" ]] && mkdir -m 775 -p "${COM_WAVE_PREP}"
if [ ${CFP_MP:-"NO"} = "YES" ]; then
echo "$nmoddef ${USHgfs}/wave_grid_moddef.sh $grdID > $grdID.out 2>&1" >> cmdfile
else
Expand Down Expand Up @@ -190,7 +189,7 @@ source "${USHgfs}/preamble.sh"
# 1.a.3 File check

for grdID in ${grdALL}; do
if [[ -f "${COM_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" ]]; then
if [[ -f "${COMOUT_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" ]]; then
set +x
echo ' '
echo " mod_def.$grdID succesfully created/copied "
Expand All @@ -213,10 +212,10 @@ source "${USHgfs}/preamble.sh"
# Copy to other members if needed
if (( NMEM_ENS > 0 )); then
for mem in $(seq -f "%03g" 1 "${NMEM_ENS}"); do
MEMDIR="mem${mem}" YMD=${PDY} HH=${cyc} declare_from_tmpl COM_WAVE_PREP_MEM:COM_WAVE_PREP_TMPL
mkdir -p "${COM_WAVE_PREP_MEM}"
MEMDIR="mem${mem}" YMD=${PDY} HH=${cyc} declare_from_tmpl COMOUT_WAVE_PREP_MEM:COM_WAVE_PREP_TMPL
mkdir -p "${COMOUT_WAVE_PREP_MEM}"
for grdID in ${grdALL}; do
${NLN} "${COM_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" "${COM_WAVE_PREP_MEM}/${RUN}wave.mod_def.${grdID}"
${NLN} "${COMOUT_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" "${COMOUT_WAVE_PREP_MEM}/${RUN}wave.mod_def.${grdID}"
done
done
fi
Expand Down
13 changes: 7 additions & 6 deletions scripts/exgfs_wave_post_gridded_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# 2020-06-10 J-Henrique Alves: Porting to R&D machine Hera
# 2020-07-31 Jessica Meixner: Removing points, now gridded data only
#
# COM inputs:
#
# $Id$
#
# Attributes:
Expand Down Expand Up @@ -103,12 +105,12 @@ source "${USHgfs}/preamble.sh"

# 1.a.1 Copy model definition files
for grdID in ${waveGRD} ${wavepostGRD} ${waveinterpGRD}; do
if [[ -f "${COM_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" ]]; then
if [[ -f "${COMIN_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" ]]; then
set +x
echo " Mod def file for ${grdID} found in ${COM_WAVE_PREP}. copying ...."
echo " Mod def file for ${grdID} found in ${COMIN_WAVE_PREP}. copying ...."
set_trace

cp -f "${COM_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" "mod_def.${grdID}"
cp -f "${COMIN_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" "mod_def.${grdID}"
fi
done

Expand Down Expand Up @@ -257,9 +259,8 @@ source "${USHgfs}/preamble.sh"

if [ $fhr = $fhrg ]
then

for wavGRD in ${waveGRD}; do
gfile="${COM_WAVE_HISTORY}/${WAV_MOD_TAG}.out_grd.${wavGRD}.${YMD}.${HMS}"
gfile="${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_grd.${wavGRD}.${YMD}.${HMS}"
if ! wait_for_file "${gfile}" "${sleep_interval}" "${iwaitmax}"; then
echo " FATAL ERROR : NO RAW FIELD OUTPUT FILE out_grd.${grdID}"
echo "${WAV_MOD_TAG} post ${grdID} ${PDY} ${cycle} : field output missing."
Expand Down Expand Up @@ -405,7 +406,7 @@ source "${USHgfs}/preamble.sh"
ENSTAG=""
if [ ${waveMEMB} ]; then ENSTAG=".${membTAG}${waveMEMB}" ; fi
gribchk="${RUN}wave.${cycle}${ENSTAG}.${GRDNAME}.${GRDRES}.f${FH3}.grib2"
if [ ! -s ${COM_WAVE_GRID}/${gribchk} ]; then
if [ ! -s ${COMOUT_WAVE_GRID}/${gribchk} ]; then
set +x
echo ' '
echo '********************************************'
Expand Down
23 changes: 13 additions & 10 deletions scripts/exgfs_wave_post_pnt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
# 2020-07-30 Jessica Meixner: Points only - no gridded data
# 2020-09-29 Jessica Meixner: optimized by changing loop structures
#
# COM inputs:
# - ${COMIN_WAVE_PREP}/${RUN}wave.mod_def.${grdID}
# - ${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_pnt.${waveuoutpGRD}.${PDY}.${HMS}
#
# $Id$
#
# Attributes:
Expand Down Expand Up @@ -117,12 +121,12 @@ source "${USHgfs}/preamble.sh"
# Copy model definition files
iloop=0
for grdID in ${waveuoutpGRD}; do
if [[ -f "${COM_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" ]]; then
if [[ -f "${COMIN_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" ]]; then
set +x
echo " Mod def file for ${grdID} found in ${COM_WAVE_PREP}. copying ...."
echo " Mod def file for ${grdID} found in ${COMIN_WAVE_PREP}. copying ...."
set_trace

cp -f "${COM_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" "mod_def.${grdID}"
cp -f "${COMIN_WAVE_PREP}/${RUN}wave.mod_def.${grdID}" "mod_def.${grdID}"
iloop=$((iloop + 1))
fi
done
Expand Down Expand Up @@ -247,11 +251,10 @@ source "${USHgfs}/preamble.sh"
-e "s/FORMAT/F/g" \
ww3_outp_spec.inp.tmpl > ww3_outp.inp

${NLN} mod_def.${waveuoutpGRD} mod_def.ww3
HH=$(date --utc -d "${PDY:0:8} ${cyc} + ${FHMIN_WAV} hours" +%H)
HMS="${HH}0000"
if [[ -f "${COM_WAVE_HISTORY}/${WAV_MOD_TAG}.out_pnt.${waveuoutpGRD}.${PDY}.${HMS}" ]]; then
${NLN} "${COM_WAVE_HISTORY}/${WAV_MOD_TAG}.out_pnt.${waveuoutpGRD}.${PDY}.${HMS}" \
${NLN} mod_def.$waveuoutpGRD mod_def.ww3
HMS="${cyc}0000"
if [[ -f "${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_pnt.${waveuoutpGRD}.${PDY}.${HMS}" ]]; then
${NLN} "${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_pnt.${waveuoutpGRD}.${PDY}.${HMS}" \
"./out_pnt.${waveuoutpGRD}"
else
echo '*************************************************** '
Expand Down Expand Up @@ -372,7 +375,7 @@ source "${USHgfs}/preamble.sh"
export BULLDATA=${DATA}/output_$YMDHMS
cp $DATA/mod_def.${waveuoutpGRD} mod_def.${waveuoutpGRD}

pfile="${COM_WAVE_HISTORY}/${WAV_MOD_TAG}.out_pnt.${waveuoutpGRD}.${YMD}.${HMS}"
pfile="${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_pnt.${waveuoutpGRD}.${YMD}.${HMS}"
if [ -f ${pfile} ]
then
${NLN} ${pfile} ./out_pnt.${waveuoutpGRD}
Expand Down Expand Up @@ -696,6 +699,6 @@ source "${USHgfs}/preamble.sh"
# 4. Ending output


exit $exit_code
exit "${exit_code}"

# End of MWW3 point prostprocessor script ---------------------------------------- #
16 changes: 10 additions & 6 deletions scripts/exgfs_wave_prdgen_bulls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
# Remarks : #
# - Supplemental error output is witten to the gfswave_prdgbulls.log file. #
# #
# COM inputs: #
# - ${COMIN_WAVE_STATION}/${RUNwave}.${cycle}.cbull_tar #
# COM outputs: #
# - ${COMOUT_WAVE_WMO}/awipsbull.${cycle}.${RUNwave} #
# #
# Origination : 05/02/2007 #
# Last update : 08/20/2020 #
Expand Down Expand Up @@ -52,11 +56,11 @@ source "${USHgfs}/preamble.sh"

# 1. Get necessary files
set +x
echo " Copying bulletins from ${COM_WAVE_STATION}"
echo " Copying bulletins from ${COMIN_WAVE_STATION}"
set_trace

# 1.a Link the input file and untar it
BullIn="${COM_WAVE_STATION}/${RUNwave}.${cycle}.cbull_tar"
BullIn="${COMIN_WAVE_STATION}/${RUNwave}.${cycle}.cbull_tar"
if [ -f $BullIn ]; then
cp $BullIn cbull.tar
else
Expand Down Expand Up @@ -170,7 +174,7 @@ source "${USHgfs}/preamble.sh"
set_trace

formbul.pl -d "${headr}" -f "${fname}" -j "${job}" -m "${RUNwave}" \
-p "${COM_WAVE_WMO}" -s "NO" -o "${oname}" > formbul.out 2>&1
-p "${COMOUT_WAVE_WMO}" -s "NO" -o "${oname}" > formbul.out 2>&1
OK=$?

if [ "$OK" != '0' ] || [ ! -f $oname ]; then
Expand All @@ -196,15 +200,15 @@ source "${USHgfs}/preamble.sh"

# 3. Send output files to the proper destination
set_trace
cp "awipsbull.${cycle}.${RUNwave}" "${COM_WAVE_WMO}/awipsbull.${cycle}.${RUNwave}"
cp "awipsbull.${cycle}.${RUNwave}" "${COMOUT_WAVE_WMO}/awipsbull.${cycle}.${RUNwave}"
if [ "$SENDDBN_NTC" = YES ]; then
make_ntc_bull.pl "WMOBH" "NONE" "KWBC" "NONE" "${DATA}/awipsbull.${cycle}.${RUNwave}" \
"${COM_WAVE_WMO}/awipsbull.${cycle}.${RUNwave}"
"${COMOUT_WAVE_WMO}/awipsbull.${cycle}.${RUNwave}"
else
if [ "${envir}" = "para" ] || [ "${envir}" = "test" ] || [ "${envir}" = "dev" ]; then
echo "Making NTC bulletin for parallel environment, but do not alert."
(export SENDDBN=NO; make_ntc_bull.pl "WMOBH" "NONE" "KWBC" "NONE" \
"${DATA}/awipsbull.${cycle}.${RUNwave}" "${COM_WAVE_WMO}/awipsbull.${cycle}.${RUNwave}")
"${DATA}/awipsbull.${cycle}.${RUNwave}" "${COMOUT_WAVE_WMO}/awipsbull.${cycle}.${RUNwave}")
fi
fi

Expand Down
12 changes: 8 additions & 4 deletions scripts/exgfs_wave_prdgen_gridded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
# Remarks : #
# - Supplemental error output is witten to the wave.log file. #
# #
# COM inputs: #
# - ${COMIN_WAVE_GRID}/${RUNwave}.${cycle}.${grdID}.f${fhr}.grib2 #
# #
# COM outputs: #
# - ${COMOUT_WAVE_WMO}/grib2.${cycle}.f${fhr}.awipsww3_${grdOut} #
# #
# Origination : 05/02/2007 #
# Last update : 10/08/2020 #
Expand Down Expand Up @@ -104,7 +109,6 @@ grids=${grids:-ak_10m at_10m ep_10m wc_10m glo_30m}
echo "$RUNwave $grdID ${fhr} prdgen $date $cycle : GRIB file missing." >> $wavelog
err=1;export err;${errchk} || exit ${err}
fi

GRIBOUT=$RUNwave.$cycle.$grdID.f${fhr}.clipped.grib2

iparam=1
Expand Down Expand Up @@ -216,16 +220,16 @@ grids=${grids:-ak_10m at_10m ep_10m wc_10m glo_30m}
#set_trace
#set +x
echo " Saving $AWIPSGRB.$grdOut.f${fhr} as grib2.$cycle.awipsww3_${grdID}.f${fhr}"
echo " in ${COM_WAVE_WMO}"
echo " in ${COMOUT_WAVE_WMO}"
#set_trace
cp "${AWIPSGRB}.${grdID}.f${fhr}" "${COM_WAVE_WMO}/grib2.${cycle}.f${fhr}.awipsww3_${grdOut}"
cp "${AWIPSGRB}.${grdID}.f${fhr}" "${COMOUT_WAVE_WMO}/grib2.${cycle}.f${fhr}.awipsww3_${grdOut}"
#set +x


if [ "$SENDDBN" = 'YES' ]
then
echo " Sending $AWIPSGRB.$grdID.f${fhr} to DBRUN."
"${DBNROOT}/bin/dbn_alert" GRIB_LOW "${RUN}" "${job}" "${COM_WAVE_WMO}/grib2.${cycle}.f${fhr}.awipsww3_${grdOut}"
"${DBNROOT}/bin/dbn_alert" GRIB_LOW "${RUN}" "${job}" "${COMOUT_WAVE_WMO}/grib2.${cycle}.f${fhr}.awipsww3_${grdOut}"
fi
rm -f $AWIPSGRB.$grdID.f${fhr} tocgrib2.out
done # For grids
Expand Down
Loading
Loading