Skip to content

Commit

Permalink
Add MOS jobs to rocoto mesh (#2148)
Browse files Browse the repository at this point in the history
Create separate jobs for GFS MOS - extracted from now-retired vrfy job

Refs #2068
  • Loading branch information
KateFriedman-NOAA authored Dec 14, 2023
1 parent bb6151a commit f3f3e05
Show file tree
Hide file tree
Showing 39 changed files with 910 additions and 1 deletion.
8 changes: 8 additions & 0 deletions env/WCOSS2.env
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,12 @@ elif [[ "${step}" = "waveawipsbulls" ]]; then

unset PERL5LIB

elif [[ "${step:0:3}" = "mos" ]]; then

export FORT_BUFFERED=TRUE

if [[ "${step}" = "mos_stn_prep" ]]; then
export OMP_PROC_BIND=true
fi

fi
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_ext_grd_fcst.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_ext_grd_fcst"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_ext_grd_fcst" -c "base mos_ext_grd_fcst"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_EXT_GRD_FORECAST"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_ext_grd_prdgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_ext_grd_prdgen"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_ext_grd_prdgen" -c "base mos_ext_grd_prdgen"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_EXT_GRD_PRDGEN"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_ext_grd_prep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_ext_grd_prep"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_ext_grd_prep" -c "base mos_ext_grd_prep"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_EXT_GRD_PREP"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_ext_stn_fcst.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_ext_stn_fcst"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_ext_stn_fcst" -c "base mos_ext_stn_fcst"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_EXT_STN_FORECAST"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_ext_stn_prdgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_ext_stn_prdgen"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_ext_stn_prdgen" -c "base mos_ext_stn_prdgen"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_EXT_STN_PRDGEN"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_ext_stn_prep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_ext_stn_prep"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_ext_stn_prep" -c "base mos_ext_stn_prep"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_EXT_STN_PREP"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_grd_fcst.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_grd_fcst"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_grd_fcst" -c "base mos_grd_fcst"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_GRD_FORECAST"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_grd_prdgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_grd_prdgen"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_grd_prdgen" -c "base mos_grd_prdgen"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_GRD_PRDGEN"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_grd_prep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_grd_prep"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_grd_prep" -c "base mos_grd_prep"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_GRD_PREP"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_stn_fcst.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_stn_fcst"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_stn_fcst" -c "base mos_stn_fcst"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_STN_FORECAST"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_stn_prdgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_stn_prdgen"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_stn_prdgen" -c "base mos_stn_prdgen"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_STN_PRDGEN"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_stn_prep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_stn_prep"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_stn_prep" -c "base mos_stn_prep"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_STN_PREP"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_wx_ext_prdgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_wx_ext_prdgen"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_wx_ext_prdgen" -c "base mos_wx_ext_prdgen"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_WX_EXT_PRDGEN"
status=$?

exit "${status}"
25 changes: 25 additions & 0 deletions jobs/rocoto/mos_wx_prdgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

source "${HOMEgfs}/ush/preamble.sh"

###############################################################
# Source FV3GFS workflow modules
source "${HOMEgfs}/ush/load_fv3gfs_modules.sh"
status=$?
(( status != 0 )) && exit "${status}"

export job="mos_wx_prdgen"
export jobid="${job}.$$"

###############################################################
# Source jjob_header before invoking external JJOB

source "${HOMEgfs}/ush/jjob_header.sh" -e "mos_wx_prdgen" -c "base mos_wx_prdgen"

###############################################################
# Execute the JJOB

"${HOMEgfs_mos}/jobs/JGFSMOS_WX_PRDGEN"
status=$?

exit "${status}"
3 changes: 3 additions & 0 deletions modulefiles/module_base.wcoss2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ load(pathJoin("prepobs", os.getenv("prepobs_run_ver")))
prepend_path("MODULEPATH", pathJoin("/lfs/h2/emc/global/save/emc.global/git/Fit2Obs/v" .. os.getenv("fit2obs_ver"), "modulefiles"))
load(pathJoin("fit2obs", os.getenv("fit2obs_ver")))

append_path("MODULEPATH", pathJoin("/apps/ops/prod/nco/models/modulefiles"))
load(pathJoin("mos_shared", os.getenv("mos_shared_ver")))

whatis("Description: GFS run environment")
1 change: 1 addition & 0 deletions parm/config/gfs/config.base.emc.dyn
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export DO_GENESIS_FSU="NO" # Cyclone genesis verification (FSU)
export DO_VERFOZN="YES" # Ozone data assimilation monitoring
export DO_VERFRAD="YES" # Radiance data assimilation monitoring
export DO_VMINMON="YES" # GSI minimization monitoring
export DO_MOS="NO" # GFS Model Output Statistics - Only supported on WCOSS2

# NO for retrospective parallel; YES for real-time parallel
# arch.sh uses REALTIME for MOS. Need to set REALTIME=YES
Expand Down
Loading

0 comments on commit f3f3e05

Please sign in to comment.