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

Stop Gempak pgrb2 spec from modifying $DATA #2147

Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
7ff150e
Updated/renamed datapaths; linter cleanup.
henrywinterbottom-wxdev Dec 7, 2023
f76c940
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 7, 2023
1d91a07
Corrected typo.
henrywinterbottom-wxdev Dec 7, 2023
003d2b7
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 8, 2023
37ce6e0
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 12, 2023
479d909
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 13, 2023
ad6e8f9
Corrections based on reviewer comments.
henrywinterbottom-wxdev Dec 13, 2023
904ee1d
Update jobs/JGFS_ATMOS_GEMPAK_PGRB2_SPEC
HenryRWinterbottom Dec 13, 2023
3d9ac26
Update jobs/JGFS_ATMOS_GEMPAK_PGRB2_SPEC
HenryRWinterbottom Dec 13, 2023
2a21b5d
Update jobs/JGFS_ATMOS_GEMPAK_PGRB2_SPEC
HenryRWinterbottom Dec 13, 2023
369a948
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 14, 2023
7ebee61
Merge branch 'develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 15, 2023
c92e6b6
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 18, 2023
07a2342
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 19, 2023
d1ce41f
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 20, 2023
46fa27a
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 21, 2023
f368d21
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 22, 2023
cf6d0fc
Merge branch 'NOAA-EMC:develop' into feature/gfsv17_issue_1224
HenryRWinterbottom Dec 26, 2023
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
53 changes: 23 additions & 30 deletions jobs/JGFS_ATMOS_GEMPAK_PGRB2_SPEC
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#! /usr/bin/env bash

# TODO (#1222) This job is not part of the rocoto suite

############################################
# GFS_PGRB2_SPEC_GEMPAK PRODUCT GENERATION
############################################
Expand All @@ -12,12 +10,12 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "gempak_spec" -c "base"
################################
# Set up the HOME directory
################################
export EXECgfs=${EXECgfs:-${HOMEgfs}/exec}
export PARMgfs=${PARMgfs:-${HOMEgfs}/parm}
export EXPDIR=${EXPDIR:-${HOMEgfs}/parm/config}
export FIXgempak=${FIXgempak:-${HOMEgfs}/gempak/fix}
export USHgempak=${USHgempak:-${HOMEgfs}/gempak/ush}
export SRCgfs=${SRCgfs:-${HOMEgfs}/scripts}
export EXECgfs="${EXECgfs:-${HOMEgfs}/exec}"
export PARMgfs="${PARMgfs:-${HOMEgfs}/parm}"
export EXPDIR="${EXPDIR:-${HOMEgfs}/parm/config}"
export FIXgempak="${FIXgempak:-${HOMEgfs}/gempak/fix}"
export USHgempak="${USHgempak:-${HOMEgfs}/gempak/ush}"
export SRCgfs="${SRCgfs:-${HOMEgfs}/scripts}"

# For half-degree P Grib files
#export DO_HD_PGRB=YES
Expand All @@ -33,25 +31,20 @@ export EXT=""
##############################################
# Define COM directories
##############################################
export COMIN=${COMIN:-$(compath.py ${envir}/${NET}/${gfs_ver})/${RUN}.${PDY}/${cyc}/${COMPONENT}}
export COMOUT=${COMOUT:-$(compath.py -o ${NET}/${gfs_ver}/${NET}.${PDY})/${cyc}/${COMPONENT}/gempak}

export SENDDBN=${SENDDBN:-NO}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

mkdir -m 775 -p ${COMOUT}

export COMIN="${COMIN:-$(compath.py "${envir}"/"${NET}"/"${gfs_ver}")/${RUN}.${PDY}/${cyc}/${COMPONENT}}"
export COMOUT="${COMOUT:-$(compath.py -o "${NET}"/"${gfs_ver}"/"${NET}"."${PDY}")/${cyc}/${COMPONENT}/gempak}"

# TODO - Assess what is going on with overwriting $DATA here (#1224)
export SENDDBN="${SENDDBN:-NO}"
export DBNROOT="${DBNROOT:-${UTILROOT}/fakedbn}"

export DATA_HOLD=${DATA}
mkdir -m 775 -p "${COMOUT}"

#################################################################
# Execute the script for the regular grib
#################################################################
export DATA=${DATA_HOLD}/SPECIAL
mkdir -p ${DATA}
cd ${DATA}
export DATA_SPECIAL="${DATA}/SPECIAL"
mkdir -p "${DATA_SPECIAL}"
cd "${DATA_SPECIAL}" || exit 1

export DBN_ALERT_TYPE=GFS_GOESSIM_GEMPAK
export RUN2=gfs_goessim
Expand All @@ -65,14 +58,14 @@ echo "RUNS the Program"

########################################################
# Execute the script.
${SRCgfs}/exgfs_atmos_goes_nawips.sh
"${SRCgfs}/exgfs_atmos_goes_nawips.sh"

#################################################################
# Execute the script for the 221 grib

export DATA=${DATA_HOLD}/SPECIAL221
mkdir -p ${DATA}
cd ${DATA}
export DATA_SPECIAL221="${DATA}/SPECIAL221"
mkdir -p "${DATA_SPECIAL221}"
cd "${DATA_SPECIAL221}" || exit 1

export DBN_ALERT_TYPE=GFS_GOESSIM221_GEMPAK
export RUN2=gfs_goessim221
Expand All @@ -86,27 +79,27 @@ echo "RUNS the Program"

########################################################
# Execute the script.
${SRCgfs}/exgfs_atmos_goes_nawips.sh
"${SRCgfs}/exgfs_atmos_goes_nawips.sh"
export err=$?; err_chk
########################################################

echo "end of program"
cd ${DATA_HOLD}
cd "${DATA}" || exit 1
echo "######################################"
echo " SPECIAL.OUT "
echo "######################################"

############################################
# print exec I/O output
############################################
if [ -e "${pgmout}" ] ; then
cat ${pgmout}
if [[ -e "${pgmout}" ]] ; then
cat "${pgmout}"
fi

###################################
# Remove temp directories
###################################
if [ "${KEEPDATA}" != "YES" ] ; then
if [[ "${KEEPDATA}" != "YES" ]] ; then
rm -rf "${DATA}"
fi