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

Output filenames Change required by NCO #110

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
38 changes: 19 additions & 19 deletions scripts/exwave_stat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -350,27 +350,27 @@
do
nip=${arrpar[$iparam-1]}
case $nip in
HTSGW) stypes='mean spread probab' ; snip=hs ;;
PERPW) stypes='mean spread probab' ; snip=tp ;;
ICEC) stypes='mean spread probab' ; snip=ice ;;
DIRPW) stypes='mean spread probab' ; snip=pdir ;;
IMWF) stypes='mean spread probab' ; snip=tm ;;
MWSP) stypes='mean spread probab' ; snip=tz ;;
WVHGT) stypes='mean spread probab' ; snip=wshs ;;
WVPER) stypes='mean spread probab' ; snip=wstp ;;
HTSGW) stypes='mean spread prob' ; snip=hs ;;
PERPW) stypes='mean spread prob' ; snip=tp ;;
ICEC) stypes='mean spread prob' ; snip=ice ;;
DIRPW) stypes='mean spread prob' ; snip=pdir ;;
IMWF) stypes='mean spread prob' ; snip=tm ;;
MWSP) stypes='mean spread prob' ; snip=tz ;;
WVHGT) stypes='mean spread prob' ; snip=wshs ;;
WVPER) stypes='mean spread prob' ; snip=wstp ;;
WVDIR) stypes='mean spread' ; snip=wsdir ;;
WWSDIR) stypes='mean spread' ; snip=wwdir ;;
WIND) stypes='mean spread probab' ; snip=wnd ;;
WIND) stypes='mean spread prob' ; snip=wnd ;;
WDIR) stypes='mean spread' ; snip=wnddir ;;
SWELL1) stypes='mean spread probab' ; snip=hswell1 ;;
SWELL2) stypes='mean spread probab' ; snip=hswell2 ;;
SWELL3) stypes='mean spread probab' ; snip=hswell3 ;;
SWELL1) stypes='mean spread prob' ; snip=hswell1 ;;
SWELL2) stypes='mean spread prob' ; snip=hswell2 ;;
SWELL3) stypes='mean spread prob' ; snip=hswell3 ;;
SWDIR1) stypes='mean spread' ; snip=dswell1 ;;
SWDIR2) stypes='mean spread' ; snip=dswell2 ;;
SWDIR3) stypes='mean spread' ; snip=dswell3 ;;
SWPER1) stypes='mean spread probab' ; snip=tswell1 ;;
SWPER2) stypes='mean spread probab' ; snip=tswell2 ;;
SWPER3) stypes='mean spread probab' ; snip=tswell3 ;;
SWPER1) stypes='mean spread prob' ; snip=tswell1 ;;
SWPER2) stypes='mean spread prob' ; snip=tswell2 ;;
SWPER3) stypes='mean spread prob' ; snip=tswell3 ;;
*) nnip= ;;
esac

Expand All @@ -389,7 +389,7 @@
do

ingrib=${snip}_${stype}.${FH3}.grib2
outgrib=${WAV_MOD_TAG}.${stype}.t${cyc}z.f${FH3}.grib2
outgrib=${WAV_MOD_TAG}.t${cyc}z.${stype}.f${FH3}.grib2

echo "$WGRIB2 ./${par_dir}/${valtime}/${ingrib} -append -grib ./${outgrib} >> ${FH3}_${stype}.t${cyc}z.out 2>> ${FH3}_${stype}.t${cyc}z.err" >> cmdfile.${fhour}

Expand Down Expand Up @@ -453,9 +453,9 @@
while [ "$fhour" -le "$FHMAX_WAV" ]
do
FH3=$(printf "%03d" $fhour)
for stype in mean spread probab
for stype in mean spread prob
do
fcopy=${WAV_MOD_TAG}.${stype}.t${cyc}z.f${FH3}.grib2
fcopy=${WAV_MOD_TAG}.t${cyc}z.${stype}.f${FH3}.grib2
if [ -s ${fcopy} ]
then
set +x
Expand Down Expand Up @@ -510,7 +510,7 @@

# 3.c Create bundled grib2 file with all parameters

cat gefswave.mean.t${cyc}z.f???.grib2 | $WGRIB2 - -match "(HTSGW|PERPW|WIND)" -grib gribfile > gribfile.out 2>&1
cat ${WAV_MOD_TAG}.t${cyc}z.mean.f???.grib2 | $WGRIB2 - -match "(HTSGW|PERPW|WIND)" -grib gribfile > gribfile.out 2>&1

if [ -s gribfile ]
then
Expand Down
14 changes: 7 additions & 7 deletions ush/wave_ens_stat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
#
# set $seton

rm -f mean.t${cyc}z.grib2 spread.t${cyc}z.grib2 probab.t${cyc}z.grib2
rm -f mean.t${cyc}z.grib2 spread.t${cyc}z.grib2 prob.t${cyc}z.grib2

nmemb=${nmembn}
nmembm1=`expr ${nmemb} - 1`
Expand Down Expand Up @@ -184,7 +184,7 @@
#
# 1.c Execute wave_stat and create grib2 files
#
rm -f mean_out spread_out probab_out test_out
rm -f mean_out spread_out prob_out test_out
#
$EXECwave/wave_stat < wave_stat.inp >>$pgmout 2>&1
#
Expand Down Expand Up @@ -217,17 +217,17 @@
nscale=`echo ${ascale[@]} | wc -w`
if [ ${nscale} -gt 1 ]
then
if [ ! -f probab_out ]
if [ ! -f prob_out ]
then
msg="ABNORMAL EXIT: ERR probab_out not gerenerated for ${nnip} $FH3."
msg="ABNORMAL EXIT: ERR prob_out not gerenerated for ${nnip} $FH3."
postmsg "$jlogfile" "$msg"
set +x
echo "--- probab_out not gerenerated for ${nnip} $FH3 --- "
echo "--- prob_out not gerenerated for ${nnip} $FH3 --- "
[[ "$LOUD" = YES ]] && set -x
echo "probab_out not gerenerated for ${nnip} $FH3" >> $wave_log
echo "prob_out not gerenerated for ${nnip} $FH3" >> $wave_log
err=1;export err;err_chk
else
mv -f probab_out ${nnip}_probab.$FH3.grib2
mv -f prob_out ${nnip}_prob.$FH3.grib2
fi
fi

Expand Down