Skip to content

Commit

Permalink
sync of fork changes into main code base (mainly 3-way split stuff) (#16
Browse files Browse the repository at this point in the history
)

* Adds a partially modified drive_refs_enspost_conus.xml to kick off this
feature branch.

* Draft of 3-way split of PREPROC_FV3 job.

* Adds EAS_3, and updates times in the EAS ex-scripts

* Modifies the ENSPROD_ jobs for new setup

* Update for v0.9.1 ensmemble filenames.

* Pushes a few changes from the main develop into this branch

* Folds in USH preprocess change from main develop

* Some changes that have gotten v1.1 time split version closer to working
well.

* Brings in updates that had been running on dogwood.

* Attempt at making .xml files for ak and pr for the three way split

* Adds ak and pr to run_refs.sh script

* Cleans out some v1.1 relics from the feature branch.

* Updates rocoto .xml files slightly, folds in local GEMPAK table change.

* Fixes log file directory away from v11 specification.

* Removes highest EAS threshold added previously.  Looking for more
efficiency.  Not able to test with real-time not running.
  • Loading branch information
MatthewPyle-NOAA authored Jan 31, 2025
1 parent 04e7ef1 commit 243413d
Show file tree
Hide file tree
Showing 20 changed files with 3,563 additions and 421 deletions.
21 changes: 21 additions & 0 deletions gempak/fix/g2varswmo0.tbl
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,27 @@
000 001 027 000 Maximum Relative Humidity % RHMX-- 0 -9999.00
!000 001 028 000 Maximum Absolute Humidity kg m**-3 ???? ? -9999.00
000 001 029 008 Total Snowfall m SNOW 0 -9999.00
000 001 029 009 Total Snowfall m SNOW 0 -9999.00
000 001 029 005 Total Snowfall m SNOW 0 -9999.00
000 001 029 002 Total Snowfall m SNOW 0 -9999.00
!000 001 030 000 Precipitable water Category code table ???? ? -9999.00
!000 001 031 000 Hail m ???? ? -9999.00
!000 001 032 000 Graupel (snow pellets) kg kg**-1 ???? ? -9999.00
000 001 033 008 Categorical rain 0,1 WXTR 0 -9999.00
000 001 033 005 Categorical rain 0,1 WXTR 0 -9999.00
000 001 033 002 Categorical rain 0,1 WXTR 0 -9999.00
000 001 034 008 Categorical freezing rain 0,1 WXTZ 0 -9999.00
000 001 034 005 Categorical freezing rain 0,1 WXTZ 0 -9999.00
000 001 034 002 Categorical freezing rain 0,1 WXTZ 0 -9999.00
000 001 035 008 Categorical ice pellets 0,1 WXTP 0 -9999.00
000 001 035 005 Categorical ice pellets 0,1 WXTP 0 -9999.00
000 001 035 002 Categorical ice pellets 0,1 WXTP 0 -9999.00
000 001 036 008 Categorical snow 0,1 WXTS 0 -9999.00
000 001 036 005 Categorical snow 0,1 WXTS 0 -9999.00
000 001 036 002 Categorical snow 0,1 WXTS 0 -9999.00

000 001 045 000 Total Col-Integ Rain kg m**-2 TCOLR 0 -9999.00

000 001 045 000 Total Col-Integ Rain kg m**-2 TCOLR 0 -9999.00
000 001 046 000 Total Col-Integ Snow kg m**-2 TCOLS 0 -9999.00
000 001 192 000 Weather NA WX 0 -9999.00
Expand Down Expand Up @@ -130,6 +148,9 @@
000 016 197 000 Echo Top Height m ECHTOP 0 -9999.00
000 016 197 002 Echo Top Height m ECHTOP 0 -9999.00
000 016 197 005 Echo Top Height m ECHTOP 0 -9999.00
000 016 003 000 Echo Top Height m ECHTOP 0 -9999.00
000 016 003 002 Echo Top Height m ECHTOP 0 -9999.00
000 016 003 005 Echo Top Height m ECHTOP 0 -9999.00
!000 002 021 000 Maximum Wind Speed m s**-1 ???? ? -9999.00
000 002 022 000 Wind Speed (gust) m s**-1 GUST ? -9999.00
!000 002 023 000 u-component of wind (gust) m s**-1 ???? ? -9999.00
Expand Down
86 changes: 86 additions & 0 deletions jobs/JREFS_EAS_3
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
#!/bin/ksh

########################################
# Preliminary data setup step
#
# 05/01/2023, Jun Du: added a timelag version (type=timelag, single)
#
########################################
set -xa
export PS4='$SECONDS + '
date

###########################################################
# obtain unique process id (pid) and make temp directories
###########################################################
export DATA=${DATA:-${DATAROOT:?}/${jobid:?}}
mkdir -p $DATA
rm -rf $DATA/*
cd $DATA

msg="JOB $job HAS BEGUN"
postmsg "$msg"

export cycle=${cycle:-t${cyc}z}
setpdy.sh
. ./PDY

##################################################
# SENDCOM - Copy Files From TMPDIR to $COMOUT
# SENDDBN - Issue DBNet Client Calls
##################################################
export SENDCOM=${SENDCOM:-YES}
export SENDECF=${SENDECF:-YES}
export SENDDBN=${SENDDBN:-YES}
export SENDDBN_NTC=${SENDDBN_NTC:-NO}

###############################################################
# This block can be modified for different Production test
# environment. This is used for operational testings
###############################################################

## PDY not included here as pull data from PDYm1 as well

# Save it for time lag ensemble
export COMINhrrr=${COMINhrrr:-$GESROOT/refs}

export HOMErefs=${HOMErefs:-$PACKAGEROOT/refs.${refs_ver}}
export EXECrefs=${EXECrefs:-$HOMErefs/exec}
export PARMrefs=${PARMrefs:-$HOMErefs/parm}
export USHrefs=${USHrefs:-$HOMErefs/ush}
export FIXrefs=${FIXrefs:-$HOMErefs/fix}
export SCRIPTSrefs=${SCRIPTSrefs:-$HOMErefs/scripts}

###################################
# Specify NET and RUN Name and model
####################################
export NET=${NET:-refs}
export RUN=${RUN:-refs}

export IOBUF_PARAMS='*:size=8M:count=8'
##############################################
# Define running directory and COM directories
##############################################

export COMOUT=${COMOUT:-$(compath.py -o $NET/${refs_ver})/$RUN.${PDY}}

if [ ! -d $COMOUT ] ; then
mkdir -p $COMOUT/ensprod
mkdir -p $COMOUT/verf_g2g
fi

export pgmout="OUTPUT.$$"

########################################################
# Execute the script.

$HOMErefs/scripts/exrefs_eas_3.sh.ecf $type
########################################################

msg="JOB $job HAS COMPLETED NORMALLY."
postmsg "$msg"

cd $DATAROOT
if [ $KEEPDATA = NO ]; then rm -rf $DATA; fi

date
3 changes: 1 addition & 2 deletions jobs/JREFS_ENSPROD_1
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ then
rm -rf ./poe.*
fi

hrlist="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 \
26 27 28 29 30 31 32 33 34 35 36"
hrlist="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24"

for hr in $hrlist
do
Expand Down
10 changes: 3 additions & 7 deletions jobs/JREFS_ENSPROD_2
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,9 @@ export pgmout="OUTPUT.$$"

rm -rf poe.*

if [ $type = single ];then
hrlist_link="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60"
hrlist="37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60"
else
hrlist_link="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60"
hrlist="37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60"
fi
hrlist_link="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48"

hrlist="25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48"

for hr in $hrlist_link
do
Expand Down
128 changes: 128 additions & 0 deletions jobs/JREFS_ENSPROD_3
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
#!/bin/bash

#############################################################
# 02/02/2015 Binbin Zhou, create for run all scripts
# 2nd part to process 37-60h -- Jun
# 04/26/2023, Jun Du: added a timelag version (type=timelag or single)
# 02/06/2024 M. Pyle - switches things to REFS
#
#############################################################

########################################
# Preliminary data setup step
########################################

set -xa
export PS4='$SECONDS + '
date

###########################################################
# obtain unique process id (pid) and make temp directories
###########################################################
export DATA=${DATA:-${DATAROOT:?}/${jobid:?}}
mkdir -p $DATA
rm -rf $DATA/*
cd $DATA

msg="JOB $job HAS BEGUN"
postmsg "$msg"

#
# Run setpdy and initialize PDY variables
#

export cycle=${cycle:-t${cyc}z}
setpdy.sh
. ./PDY

##################################################
# SENDCOM - Copy Files From TMPDIR to $COMOUT
# SENDDBN - Issue DBNet Client Calls
##################################################
export ndate=/apps/ops/prod/nco/core/prod_util.v2.0.8/exec/ndate

export SENDCOM=${SENDCOM:-YES}
export SENDECF=${SENDECF:-YES}
export SENDDBN=${SENDDBN:-YES}
export SENDDBN_NTC=${SENDDBN_NTC:-NO}

export HOMErefs=${HOMErefs:-$PACKAGEROOT/refs.${refs_ver}}
export EXECrefs=${EXECrefs:-$HOMErefs/exec}
export PARMrefs=${PARMrefs:-$HOMErefs/parm}
export USHrefs=${USHrefs:-$HOMErefs/ush}
export FIXrefs=${FIXrefs:-$HOMErefs/fix}
export SCRIPTSrefs=${SCRIPTSrefs:-$HOMErefs/scripts}

###################################
# Specify NET and RUN Name and model
####################################
export NET=${NET:-refs}
export RUN=${RUN:-refs}

export IOBUF_PARAMS='*:size=8M:count=8'

##############################################
# Define running directory and COM directories
##############################################

## PDY not included here as pull data from PDYm1 as well

# should this be COMINrefs?
export COMINrefs=${COMINrefs:-$GESROOT/${RUN}}

export COMOUT=${COMOUT:-$(compath.py -o $NET/${refs_ver})/${RUN}.${PDY}}
export COMINffg=${COMINffg:-$(compath.py -o $NET/${refs_ver})/${RUN}.${PDY}}
export COMINffgm1=${COMINffg:-$(compath.py -o $NET/${refs_ver})/${RUN}.${PDYm1}}

if [ ! -d $COMOUT/ensprod ] ; then
mkdir -p $COMOUT/ensprod
mkdir -p $COMOUT/verf_g2g
mkdir -p $COMOUT/wmo
fi

export pgmout="OUTPUT.$$"

#######################################################
# Pass information which is needed to run the Script
#######################################################

# export VERBOSE=YES

###################################################
# Execute the Script exrefs_ensprod.sh.ecf

rm -rf poe.*

hrlist_link="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60"

hrlist="49 50 51 52 53 54 55 56 57 58 59 60"

for hr in $hrlist_link
do
echo "$SCRIPTSrefs/exrefs_ensprod_link.sh.ecf $hr $type" >> poe.link.all
done

for hr in $hrlist
do
echo "$SCRIPTSrefs/exrefs_ensprod.sh.ecf $hr $type" >> poe.ensprod.all
done


chmod 775 poe.link.all
chmod 775 poe.ensprod.all

mpiexec -n $NTASK_LINK -ppn $PTILE_LINK --cpu-bind verbose,core cfp ./poe.link.all
export err=$?; err_chk
mpiexec -n $NTASK -ppn $PTILE --cpu-bind verbose,core cfp ./poe.ensprod.all
export err=$?; err_chk


msg="JOB $job HAS COMPLETED NORMALLY."
postmsg "$msg"
date


cd $DATAROOT
if [ $KEEPDATA = NO ]; then rm -rf $DATA; fi

date
Loading

0 comments on commit 243413d

Please sign in to comment.