Skip to content

Commit

Permalink
Rename post scripts
Browse files Browse the repository at this point in the history
Rename post scripts to remove the unnecessary "ncep" qualifier.
  • Loading branch information
WalterKolczynski-NOAA committed Sep 27, 2022
1 parent 692e3fc commit a94369b
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 502 deletions.
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_ATMOS_NCEPPOST → jobs/JGLOBAL_ATMOS_POST
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export SLEEP_INT=5
###############################################################
# Run relevant exglobal script

$SCRgfs/ex${RUN}_atmos_nceppost.sh
$SCRgfs/ex${RUN}_atmos_post.sh
status=$?
[[ $status -ne 0 ]] && exit $status

Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi
#---------------------------------------------------------------
for fhr in $fhrlst; do
export post_times=$fhr
$HOMEgfs/jobs/JGLOBAL_ATMOS_NCEPPOST
$HOMEgfs/jobs/JGLOBAL_ATMOS_POST
status=$?
[[ $status -ne 0 ]] && exit $status
done
Expand Down
8 changes: 4 additions & 4 deletions parm/config/config.post
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ if [ $OUTPUT_FILE = "netcdf" ]; then
export MODEL_OUT_FORM=netcdfpara
fi

# Post driver job that calls gfs_nceppost.sh and downstream jobs
export POSTJJOBSH="$HOMEpost/jobs/JGLOBAL_NCEPPOST"
# Post driver job that calls gfs_post.sh and downstream jobs
export POSTJJOBSH="$HOMEpost/jobs/JGLOBAL_POST"
export GFSDOWNSH="$HOMEpost/ush/fv3gfs_downstream_nems.sh"
export GFSDWNSH="$HOMEpost/ush/fv3gfs_dwn_nems.sh"

export POSTGPSH="$HOMEpost/ush/gfs_nceppost.sh"
export POSTGPEXEC="$HOMEpost/exec/gfs_ncep_post"
export POSTGPSH="$HOMEpost/ush/gfs_post.sh"
export POSTGPEXEC="$HOMEpost/exec/upp.x"
export GOESF=NO # goes image
export FLXF=YES # grib2 flux file written by post

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ source "$HOMEgfs/ush/preamble.sh"

cd $DATA

export POSTGPSH=${POSTGPSH:-$USHgfs/gfs_nceppost.sh}
export POSTGPSH=${POSTGPSH:-$USHgfs/gfs_post.sh}
export GFSDOWNSH=${GFSDOWNSH:-$USHgfs/fv3gfs_downstream_nems.sh}
export GFSDWNSH=${GFSDWNSH:-$USHgfs/fv3gfs_dwn_nems.sh}
export TRIMRH=${TRIMRH:-$USHgfs/trim_rh.sh}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ source "$HOMEgfs/ush/preamble.sh"
cd $DATA

# specify model output format type: 4 for nemsio, 3 for sigio
export POSTGPSH=${POSTGPSH:-$USHgfs/gfs_nceppost.sh}
export POSTGPSH=${POSTGPSH:-$USHgfs/gfs_post.sh}
export GFSDOWNSH=${GFSDOWNSH:-$USHgfs/fv3gfs_downstream_nems.sh}
export GFSDOWNSHF=${GFSDOWNSHF:-$USHgfs/inter_flux.sh}
export GFSDWNSH=${GFSDWNSH:-$USHgfs/fv3gfs_dwn_nems.sh}
Expand Down
4 changes: 2 additions & 2 deletions sorc/link_workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ done
[[ -s ufs_model.x ]] && rm -f ufs_model.x
$LINK ../sorc/ufs_model.fd/tests/ufs_model.x .

[[ -s gfs_ncep_post ]] && rm -f gfs_ncep_post
$LINK ../sorc/upp.fd/exec/upp.x gfs_ncep_post
[[ -s upp.x ]] && rm -f upp.x
$LINK ../sorc/upp.fd/exec/upp.x .

if [ -d ${pwd}/gfs_wafs.fd ]; then
for wafsexe in \
Expand Down
16 changes: 8 additions & 8 deletions ush/gfs_nceppost.sh → ush/gfs_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
################################################################################
#### UNIX Script Documentation Block
# . .
# Script name: gfs_nceppost.sh
# Script name: gfs_post.sh
# Script description: Posts the global pressure GRIB file
#
# Author: Mark Iredell Org: NP23 Date: 1999-05-01
Expand All @@ -19,8 +19,8 @@
# 2012-06-04 Jun Wang: add grib2 option
# 2015-03-20 Lin Gan: add Perl for Post XML performance upgrade
# 2016-02-08 Lin Gan: Modify to use Vertical Structure
# 2018-02-05 Wen Meng: For EE2 standard, create gfs_nceppost.sh based
# global_nceppost.sh and change EXECglobal to EXECgfs;
# 2018-02-05 Wen Meng: For EE2 standard, create gfs_post.sh based
# global_post.sh and change EXECglobal to EXECgfs;
# Remove legacy setting for reading non-nemsio model output
# and generating grib1 data
# 2019-06-02 Wen Meng: Remove the links of gfs fix files.
Expand Down Expand Up @@ -63,15 +63,15 @@
# default to to ${USHglobal}/global_chgres.sh
# SIGLEVEL optional: the coordinate text file
# default to to /nwprod/fix/global_hyblev.l${LEVS}.txt
##### Chuang: Add new imported Shell Variable for ncep post
##### Chuang: Add new imported Shell Variable for post
# OUTTYP Output file type read in by post
# 1: if user has a sigma file and needs post to run chgres to convert to gfs io file
# 2: if user already has a gfs io file
# 3: if user uses post to read sigma file directly
# 0: if user wishes to generate both gfsio and sigma files
# 4: if user uses post to read nemsio file directly
# VDATE Verifying date 10 digits yyyymmddhh
# GFSOUT Optional, output file name from chgres which is input file name to nceppost
# GFSOUT Optional, output file name from chgres which is input file name to post
# if model already runs gfs io, make sure GFSOUT is linked to the gfsio file
# CTLFILE Optional, Your version of control file if not using operational one
# OVERPARMEXEC Optional, the executable for changing Grib KPDS ID
Expand Down Expand Up @@ -106,7 +106,7 @@
# XC Suffix to add to executables
# defaults to none
# POSTGPEXEC Global post executable
# defaults to ${EXECglobal}/ncep_post
# defaults to ${EXECglobal}/upp.x
# GRBINDEX GRIB index maker
# defaults to ${EXECUTIL}/grbindex$XC
# POSTGPLIST File containing further namelist inputs
Expand Down Expand Up @@ -210,7 +210,7 @@ export DATA=${DATA:-$(pwd)}
# Filenames.
export MP=${MP:-$([[ ${LOADL_STEP_TYPE:-SERIAL} = PARALLEL ]]&&echo "p"||echo "s")}
export XC=${XC:-}
export POSTGPEXEC=${POSTGPEXEC:-${EXECgfs}/gfs_ncep_post}
export POSTGPEXEC=${POSTGPEXEC:-${EXECgfs}/upp.x}
export OVERPARMEXEC=${OVERPARMEXEC:-${EXECgfs}/overparm_grib}
export POSTGPLIST=${POSTGPLIST:-/dev/null}
export INISCRIPT=${INISCRIPT:-}
Expand Down Expand Up @@ -340,7 +340,7 @@ export CTL=$(basename $CTLFILE)
ln -sf griddef.out fort.110
cp ${PARMpost}/nam_micro_lookup.dat ./eta_micro_lookup.dat

echo "gfs_nceppost.sh OMP_NUM_THREADS= $OMP_NUM_THREADS"
echo "gfs_post.sh OMP_NUM_THREADS= $OMP_NUM_THREADS"
${APRUN:-mpirun.lsf} $POSTGPEXEC < itag > outpost_gfs_${VDATE}_${CTL}

export ERR=$?
Expand Down
Loading

0 comments on commit a94369b

Please sign in to comment.