Skip to content

Commit

Permalink
Add grid directory level for atmos gempak
Browse files Browse the repository at this point in the history
Adds a grid directory level for atmos gempak to organize different
output grids. The grib variable is also changed from `RES` to `GRID`
for consistency.

Additionally, `SENDCOM` now defaults to on so gempak output gets written
(see NOAA-EMC#1501).

Refs: NOAA-EMC#761, NOAA-EMC#1501
  • Loading branch information
WalterKolczynski-NOAA committed Apr 23, 2023
1 parent 5c70fba commit f8c2597
Show file tree
Hide file tree
Showing 14 changed files with 72 additions and 66 deletions.
19 changes: 11 additions & 8 deletions jobs/JGDAS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,18 @@ export model=${model:-gdas}
##############################################
# Define COM directories
##############################################
for res in 0p25 0p50 1p00; do
RES=${res} YMD=${PDY} HH=${cyc} generate_com -rx "COM_ATMOS_GRIB_${res}:COM_ATMOS_GRIB_TMPL"
for grid in 0p25 0p50 1p00; do
GRID=${grid} YMD=${PDY} HH=${cyc} generate_com -rx "COM_ATMOS_GRIB_${grid}:COM_ATMOS_GRIB_TMPL"
done

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GEMPAK
for grid in 1p00 0p25; do
prod_dir="COM_ATMOS_GEMPAK_${grid}"
GRID=${grid} YMD=${PDY} HH=${cyc} generate_com -rx "COM_ATMOS_GEMPAK_${grid}:COM_ATMOS_GEMPAK_TMPL"

if [[ ${SENDCOM} = YES && ! -d "${COM_ATMOS_GEMPAK}" ]] ; then
mkdir -m 775 -p "${COM_ATMOS_GEMPAK}"
fi
if [[ ${SENDCOM} == YES && ! -d "${!prod_dir}" ]] ; then
mkdir -m 775 -p "${!prod_dir}"
fi
done


# TODO: These actions belong in an ex-script not a j-job
Expand All @@ -57,12 +60,12 @@ fi

########################################################
# Execute the script.
echo "${SRCgfs}/exgdas_atmos_nawips.sh gdas 009 GDAS_GEMPAK " >> poescript
echo "${SRCgfs}/exgdas_atmos_nawips.sh gdas 009 GDAS_GEMPAK ${COM_ATMOS_GEMPAK_1p00}" >> poescript
########################################################

########################################################
# Execute the script for quater-degree grib
echo "${SRCgfs}/exgdas_atmos_nawips.sh gdas_0p25 009 GDAS_GEMPAK " >> poescript
echo "${SRCgfs}/exgdas_atmos_nawips.sh gdas_0p25 009 GDAS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}" >> poescript
########################################################

cat poescript
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_AWIPS_20KM_1P0DEG
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export SENDAWIP=${SENDAWIP:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_WMO
RES="0p25" YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_TMPL
GRID="0p25" YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_TMPL

if [[ ${SENDCOM} == "YES" && ! -d "${COM_ATMOS_WMO}" ]] ; then
mkdir -m 775 -p "${COM_ATMOS_WMO}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_AWIPS_G2
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export SENDAWIP=${SENDAWIP:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_WMO
RES="0p25" YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_TMPL
GRID="0p25" YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_TMPL

if [[ ${SENDCOM} == "YES" && ! -d "${COM_ATMOS_WMO}" ]] ; then
mkdir -m 775 -p "${COM_ATMOS_WMO}"
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_CYCLONE_GENESIS
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export SCRIPTens_tracker=${SCRIPTens_tracker:-${HOMEens_tracker}/scripts}
# Define COM directories
##############################################
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GENESIS
YMD=${PDY} HH=${cyc} RES="0p25" generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_TMPL
YMD=${PDY} HH=${cyc} GRID="0p25" generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_TMPL

# The following variables are used by the tracker scripts which are outside
# of global-workflow and therefore can't be standardized at this time
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_CYCLONE_TRACKER
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export USHens_tracker=${USHens_tracker:-${HOMEens_tracker}/ush}
# Define COM and Data directories
##############################################
YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_TRACK COM_ATMOS_GENESIS
YMD=${PDY} HH=${cyc} RES="0p25" generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_TMPL
YMD=${PDY} HH=${cyc} GRID="0p25" generate_com -rx COM_ATMOS_GRIB_0p25:COM_ATMOS_GRIB_TMPL

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

Expand Down
72 changes: 37 additions & 35 deletions jobs/JGFS_ATMOS_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@ export model=${model:-gfs}
export SENDDBN=${SENDDBN:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

for res in 0p25 0p50 1p00; do
RES=${res} YMD=${PDY} HH=${cyc} generate_com -rx "COM_ATMOS_GRIB_${res}:COM_ATMOS_GRIB_TMPL"
for grid in 0p25 0p50 1p00; do
GRID=${grid} YMD=${PDY} HH=${cyc} generate_com -rx "COM_ATMOS_GRIB_${grid}:COM_ATMOS_GRIB_TMPL"
done

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GEMPAK

if [[ ${SENDCOM} = YES && ! -d "${COM_ATMOS_GEMPAK}" ]] ; then
mkdir -m 775 -p "${COM_ATMOS_GEMPAK}"
fi
for grid in 1p00 0p50 0p25 40km 35km_atl 35km_pac; do
prod_dir="COM_ATMOS_GEMPAK_${grid}"
GRID=${grid} YMD=${PDY} HH=${cyc} generate_com -rx "COM_ATMOS_GEMPAK_${grid}:COM_ATMOS_GEMPAK_TMPL"

if [[ ${SENDCOM} == YES && ! -d "${!prod_dir}" ]] ; then
mkdir -m 775 -p "${!prod_dir}"
fi
done

# TODO: These actions belong in an ex-script not a j-job
if [[ -f poescript ]]; then
Expand All @@ -62,54 +64,54 @@ fi
#################################################################
# Execute the script for the 384 hour 1 degree grib
##################################################################
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_1p0.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_1p0.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_1p0.$$.3 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_1p0.$$.4 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_1p0.$$.5 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_1p0.$$.6 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_1p00} &> ${DATA}/gfs_1p0.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_1p00} &> ${DATA}/gfs_1p0.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_1p00} &> ${DATA}/gfs_1p0.$$.3 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_1p00} &> ${DATA}/gfs_1p0.$$.4 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_1p00} &> ${DATA}/gfs_1p0.$$.5 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_1p00} &> ${DATA}/gfs_1p0.$$.6 " >> poescript

#################################################################
# Execute the script for the half-degree grib
##################################################################
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p5.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p5.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p5.$$.3 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p5.$$.4 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p5.$$.5 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p5.$$.6 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p50} &> ${DATA}/gfs_0p5.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p50} &> ${DATA}/gfs_0p5.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p50} &> ${DATA}/gfs_0p5.$$.3 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p50} &> ${DATA}/gfs_0p5.$$.4 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p50} &> ${DATA}/gfs_0p5.$$.5 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p50 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p50} &> ${DATA}/gfs_0p5.$$.6 " >> poescript

#################################################################
# Execute the script for the quater-degree grib
####################################################################
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.3 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.4 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.5 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.6 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.7 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.8 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.9 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK &> ${DATA}/gfs_0p25.$$.10 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.3 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.4 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.5 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.6 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.7 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.8 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.9 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs_0p25 ${FHMAX_GFS} GFS_GEMPAK ${COM_ATMOS_GEMPAK_0p25}&> ${DATA}/gfs_0p25.$$.10 " >> poescript

####################################################################
# Execute the script to create the 35km Pacific grids for OPC
#####################################################################
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_pac ${ocean_domain_max} GFS_GEMPAK_WWB &> ${DATA}/gfs35_pac.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_pac ${ocean_domain_max} GFS_GEMPAK_WWB &> ${DATA}/gfs35_pac.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_pac ${ocean_domain_max} GFS_GEMPAK_WWB ${COM_ATMOS_GEMPAK_35km_pac} &> ${DATA}/gfs35_pac.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_pac ${ocean_domain_max} GFS_GEMPAK_WWB ${COM_ATMOS_GEMPAK_35km_pac} &> ${DATA}/gfs35_pac.$$.2 " >> poescript

####################################################################
# Execute the script to create the 35km Atlantic grids for OPC
#####################################################################
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_atl ${ocean_domain_max} GFS_GEMPAK_WWB &> ${DATA}/gfs35_atl.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_atl ${ocean_domain_max} GFS_GEMPAK_WWB &> ${DATA}/gfs35_atl.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_atl ${ocean_domain_max} GFS_GEMPAK_WWB ${COM_ATMOS_GEMPAK_35km_atl} &> ${DATA}/gfs35_atl.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_atl ${ocean_domain_max} GFS_GEMPAK_WWB ${COM_ATMOS_GEMPAK_35km_atl} &> ${DATA}/gfs35_atl.$$.2 " >> poescript

#####################################################################
# Execute the script to create the 40km grids for HPC
######################################################################
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs40 ${ocean_domain_max} GFS_GEMPAK_WWB &> ${DATA}/gfs40.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs40 ${ocean_domain_max} GFS_GEMPAK_WWB &> ${DATA}/gfs40.$$.2 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs40 ${ocean_domain_max} GFS_GEMPAK_WWB ${COM_ATMOS_GEMPAK_40km} &> ${DATA}/gfs40.$$.1 " >> poescript
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs40 ${ocean_domain_max} GFS_GEMPAK_WWB ${COM_ATMOS_GEMPAK_40km} &> ${DATA}/gfs40.$$.2 " >> poescript

if [[ ${CFP_MP:-"NO"} == "YES" ]]; then
# Add task number to the MPMD script
Expand Down
2 changes: 1 addition & 1 deletion jobs/JGFS_ATMOS_PGRB2_SPEC_NPOESS
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export SENDDBN=${SENDDBN:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GOES
RES="0p50" YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GRIB_0p50:COM_ATMOS_GRIB_TMPL
GRID="0p50" YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_GRIB_0p50:COM_ATMOS_GRIB_TMPL

if [[ ${SENDCOM} == "YES" ]]; then
mkdir -m 775 -p "${COM_ATMOS_GOES}"
Expand Down
6 changes: 3 additions & 3 deletions jobs/JGLOBAL_ARCHIVE
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ YMD=${PDY} HH=${cyc} generate_com -rx COM_ATMOS_ANALYSIS COM_ATMOS_BUFR COM_ATMO
COM_OCEAN_DAILY COM_OCEAN_HISTORY COM_OCEAN_INPUT COM_OCEAN_XSECT \
COM_WAVE_GRID COM_WAVE_HISTORY COM_WAVE_STATION

for res in "0p25" "0p50" "1p00"; do
YMD=${PDY} HH=${cyc} RES=${res} generate_com -rx "COM_ATMOS_GRIB_${res}:COM_ATMOS_GRIB_TMPL"
YMD=${PDY} HH=${cyc} RES=${res} generate_com -rx "COM_OCEAN_GRIB_${res}:COM_OCEAN_GRIB_TMPL"
for grid in "0p25" "0p50" "1p00"; do
YMD=${PDY} HH=${cyc} GRID=${grid} generate_com -rx "COM_ATMOS_GRIB_${grid}:COM_ATMOS_GRIB_TMPL"
YMD=${PDY} HH=${cyc} GRID=${grid} generate_com -rx "COM_OCEAN_GRIB_${grid}:COM_OCEAN_GRIB_TMPL"
done

###############################################################
Expand Down
7 changes: 3 additions & 4 deletions jobs/JGLOBAL_ATMOS_POST
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ if [[ ${WAFSF} == "YES" ]]; then
if [[ ! -d ${COM_ATMOS_WAFS} ]]; then mkdir -m 775 -p "${COM_ATMOS_WAFS}"; fi
fi

for RES in '0p25' '0p50' '1p00'; do
# After the post refactor, we likely won't need these separate envvars here
prod_dir="COM_ATMOS_GRIB_${RES}"
RES=${RES} YMD=${PDY} HH=${cyc} generate_com -rx "${prod_dir}:COM_ATMOS_GRIB_TMPL"
for grid in '0p25' '0p50' '1p00'; do
prod_dir="COM_ATMOS_GRIB_${grid}"
GRID=${grid} YMD=${PDY} HH=${cyc} generate_com -rx "${prod_dir}:COM_ATMOS_GRIB_TMPL"
if [[ ! -d "${prod_dir}" ]]; then mkdir -m 775 -p "${!prod_dir}"; fi
done

Expand Down
4 changes: 2 additions & 2 deletions jobs/rocoto/ocnpost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ fi
YMD=${PDY} HH=${cyc} generate_com -rx COM_OCEAN_HISTORY COM_OCEAN_2D COM_OCEAN_3D \
COM_OCEAN_XSECT COM_ICE_HISTORY

for res in "0p50" "0p25"; do
YMD=${PDY} HH=${cyc} RES=${res} generate_com -rx "COM_OCEAN_GRIB_${res}:COM_OCEAN_GRIB_TMPL"
for grid in "0p50" "0p25"; do
YMD=${PDY} HH=${cyc} GRID=${grid} generate_com -rx "COM_OCEAN_GRIB_${grid}:COM_OCEAN_GRIB_TMPL"
done

for outdir in COM_OCEAN_2D COM_OCEAN_3D COM_OCEAN_XSECT COM_OCEAN_GRIB_0p25 COM_OCEAN_GRIB_0p50; do
Expand Down
2 changes: 1 addition & 1 deletion parm/config/config.base.emc.dyn
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export REDOUT="1>"
export REDERR="2>"

export SENDECF=${SENDECF:-"NO"}
export SENDCOM=${SENDCOM:-"NO"}
export SENDCOM=${SENDCOM:-"YES"}
export SENDSDM=${SENDSDM:-"NO"}
export SENDDBN_NTC=${SENDDBN_NTC:-"NO"}
export SENDDBN=${SENDDBN:-"NO"}
Expand Down
6 changes: 3 additions & 3 deletions parm/config/config.com
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ declare -rx COM_ATMOS_RESTART_TMPL=${COM_BASE}'/model_data/atmos/restart'
declare -rx COM_ATMOS_ANALYSIS_TMPL=${COM_BASE}'/analysis/atmos'
declare -rx COM_ATMOS_HISTORY_TMPL=${COM_BASE}'/model_data/atmos/history'
declare -rx COM_ATMOS_MASTER_TMPL=${COM_BASE}'/model_data/atmos/master'
declare -rx COM_ATMOS_GRIB_TMPL=${COM_BASE}'/products/atmos/grib/${RES}'
declare -rx COM_ATMOS_GRIB_TMPL=${COM_BASE}'/products/atmos/grib/${GRID}'
declare -rx COM_ATMOS_BUFR_TMPL=${COM_BASE}'/products/atmos/bufr'
declare -rx COM_ATMOS_GEMPAK_TMPL=${COM_BASE}'/products/atmos/gempak'
declare -rx COM_ATMOS_GEMPAK_TMPL=${COM_BASE}'/products/atmos/gempak/${GRID}'
declare -rx COM_ATMOS_GENESIS_TMPL=${COM_BASE}'/products/atmos/cyclone/genesis_vital'
declare -rx COM_ATMOS_TRACK_TMPL=${COM_BASE}'/products/atmos/cyclone/tracks'
declare -rx COM_ATMOS_GOES_TMPL=${COM_BASE}'/products/atmos/goes_sim'
Expand All @@ -80,7 +80,7 @@ declare -rx COM_OCEAN_2D_TMPL=${COM_BASE}'/products/ocean/2D'
declare -rx COM_OCEAN_3D_TMPL=${COM_BASE}'/products/ocean/3D'
declare -rx COM_OCEAN_DAILY_TMPL=${COM_BASE}'/products/ocean/daily'
declare -rx COM_OCEAN_XSECT_TMPL=${COM_BASE}'/products/ocean/xsect'
declare -rx COM_OCEAN_GRIB_TMPL=${COM_BASE}'/products/ocean/grib/${RES}'
declare -rx COM_OCEAN_GRIB_TMPL=${COM_BASE}'/products/ocean/grib/${GRID}'

declare -rx COM_ICE_INPUT_TMPL=${COM_BASE}'/model_data/ice/input'
declare -rx COM_ICE_HISTORY_TMPL=${COM_BASE}'/model_data/ice/history'
Expand Down
7 changes: 4 additions & 3 deletions scripts/exgdas_atmos_nawips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ cd $DATA
RUN2=$1
fend=$2
DBN_ALERT_TYPE=$3
destination=$4

DATA_RUN=$DATA/$RUN2
mkdir -p $DATA_RUN
Expand Down Expand Up @@ -135,17 +136,17 @@ EOF
export err=$?;err_chk

if [ $SENDCOM = "YES" ] ; then
cp "${GEMGRD}" "${COM_ATMOS_GEMPAK}/.${GEMGRD}"
cp "${GEMGRD}" "${destination}/.${GEMGRD}"
export err=$?
if [[ ${err} -ne 0 ]] ; then
echo " File ${GEMGRD} does not exist."
exit "${err}"
fi

mv "${COM_ATMOS_GEMPAK}/.${GEMGRD}" "${COM_ATMOS_GEMPAK}/${GEMGRD}"
mv "${destination}/.${GEMGRD}" "${destination}/${GEMGRD}"
if [[ ${SENDDBN} = "YES" ]] ; then
"${DBNROOT}/bin/dbn_alert" MODEL "${DBN_ALERT_TYPE}" "${job}" \
"${COM_ATMOS_GEMPAK}/${GEMGRD}"
"${destination}/${GEMGRD}"
else
echo "##### DBN_ALERT_TYPE is: ${DBN_ALERT_TYPE} #####"
fi
Expand Down
5 changes: 3 additions & 2 deletions scripts/exgfs_atmos_nawips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ cd $DATA
RUN2=$1
fend=$2
DBN_ALERT_TYPE=$3
destination=${4}

DATA_RUN=$DATA/$RUN2
mkdir -p $DATA_RUN
Expand Down Expand Up @@ -148,10 +149,10 @@ EOF
export err=$?;err_chk

if [[ ${SENDCOM} == "YES" ]] ; then
cpfs "${GEMGRD}" "${COM_ATMOS_GEMPAK}/${GEMGRD}"
cpfs "${GEMGRD}" "${destination}/${GEMGRD}"
if [[ ${SENDDBN} == "YES" ]] ; then
"${DBNROOT}/bin/dbn_alert" MODEL "${DBN_ALERT_TYPE}" "${job}" \
"${COM_ATMOS_GEMPAK}/${GEMGRD}"
"${destination}/${GEMGRD}"
fi
fi
cd $DATA_RUN
Expand Down

0 comments on commit f8c2597

Please sign in to comment.