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

Remove multi-grid wave support #3188

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7f00d08
modified scripts\exgfs_wave_post_gridded_sbs.sh
AntonMFernando-NOAA Dec 20, 2024
1d1a0f3
Merge branch 'NOAA-EMC:develop' into feature/remove_waveGRD
AntonMFernando-NOAA Dec 20, 2024
471b759
modified ush\forecast_postdet.sh and ush\wave_grid_interp_sbs.sh
AntonMFernando-NOAA Dec 20, 2024
b3992d7
Merge branch 'feature/remove_waveGRD' of https://github.com/AntonMFer…
AntonMFernando-NOAA Dec 20, 2024
af0e86f
modified ush\parsing_namelists_WW3.sh
AntonMFernando-NOAA Dec 20, 2024
1b0765b
modified scripts\exgfs_wave_post_gridded_sbs.sh
AntonMFernando-NOAA Dec 20, 2024
12acba6
modified ush\parsing_namelists_WW3.sh
AntonMFernando-NOAA Dec 20, 2024
e070372
added waveMULTIGRID='.false.'
AntonMFernando-NOAA Dec 20, 2024
0e0c1b9
remove the variable waveMULTIGRID
AntonMFernando-NOAA Dec 20, 2024
5f38480
removed waveMULTIGRID var
AntonMFernando-NOAA Dec 21, 2024
1f9319c
modified scripts\exgfs_wave_post_gridded_sbs.sh
AntonMFernando-NOAA Dec 22, 2024
1be896c
modified ush\wave_grid_interp_sbs.sh
AntonMFernando-NOAA Dec 23, 2024
3b21bf5
added quotes to ush\parsing_namelists_WW3.sh
AntonMFernando-NOAA Dec 23, 2024
a04be83
added quotes to ush\parsing_namelists_WW3.sh
AntonMFernando-NOAA Dec 23, 2024
620df1a
Merge branch 'develop' into feature/remove_waveGRD
AntonMFernando-NOAA Dec 24, 2024
e9af5b0
Merge branch 'develop' into feature/remove_waveGRD
AntonMFernando-NOAA Dec 26, 2024
2530b57
corrected a typo parm\archive\enkf_restartb_grp.yaml.j2
AntonMFernando-NOAA Dec 27, 2024
4d1ebad
corrected typos
AntonMFernando-NOAA Jan 1, 2025
9124667
Merge branch 'develop' into feature/remove_waveGRD
AntonMFernando-NOAA Jan 2, 2025
5e2e30c
added endfor for parm\archive\enkf_restarta_grp.yaml.j2
AntonMFernando-NOAA Jan 3, 2025
b26e391
modified parm\archive\enkf_restarta_grp.yaml.j2
AntonMFernando-NOAA Jan 3, 2025
28672e8
modified parm\archive\enkf_restarta_grp.yaml.j2
AntonMFernando-NOAA Jan 3, 2025
cfd7d83
modified parm\archive\enkf_restartb_grp.yaml.j2
AntonMFernando-NOAA Jan 3, 2025
dc93d20
modifed parm\archive\enkf_restartb_grp.yaml.j2
AntonMFernando-NOAA Jan 3, 2025
f926ed7
Merge branch 'develop' into feature/remove_waveGRD
AntonMFernando-NOAA Jan 3, 2025
259f268
edited config.wave
AntonMFernando-NOAA Jan 3, 2025
f64694a
removed waveesmfGRD from scripts
AntonMFernando-NOAA Jan 3, 2025
e4b74db
removed USE_WAV_RMP var
AntonMFernando-NOAA Jan 3, 2025
82c2bfa
updated parm\config\gfs\config.wave
AntonMFernando-NOAA Jan 3, 2025
d8a908b
updated parm\config\gfs\config.wave
AntonMFernando-NOAA Jan 3, 2025
fe756e1
Merge branch 'develop' into feature/remove_waveGRD
AntonMFernando-NOAA Jan 4, 2025
6743a93
Merge branch 'develop' into feature/remove_waveGRD
AntonMFernando-NOAA Jan 4, 2025
d820a5e
modified parm\config\gfs\config.wave
AntonMFernando-NOAA Jan 4, 2025
9830414
Merge branch 'feature/remove_waveGRD' of https://github.com/AntonMFer…
AntonMFernando-NOAA Jan 4, 2025
5b484f4
Merge branch 'develop' into feature/remove_waveGRD
aerorahul Jan 6, 2025
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
16 changes: 7 additions & 9 deletions scripts/exgfs_wave_post_gridded_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,13 @@ source "${USHgfs}/preamble.sh"

if [ $fhr = $fhrg ]
then
for wavGRD in ${waveGRD}; do
gfile="${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_grd.${wavGRD}.${YMD}.${HMS}"
if [[ ! -s "${gfile}" ]]; then
echo " FATAL ERROR : NO RAW FIELD OUTPUT FILE ${gfile}"
err=3; export err; "${errchk}"
exit "${err}"
fi
${NLN} "${gfile}" "./out_grd.${wavGRD}"
done
gfile="${COMIN_WAVE_HISTORY}/${WAV_MOD_TAG}.out_grd.${wavGRD}.${YMD}.${HMS}"
if [[ ! -s "${gfile}" ]]; then
echo " FATAL ERROR : NO RAW FIELD OUTPUT FILE ${gfile}"
err=3; export err; "${errchk}"
exit "${err}"
fi
${NLN} "${gfile}" "./out_grd.${wavGRD}"

if [ "$DOGRI_WAV" = 'YES' ]
then
Expand Down
8 changes: 2 additions & 6 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ WW3_postdet() {
local wavprfx="${RUN}wave${WAV_MEMBER:-}"
if [[ "${waveMULTIGRID}" == ".true." ]]; then
${NLN} "${COMOUT_WAVE_HISTORY}/${wavprfx}.log.mww3.${PDY}${cyc}" "log.mww3"
for ww3_grid in ${waveGRD}; do
${NLN} "${COMOUT_WAVE_HISTORY}/${wavprfx}.log.${ww3_grid}.${PDY}${cyc}" "log.${ww3_grid}"
done
${NLN} "${COMOUT_WAVE_HISTORY}/${wavprfx}.log.${waveGRD}.${PDY}${cyc}" "log.${waveGRD}"
else
${NLN} "${COMOUT_WAVE_HISTORY}/${wavprfx}.log.${waveGRD}.${PDY}${cyc}" "log.ww3"
fi
Expand All @@ -391,9 +389,7 @@ WW3_postdet() {
while (( fhr <= FHMAX_WAV )); do
vdate=$(date --utc -d "${current_cycle:0:8} ${current_cycle:8:2} + ${fhr} hours" +%Y%m%d.%H0000)
if [[ "${waveMULTIGRID}" == ".true." ]]; then
for ww3_grid in ${waveGRD} ; do
${NLN} "${COMOUT_WAVE_HISTORY}/${wavprfx}.out_grd.${ww3_grid}.${vdate}" "${DATA}/${vdate}.out_grd.${ww3_grid}"
done
${NLN} "${COMOUT_WAVE_HISTORY}/${wavprfx}.out_grd.${waveGRD}.${vdate}" "${DATA}/${vdate}.out_grd.${waveGRD}"
else
${NLN} "${COMOUT_WAVE_HISTORY}/${wavprfx}.out_grd.${waveGRD}.${vdate}" "${DATA}/${vdate}.out_grd.ww3"
fi
Expand Down
15 changes: 6 additions & 9 deletions ush/parsing_namelists_WW3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,12 @@
gline=
GRDN=0
# grdGRP=1 # Single group for now
for grid in ${waveGRD}
do
GRDN=$(expr ${GRDN} + 1)
agrid=( ${agrid[*]} ${grid} )
NMGRIDS=$(expr $NMGRIDS + 1)
gridN=$(echo $waveGRDN | awk -v i=$GRDN '{print $i}')
gridG=$(echo $waveGRDG | awk -v i=$GRDN '{print $i}')
gline="${gline}'${grid}' 'no' 'CURRFLAG' 'WINDFLAG' 'ICEFLAG' 'no' 'no' 'no' 'no' 'no' ${gridN} ${gridG} 0.00 1.00 F\n"
done
GRDN=$(expr ${GRDN} + 1)
Fixed Show fixed Hide fixed
agrid=( ${agrid[*]} ${waveGRD} )
NMGRIDS=$(expr $NMGRIDS + 1)
Fixed Show fixed Hide fixed
gridN=$(echo $waveGRDN | awk -v i=$GRDN '{print $i}')
gridG=$(echo $waveGRDG | awk -v i=$GRDN '{print $i}')
gline="${gline}'${waveGRD}' 'no' 'CURRFLAG' 'WINDFLAG' 'ICEFLAG' 'no' 'no' 'no' 'no' 'no' ${gridN} ${gridG} 0.00 1.00 F\n"
gline="${gline}\$"
echo $gline

Expand Down
9 changes: 3 additions & 6 deletions ush/wave_grid_interp_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,10 @@ source "${USHgfs}/preamble.sh"
fi
${NLN} "${DATA}/${grdID}_interp.inp.tmpl" "${grdID}_interp.inp.tmpl"

for ID in ${waveGRD}; do
${NLN} "${DATA}/output_${ymdh}0000/out_grd.${ID}" "out_grd.${ID}"
done
${NLN} "${DATA}/output_${ymdh}0000/out_grd.${waveGRD}" "out_grd.${waveGRD}"

for ID in ${waveGRD} ${grdID}; do
${NLN} "${DATA}/mod_def.${ID}" "mod_def.${ID}"
done
${NLN} "${DATA}/mod_def.${waveGRD}" "mod_def.${waveGRD}"


# --------------------------------------------------------------------------- #
# 1. Generate GRID file with all data
Expand Down