From 4e4c10844ea0fc3a7a255821e41014e1aff76acb Mon Sep 17 00:00:00 2001 From: Wen Meng Date: Mon, 8 Apr 2024 13:13:19 +0000 Subject: [PATCH 1/4] Follow-up fixes for gfs post process. --- parm/product/gfs.anl.paramlist.a.txt | 1 - parm/product/gfs.f000.paramlist.a.txt | 2 -- parm/product/gfs.fFFF.paramlist.a.txt | 3 --- scripts/exglobal_atmos_products.sh | 6 ++++-- ush/forecast_postdet.sh | 6 ++++-- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/parm/product/gfs.anl.paramlist.a.txt b/parm/product/gfs.anl.paramlist.a.txt index dd340636d6b..3c7ba28bb97 100644 --- a/parm/product/gfs.anl.paramlist.a.txt +++ b/parm/product/gfs.anl.paramlist.a.txt @@ -152,7 +152,6 @@ HLCY:3000-0 m above ground ICAHT:max wind ICAHT:tropopause ICETK:surface -ICETMP:surface ICMR:50 mb ICMR:1000 mb ICMR:100 mb diff --git a/parm/product/gfs.f000.paramlist.a.txt b/parm/product/gfs.f000.paramlist.a.txt index b1dcb09ccd9..34d84ac3c1a 100644 --- a/parm/product/gfs.f000.paramlist.a.txt +++ b/parm/product/gfs.f000.paramlist.a.txt @@ -166,7 +166,6 @@ ICAHT:max wind ICAHT:tropopause ICEC:surface ICETK:surface -ICETMP:surface ICMR:50 mb ICMR:1000 mb ICMR:100 mb @@ -697,4 +696,3 @@ WEASD:surface WILT:surface SNOD:surface VIS:surface -ICEG:10 m above mean sea level diff --git a/parm/product/gfs.fFFF.paramlist.a.txt b/parm/product/gfs.fFFF.paramlist.a.txt index 350a715bac5..cb2f82f02a7 100644 --- a/parm/product/gfs.fFFF.paramlist.a.txt +++ b/parm/product/gfs.fFFF.paramlist.a.txt @@ -45,7 +45,6 @@ ACPCP:surface ALBDO:surface APCP:surface APTMP:2 m above ground -var discipline=0 master_table=2 parmcat=0 parm=21:2 m above ground AOTK:entire atmosphere CAPE:180-0 mb above ground CAPE:255-0 mb above ground @@ -177,7 +176,6 @@ ICAHT:max wind ICAHT:tropopause ICEC:surface ICETK:surface -ICETMP:surface ICSEV:100 mb ICSEV:150 mb ICSEV:200 mb @@ -758,4 +756,3 @@ WEASD:surface WILT:surface SNOD:surface VIS:surface -ICEG:10 m above mean sea level diff --git a/scripts/exglobal_atmos_products.sh b/scripts/exglobal_atmos_products.sh index 90678193803..3acb8744f32 100755 --- a/scripts/exglobal_atmos_products.sh +++ b/scripts/exglobal_atmos_products.sh @@ -42,7 +42,8 @@ fi # Section creating pressure grib2 interpolated products # Files needed by ${INTERP_ATMOS_MASTERSH} -MASTER_FILE="${COM_ATMOS_MASTER}/${PREFIX}master.grb2${fhr3}" +#MASTER_FILE="${COM_ATMOS_MASTER}/${PREFIX}master.grb2${fhr3}" +MASTER_FILE="${COM_ATMOS_MASTER}/${PREFIX}master${fhr3}.grb2" # Get inventory from ${MASTER_FILE} that matches patterns from ${paramlista} # Extract this inventory from ${MASTER_FILE} into a smaller tmpfile or tmpfileb based on paramlista or paramlistb @@ -172,7 +173,8 @@ done # for (( nset=1 ; nset <= downset ; nset++ )) #--------------------------------------------------------------- # Create the index file for the sflux master, if it exists. -FLUX_FILE="${COM_ATMOS_MASTER}/${PREFIX}sfluxgrb${fhr3}.grib2" +#FLUX_FILE="${COM_ATMOS_MASTER}/${PREFIX}sfluxgrb${fhr3}.grib2" +FLUX_FILE="${COM_ATMOS_MASTER}/${PREFIX}sflux${fhr3}.grb2" if [[ -s "${FLUX_FILE}" ]]; then ${WGRIB2} -s "${FLUX_FILE}" > "${FLUX_FILE}.idx" fi diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh index 23482832e4c..dc525c69d54 100755 --- a/ush/forecast_postdet.sh +++ b/ush/forecast_postdet.sh @@ -479,8 +479,10 @@ EOF ${NLN} "${COM_ATMOS_HISTORY}/${RUN}.t${cyc}z.sfcf${FH3}.nc" "sfcf${FH3}.nc" ${NLN} "${COM_ATMOS_HISTORY}/${RUN}.t${cyc}z.atm.logf${FH3}.txt" "log.atm.f${FH3}" if [[ ${WRITE_DOPOST} = ".true." ]]; then - ${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.master.grb2f${FH3}" "GFSPRS.GrbF${FH2}" - ${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.sfluxgrbf${FH3}.grib2" "GFSFLX.GrbF${FH2}" + #${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.master.grb2f${FH3}" "GFSPRS.GrbF${FH2}" + #${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.sfluxgrbf${FH3}.grib2" "GFSFLX.GrbF${FH2}" + ${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.masterf${FH3}.grb2" "GFSPRS.GrbF${FH2}" + ${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.sfluxf${FH3}.grb2" "GFSFLX.GrbF${FH2}" fi done else # TODO: Is this even valid anymore? From 49760d27c6da5d933922816a4faf9d00746afce0 Mon Sep 17 00:00:00 2001 From: Wen Meng Date: Mon, 8 Apr 2024 13:16:17 +0000 Subject: [PATCH 2/4] Remove commented lines --- scripts/exglobal_atmos_products.sh | 2 -- ush/forecast_postdet.sh | 2 -- 2 files changed, 4 deletions(-) diff --git a/scripts/exglobal_atmos_products.sh b/scripts/exglobal_atmos_products.sh index 3acb8744f32..5fee3b4631c 100755 --- a/scripts/exglobal_atmos_products.sh +++ b/scripts/exglobal_atmos_products.sh @@ -42,7 +42,6 @@ fi # Section creating pressure grib2 interpolated products # Files needed by ${INTERP_ATMOS_MASTERSH} -#MASTER_FILE="${COM_ATMOS_MASTER}/${PREFIX}master.grb2${fhr3}" MASTER_FILE="${COM_ATMOS_MASTER}/${PREFIX}master${fhr3}.grb2" # Get inventory from ${MASTER_FILE} that matches patterns from ${paramlista} @@ -173,7 +172,6 @@ done # for (( nset=1 ; nset <= downset ; nset++ )) #--------------------------------------------------------------- # Create the index file for the sflux master, if it exists. -#FLUX_FILE="${COM_ATMOS_MASTER}/${PREFIX}sfluxgrb${fhr3}.grib2" FLUX_FILE="${COM_ATMOS_MASTER}/${PREFIX}sflux${fhr3}.grb2" if [[ -s "${FLUX_FILE}" ]]; then ${WGRIB2} -s "${FLUX_FILE}" > "${FLUX_FILE}.idx" diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh index dc525c69d54..c0ed9a81997 100755 --- a/ush/forecast_postdet.sh +++ b/ush/forecast_postdet.sh @@ -479,8 +479,6 @@ EOF ${NLN} "${COM_ATMOS_HISTORY}/${RUN}.t${cyc}z.sfcf${FH3}.nc" "sfcf${FH3}.nc" ${NLN} "${COM_ATMOS_HISTORY}/${RUN}.t${cyc}z.atm.logf${FH3}.txt" "log.atm.f${FH3}" if [[ ${WRITE_DOPOST} = ".true." ]]; then - #${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.master.grb2f${FH3}" "GFSPRS.GrbF${FH2}" - #${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.sfluxgrbf${FH3}.grib2" "GFSFLX.GrbF${FH2}" ${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.masterf${FH3}.grb2" "GFSPRS.GrbF${FH2}" ${NLN} "${COM_ATMOS_MASTER}/${RUN}.t${cyc}z.sfluxf${FH3}.grb2" "GFSFLX.GrbF${FH2}" fi From 9d23951a46cd947db107af4ffc88f35da98affd8 Mon Sep 17 00:00:00 2001 From: Wen Meng Date: Mon, 8 Apr 2024 13:55:32 +0000 Subject: [PATCH 3/4] Update flux file naming convention --- ush/hpssarch_gen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ush/hpssarch_gen.sh b/ush/hpssarch_gen.sh index 0d40cb1a8fc..e07da314631 100755 --- a/ush/hpssarch_gen.sh +++ b/ush/hpssarch_gen.sh @@ -168,8 +168,8 @@ if [[ ${type} = "gfs" ]]; then fhr=$(printf %03i "${fh}") if [[ ${ARCH_GAUSSIAN} = "YES" ]]; then { - echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxgrbf${fhr}.grib2" - echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxgrbf${fhr}.grib2.idx" + echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2" + echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2.idx" } >> "${DATA}/gfs_flux.txt" { From 4c7f570d7e34f62ee672772a1b37b35a960b331d Mon Sep 17 00:00:00 2001 From: Wen Meng Date: Mon, 8 Apr 2024 14:38:02 +0000 Subject: [PATCH 4/4] More updates in flux file name in hpssarch_gen.sh. --- ush/hpssarch_gen.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ush/hpssarch_gen.sh b/ush/hpssarch_gen.sh index e07da314631..c1d50cbb5c5 100755 --- a/ush/hpssarch_gen.sh +++ b/ush/hpssarch_gen.sh @@ -395,8 +395,8 @@ if [[ ${type} == "gdas" ]]; then fh=0 while [[ ${fh} -le 9 ]]; do fhr=$(printf %03i "${fh}") - echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxgrbf${fhr}.grib2" - echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxgrbf${fhr}.grib2.idx" + echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2" + echo "${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2.idx" echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}" echo "${COM_ATMOS_GRIB_0p25/${ROTDIR}\//}/${head}pgrb2.0p25.f${fhr}.idx" echo "${COM_ATMOS_GRIB_1p00/${ROTDIR}\//}/${head}pgrb2.1p00.f${fhr}" @@ -408,7 +408,7 @@ if [[ ${type} == "gdas" ]]; then done flist="001 002 004 005 007 008" for fhr in ${flist}; do - file="${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxgrbf${fhr}.grib2" + file="${COM_ATMOS_MASTER/${ROTDIR}\//}/${head}sfluxf${fhr}.grb2" if [[ -s "${file}" ]]; then echo "${file}" echo "${file}.idx"