Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
f461a1d
Add preamble script from global workflow.
danielabdi-noaa Aug 12, 2022
9fd4f3d
Call preamble script in j-jobs and ex-scripts
danielabdi-noaa Aug 12, 2022
950b461
Call preamble in other scripts.
danielabdi-noaa Aug 12, 2022
223b50b
Make names of j-jobs and ex-scripts consistent.
danielabdi-noaa Aug 12, 2022
8e91ad9
Working towards nco vars in table 1.
danielabdi-noaa Aug 13, 2022
d59b628
Change default bin directory to exec
danielabdi-noaa Aug 14, 2022
75ca156
Appen FATAL ERROR to print_err_msg_exit.
danielabdi-noaa Aug 15, 2022
b15165a
Replace some cp, cd, mkdir calls with their corresponding _vrfy versions
danielabdi-noaa Aug 16, 2022
b4004d7
Add job and jobid to the job-card.
danielabdi-noaa Aug 16, 2022
a6c1173
Add cyc and subcyc to rocoto xml
danielabdi-noaa Aug 16, 2022
19caddb
Add a j-job preamble script for setpdy.
danielabdi-noaa Aug 16, 2022
2006396
Add a j-job postamble as well.
danielabdi-noaa Aug 16, 2022
182c24a
Define some Table 1 vars in setup.
danielabdi-noaa Aug 16, 2022
e4d23a7
Remove unused SRC_DIR, and rename others
danielabdi-noaa Aug 16, 2022
2d9a186
Rename CYCLE_BASEDIR to COMIN_BASEDIR
danielabdi-noaa Aug 16, 2022
ddc20a7
Create the NCO root directories in setup.
danielabdi-noaa Aug 16, 2022
c72001f
Remove source machine file wrapper.
danielabdi-noaa Aug 17, 2022
4344f6a
Bug fix in job_preamble.
danielabdi-noaa Aug 17, 2022
d6de3cd
Make make_ics/lbcs use DATA directory properly.
danielabdi-noaa Aug 17, 2022
69e852d
Make run_fcst use DATA directory properly.
danielabdi-noaa Aug 17, 2022
80bba66
Made run_post use DATA directory properly.
danielabdi-noaa Aug 18, 2022
79f154a
Make make_grid use DATA properly (untested).
danielabdi-noaa Aug 19, 2022
eded3ea
Make make_sfc_climo use DATA properly (untested).
danielabdi-noaa Aug 19, 2022
20ddbb0
Make make_orog use DATA properly (untested).
danielabdi-noaa Aug 19, 2022
ce35121
Bug fix for none-nco mode.
danielabdi-noaa Aug 19, 2022
a6ebb23
Don't pass arguments from j-jobs to ex-scripts.
danielabdi-noaa Aug 19, 2022
9a569d5
Make forecast and post-output go to COMOUT.
danielabdi-noaa Aug 19, 2022
859781a
Remove CYCLE_DIR and use COMIN instead.
danielabdi-noaa Aug 20, 2022
cb901fc
Bug fix for community mode.
danielabdi-noaa Aug 20, 2022
e20e810
Append cyc to COMIN in NCO mode.
danielabdi-noaa Aug 20, 2022
ba8f4b8
Fix rocoto run_post dependency with run_fcst issue.
danielabdi-noaa Aug 20, 2022
4b2bc0e
Use OPSROOT instead of PTMP and STMP.
danielabdi-noaa Aug 20, 2022
fb0a848
Move nco vars in config_defaults.
danielabdi-noaa Aug 20, 2022
5f84dd8
Move logdir location to COMROOT.
danielabdi-noaa Aug 20, 2022
ac36cea
Set all root directories to EXPTDIR in community mode.
danielabdi-noaa Aug 20, 2022
add637b
Use pgmout and pgmerr.
danielabdi-noaa Aug 20, 2022
e246b3f
Fix inline post.
danielabdi-noaa Aug 21, 2022
892daff
Make pgmout/err redirection work with community mode.
danielabdi-noaa Aug 21, 2022
c63d81c
Use print_err in get_obs_mrms.
danielabdi-noaa Aug 21, 2022
51f6b5c
Add prep_step.
danielabdi-noaa Aug 21, 2022
cee6d36
Add post_step.
danielabdi-noaa Aug 23, 2022
ccf77cc
Add dbn_alert to post-processed grib2 output.
danielabdi-noaa Aug 23, 2022
cc4c8de
Download extrn files directly to COMIN.
danielabdi-noaa Aug 26, 2022
6dfdd0c
Make make_ics/lbcs directly output to COMIN.
danielabdi-noaa Aug 26, 2022
e0fee4a
Change names of extrn_mdl_var_defns files.
danielabdi-noaa Aug 26, 2022
d647d94
Name fixes for DO_ENSEMBLE=false, dyn/phy
danielabdi-noaa Aug 26, 2022
3df5d2c
Don't create symlinks to grib2 files in NCO mode.
danielabdi-noaa Aug 26, 2022
ae343bc
Append rrfs to make_ics/lbcs output.
danielabdi-noaa Aug 26, 2022
178e4d2
Modify extrn_mdl_var_defns names.
danielabdi-noaa Aug 26, 2022
7a7e324
Move forecast output to DATA/RUN.PDY. This location
danielabdi-noaa Aug 27, 2022
548b824
Move templates to parm.
danielabdi-noaa Aug 29, 2022
5ac662d
Fix for new parm location.
danielabdi-noaa Aug 29, 2022
0e7afbf
Move metplus one level up.
danielabdi-noaa Aug 29, 2022
490f1de
Fixes for community mode.
danielabdi-noaa Aug 29, 2022
e864a01
Rename SCRIPTSDIR and JOBSDIR.
danielabdi-noaa Aug 29, 2022
77adc34
Move all FIX** directories in to a fix/ directory.
danielabdi-noaa Aug 29, 2022
6bb881f
Make FIXrrfs be EXPTDIR for community mode.
danielabdi-noaa Aug 29, 2022
69f37d8
Symlink upp and ufs_utils parm files to top level parm directory.
danielabdi-noaa Aug 30, 2022
fcba8db
Remove UPP_DIR and UFS_UTILS_DIR.
danielabdi-noaa Aug 30, 2022
6f9ff94
Define cycle with subcyc when it is non-zero.
danielabdi-noaa Aug 31, 2022
737b198
Don't delete COMIN_BASEDIR if it already exists.
danielabdi-noaa Aug 31, 2022
f40da27
Disassociate NCO mode from pre-generated grid.
danielabdi-noaa Aug 31, 2022
3606a51
Don't choose fix location based on RUN_ENVIR.
danielabdi-noaa Aug 31, 2022
7e155b2
Bug fix in make_lbcs.
danielabdi-noaa Sep 1, 2022
ca152f9
Add flag to symlink or copy fix files.
danielabdi-noaa Sep 1, 2022
369ce06
Change slurm log file locations
danielabdi-noaa Sep 1, 2022
fe22589
Minor fix for inline post in nco mode.
danielabdi-noaa Sep 1, 2022
e198887
Add unique workflow ID to avoid clashes between different runs, while
danielabdi-noaa Sep 2, 2022
ecc6d59
Make verification tasks NCO complaint.
danielabdi-noaa Sep 2, 2022
dcecfe3
Pass RUN_ENVIR to we2e script.
danielabdi-noaa Sep 5, 2022
c25a46c
Fixes for merge conflicts.
danielabdi-noaa Sep 8, 2022
d0ffd80
Add versions for wcoss2.
danielabdi-noaa Aug 30, 2022
b695afb
Fix symlinks.
danielabdi-noaa Sep 12, 2022
5bca8f7
Minor changes.
danielabdi-noaa Sep 12, 2022
08e63a0
Move grid/orog/sfcc completion files to EXPTDIR/grid/orog etc.
danielabdi-noaa Sep 13, 2022
fb403fb
Output modified namelist file with seeds in current directory.
danielabdi-noaa Sep 13, 2022
fcdffac
Fixes for unittests.
danielabdi-noaa Sep 13, 2022
2a92159
Bugfix wrf_io version
danielabdi-noaa Sep 13, 2022
9d5551e
Fix CI issue with bin locations.
danielabdi-noaa Sep 14, 2022
6a52e62
Allow NCO root directories to be set individually.
danielabdi-noaa Sep 14, 2022
6b14cd1
Don't append workflow id in community mode.
danielabdi-noaa Sep 15, 2022
b3a6c99
Add helper script to rename model e.g. rrfs->aqm
danielabdi-noaa Sep 15, 2022
15d0918
Bug fixes and naming changes for consitency.
danielabdi-noaa Sep 16, 2022
e5993b5
Replace instances of USHrrfs etc with a generic USHdir etc.
danielabdi-noaa Sep 16, 2022
42ea00d
Add unittest for whole workflow now that the merge made it possible.
danielabdi-noaa Sep 16, 2022
2a6b107
Remove unused process_args utility.
danielabdi-noaa Sep 17, 2022
f6c63ac
Remove hard coded paths from configs.
danielabdi-noaa Sep 19, 2022
1de5a67
Don't replace existing var value with None.
danielabdi-noaa Sep 19, 2022
8c3199f
Add config.nco to unittest.
danielabdi-noaa Sep 19, 2022
f5b03fa
Fix for Orion issue.
danielabdi-noaa Sep 20, 2022
e87291e
Fix default OPSROOT location in run_we2e.
danielabdi-noaa Sep 20, 2022
41fd5ba
Modeify setup_we2e script to run fundamental tests on all machines.
danielabdi-noaa Sep 20, 2022
f3b1b3f
Fix conflicting ics/lbcs temp location by moving to DATA.
danielabdi-noaa Sep 21, 2022
1ecee87
Bug fix in load_modules taken from PR #353.
danielabdi-noaa Sep 21, 2022
e54b868
Specify default shell instead of symlinking.
danielabdi-noaa Sep 22, 2022
404ad02
Turn off grid/orog/sfc_climo tasks for NCO test cases.
danielabdi-noaa Sep 22, 2022
d4d39d6
Use PDY and cyc in ex-scripts.
danielabdi-noaa Sep 23, 2022
277381d
Remove CDATE from xml and define int job_preamble.
danielabdi-noaa Sep 23, 2022
0580a18
Use machine specific list of tests if available.
danielabdi-noaa Sep 23, 2022
49fd6d7
Run all tests in community mode so that the last NCO test case
danielabdi-noaa Sep 23, 2022
95b7ef0
Minor changes
danielabdi-noaa Sep 24, 2022
f4bc96e
Avoid using preamble in functions.
danielabdi-noaa Sep 24, 2022
a268b9f
Use preamble in function too.
danielabdi-noaa Sep 24, 2022
ce79280
Turn on debugging for utility functions.
danielabdi-noaa Sep 24, 2022
3c44bc7
Turn on debug & verbose in CI.
danielabdi-noaa Sep 24, 2022
21f9c96
Turn off set -e for init_env
danielabdi-noaa Sep 24, 2022
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
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,5 @@ jobs:
- run: |
cd ufs-srweather-app
./manage_externals/checkout_externals
module use modulefiles
module load build_cheyenne_intel
mdkir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=.. ..
make -j 4
./devbuild.sh -p=cheyenne -c=intel
- run: echo "🍏 This job's status is ${{ job.status }}."
2 changes: 1 addition & 1 deletion .github/workflows/python_func_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
paths:
- ush/*retrieve_data.py
- ush/templates/data_locations.yml
- parm/data_locations.yml
pull_request:

env:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/python_unittests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Python unittests
on: [push, pull_request, workflow_dispatch]
defaults:
run:
shell: bash
jobs:

python_unittests:
Expand All @@ -15,13 +18,17 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install python3 python3-pip netcdf-bin
sudo pip3 install pyyaml jinja2 f90nml
sudo pip3 install pyyaml jinja2==2.11 f90nml
sudo pip3 install numpy matplotlib basemap

# Run python unittests
- name: Run python unittests
run: |
./manage_externals/checkout_externals ufs-weather-model
cd ush
python3 -m unittest -b python_utils/test_python_utils.py
python3 -m unittest -b *.py
# exclude test_retrieve_data that is tested in functional test
files=$(find . -maxdepth 1 -name '*.py' -a ! -name 'test_retrieve_data.py' -exec basename {} \;)
Comment thread
danielabdi-noaa marked this conversation as resolved.
files=$(echo $(echo "${files[@]}"))
python3 -m unittest -b ${files[@]}

4 changes: 2 additions & 2 deletions devbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ OPTIONS
--install-dir=INSTALL_DIR
installation prefix
--bin-dir=BIN_DIR
installation binary directory name ("bin" by default; any name is available)
installation binary directory name ("exec" by default; any name is available)
--build-type=BUILD_TYPE
build type; defaults to RELEASE
(e.g. DEBUG | RELEASE | RELWITHDEBINFO)
Expand Down Expand Up @@ -102,7 +102,7 @@ SRW_DIR=$(cd "$(dirname "$(readlink -f -n "${BASH_SOURCE[0]}" )" )" && pwd -P)
MACHINE_SETUP=${SRW_DIR}/src/UFS_UTILS/sorc/machine-setup.sh
BUILD_DIR="${SRW_DIR}/build"
INSTALL_DIR=${SRW_DIR}
BIN_DIR="bin" #change this to "exec" for NCO mode later
BIN_DIR="exec"
COMPILER=""
APPLICATION=""
CCPP_SUITES=""
Expand Down
2 changes: 1 addition & 1 deletion docs/UsersGuide/source/ConfigWorkflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Cron is a job scheduler accessed through the command-line on UNIX-like operating
Directory Parameters
====================
``EXPT_BASEDIR``: (Default: "")
The full path to the base directory inside of which the experiment directory (``EXPT_SUBDIR``) will be created. If this is not specified or if it is set to an empty string, it will default to ``${HOMErrfs}/../../expt_dirs``, where ``${HOMErrfs}`` contains the full path to the ``regional_workflow`` directory.
The full path to the base directory inside of which the experiment directory (``EXPT_SUBDIR``) will be created. If this is not specified or if it is set to an empty string, it will default to ``${HOMEdir}/../../expt_dirs``, where ``${HOMEdir}`` contains the full path to the ``regional_workflow`` directory.

``EXPT_SUBDIR``: (Default: "")
A descriptive name of the user's choice for the experiment directory (*not* its full path). The full path to the experiment directory, which will be contained in the variable ``EXPTDIR``, will be:
Expand Down
12 changes: 6 additions & 6 deletions docs/UsersGuide/source/Graphics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,36 +196,36 @@ At a minimum, the account should be set appropriately prior to job submission:
Depending on the platform, users may also need to adjust the settings to use the correct Python environment and path to the shapefiles.

When working with these batch scripts, several environment variables must be set prior to submission.
If plotting output from a single cycle, the variables to set are ``$HOMErrfs`` and ``$EXPTDIR``.
If plotting output from a single cycle, the variables to set are ``$HOMEdir`` and ``$EXPTDIR``.
If the user's login shell is bash, these variables can be set as follows:

.. code-block:: console

export HOMErrfs=/path-to/ufs-srweather-app/regional_workflow
export HOMEdir=/path-to/ufs-srweather-app/regional_workflow
export EXPTDIR=/path-to/experiment/directory

If the user's login shell is csh/tcsh, they can be set as follows:

.. code-block:: console

setenv HOMErrfs /path-to/ufs-srweather-app/regional_workflow
setenv HOMEdir /path-to/ufs-srweather-app/regional_workflow
setenv EXPTDIR /path-to/experiment/directory

If plotting the difference between the same cycle from two different experiments, the variables
to set are ``$HOMErrfs``, ``$EXPTDIR1``, and ``$EXPTDIR2``. If the user's login shell
to set are ``$HOMEdir``, ``$EXPTDIR1``, and ``$EXPTDIR2``. If the user's login shell
is bash, these variables can be set as follows:

.. code-block:: console

export HOMErrfs=/path-to/ufs-srweather-app/regional_workflow
export HOMEdir=/path-to/ufs-srweather-app/regional_workflow
export EXPTDIR1=/path-to/experiment/directory1
export EXPTDIR2=/path-to/experiment/directory2

If the user's login shell is csh/tcsh, they can be set as follows:

.. code-block:: console

setenv HOMErrfs /path-to/ufs-srweather-app/regional_workflow
setenv HOMEdir /path-to/ufs-srweather-app/regional_workflow
Comment thread
danielabdi-noaa marked this conversation as resolved.
setenv EXPTDIR1 /path-to/experiment/directory1
setenv EXPTDIR2 /path-to/experiment/directory2

Expand Down
86 changes: 41 additions & 45 deletions jobs/JREGIONAL_GET_EXTRN_MDL_FILES
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#-----------------------------------------------------------------------
#
. ${GLOBAL_VAR_DEFNS_FP}
. $USHDIR/source_util_funcs.sh
. $USHdir/source_util_funcs.sh
. $USHdir/job_preamble.sh
#
#-----------------------------------------------------------------------
#
Expand All @@ -38,7 +39,7 @@
#
#-----------------------------------------------------------------------
#
{ save_shell_opts; set -u +x; } > /dev/null 2>&1
{ save_shell_opts; . $USHdir/preamble.sh; } > /dev/null 2>&1
#
#-----------------------------------------------------------------------
#
Expand Down Expand Up @@ -67,8 +68,6 @@ This is the J-job script for the task that copies or fetches external
model files from disk, HPSS, or URL, and stages them for downstream use
to generate initial or lateral boundary conditions for the FV3 model.
========================================================================"


#
#-----------------------------------------------------------------------
#
Expand All @@ -92,12 +91,12 @@ check_var_valid_value "ICS_OR_LBCS" "valid_vals_ICS_OR_LBCS"
#-----------------------------------------------------------------------
#
if [ "${ICS_OR_LBCS}" = "ICS" ]; then
time_offset_hrs=${EXTRN_MDL_ICS_OFFSET_HRS:-0}
extrn_mdl_name=${EXTRN_MDL_NAME_ICS}
export TIME_OFFSET_HRS=${EXTRN_MDL_ICS_OFFSET_HRS:-0}
export EXTRN_MDL_NAME=${EXTRN_MDL_NAME_ICS}

elif [ "${ICS_OR_LBCS}" = "LBCS" ]; then
time_offset_hrs=${EXTRN_MDL_LBCS_OFFSET_HRS:-0}
extrn_mdl_name=${EXTRN_MDL_NAME_LBCS}
export TIME_OFFSET_HRS=${EXTRN_MDL_LBCS_OFFSET_HRS:-0}
export EXTRN_MDL_NAME=${EXTRN_MDL_NAME_LBCS}
fi

#
Expand All @@ -108,16 +107,16 @@ fi
#-----------------------------------------------------------------------
#

hh=${CDATE:8:2}
yyyymmdd=${CDATE:0:8}
extrn_mdl_cdate=$( $DATE_UTIL --utc --date "${yyyymmdd} ${hh} UTC - ${time_offset_hrs} hours" "+%Y%m%d%H" )
yyyymmdd=${PDY}
hh=${cyc}
export EXTRN_MDL_CDATE=$( $DATE_UTIL --utc --date "${yyyymmdd} ${hh} UTC - ${TIME_OFFSET_HRS} hours" "+%Y%m%d%H" )

#
#-----------------------------------------------------------------------
#
# Check whether output files from the specified external model
# (extrn_mdl_name) are available on the specified cycle date and time
# (extrn_mdl_cdate).
# (EXTRN_MDL_NAME) are available on the specified cycle date and time
# (EXTRN_MDL_CDATE).
#
#-----------------------------------------------------------------------
#
Expand All @@ -133,60 +132,60 @@ function data_unavailable() {

if [ ${min_max} = max ]; then
msg="\
Output from the specified external model (extrn_mdl_name) is not availa-
ble for the specified cycle date and time (extrn_mdl_cdate) because the latter is
Output from the specified external model (EXTRN_MDL_NAME) is not availa-
ble for the specified cycle date and time (EXTRN_MDL_CDATE) because the latter is
later than the last forecast date and time (cdate_max) with this model:
extrn_mdl_name = \"${name}\"
EXTRN_MDL_NAME = \"${name}\"
CDATE_max = \"${end_date}\"
extrn_mdl_cdate = \"${cdate}\""
EXTRN_MDL_CDATE = \"${cdate}\""

elif [ ${min_max} = min ]; then
msg="\
Output from the specified external model (extrn_mdl_name) is not availa-
ble for the specified cycle date and time (extrn_mdl_cdate) because the latter is
Output from the specified external model (EXTRN_MDL_NAME) is not availa-
ble for the specified cycle date and time (EXTRN_MDL_CDATE) because the latter is
earlier than the implementation date of this model:
extrn_mdl_name = \"${name}\"
EXTRN_MDL_NAME = \"${name}\"
CDATE_min = \"${end_date}\"
extrn_mdl_cdate = \"${cdate}\""
EXTRN_MDL_CDATE = \"${cdate}\""
fi

echo ${msg}
}


case ${extrn_mdl_name} in
case ${EXTRN_MDL_NAME} in

"GSMGFS")
# The transition date from the GSMGFS to the FV3GFS was 2019061212, i.e.
# this was the first official forecast with the FV3GFS. So we set the
# last CDATE for the GSMGFS to the one 6 hours before this.
cdate_max="2019061206"
if [ "$extrn_mdl_cdate" -gt "$cdate_max" ]; then
if [ "$EXTRN_MDL_CDATE" -gt "$cdate_max" ]; then
print_err_msg_exit "\
$(data_unavailable $extrn_mdl_name $extrn_mdl_cdate $cdate_max max)"
$(data_unavailable $EXTRN_MDL_NAME $EXTRN_MDL_CDATE $cdate_max max)"
fi
;;

"FV3GFS")
# The transition date from the GSMGFS to the FV3GFS was 2019061212, i.e.
# this was the first official forecast with the FV3GFS. However, paral-
# lel runs with the FV3GFS go back to 2018121500. So we set the first
# extrn_mdl_cdate for the FV3GFS to this date and time.
# EXTRN_MDL_CDATE for the FV3GFS to this date and time.
# CDATE_min="2019061212"
CDATE_min="2018121500"
if [ "$extrn_mdl_cdate" -lt "$CDATE_min" ]; then
if [ "$EXTRN_MDL_CDATE" -lt "$CDATE_min" ]; then
print_err_msg_exit "\
$(data_unavailable $extrn_mdl_name $extrn_mdl_cdate $cdate_min min)"
$(data_unavailable $EXTRN_MDL_NAME $EXTRN_MDL_CDATE $cdate_min min)"
fi
;;

"RAP")
# Examination of the HPSS archives shows that the RAPX data goes back to
# July 01, 2015.
CDATE_min="2015070100"
if [ "$extrn_mdl_cdate" -lt "$CDATE_min" ]; then
if [ "$EXTRN_MDL_CDATE" -lt "$CDATE_min" ]; then
print_err_msg_exit "\
$(data_unavailable $extrn_mdl_name $extrn_mdl_cdate $cdate_min min)"
$(data_unavailable $EXTRN_MDL_NAME $EXTRN_MDL_CDATE $cdate_min min)"
fi
;;

Expand All @@ -195,9 +194,9 @@ case ${extrn_mdl_name} in
# implementation of the first version of the operational HRRR was
# September 30, 2014.
CDATE_min="2014103000"
if [ "$extrn_mdl_cdate" -lt "$CDATE_min" ]; then
if [ "$EXTRN_MDL_CDATE" -lt "$CDATE_min" ]; then
print_err_msg_exit "\
$(data_unavailable $extrn_mdl_name $extrn_mdl_cdate $cdate_min min)"
$(data_unavailable $EXTRN_MDL_NAME $EXTRN_MDL_CDATE $cdate_min min)"
fi
;;

Expand All @@ -209,35 +208,32 @@ esac
#
#-----------------------------------------------------------------------
#
extrn_mdl_staging_dir="${CYCLE_DIR}/${extrn_mdl_name}/for_${ICS_OR_LBCS}"
mkdir_vrfy -p "${extrn_mdl_staging_dir}"
cd_vrfy "${extrn_mdl_staging_dir}"
if [ $RUN_ENVIR = "nco" ]; then
export EXTRN_MDL_STAGING_DIR="${COMIN}"
mkdir_vrfy -p "${EXTRN_MDL_STAGING_DIR}"
else
export EXTRN_MDL_STAGING_DIR="${COMIN}/${EXTRN_MDL_NAME}/for_${ICS_OR_LBCS}"
mkdir_vrfy -p "${EXTRN_MDL_STAGING_DIR}"
cd_vrfy "${EXTRN_MDL_STAGING_DIR}"
fi
#
#-----------------------------------------------------------------------
#
# Call the ex-script for this J-job and pass to it the necessary variables.
#
#-----------------------------------------------------------------------
#
$SCRIPTSDIR/exregional_get_extrn_mdl_files.sh \
extrn_mdl_cdate="${extrn_mdl_cdate}" \
extrn_mdl_name="${extrn_mdl_name}" \
extrn_mdl_staging_dir="${extrn_mdl_staging_dir}" \
time_offset_hrs=${time_offset_hrs} ||
$SCRIPTSdir/exregional_get_extrn_mdl_files.sh || \
print_err_msg_exit "\
Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed."
#
#-----------------------------------------------------------------------
#
# Print exit message.
# Run job postamble.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Exiting script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"
========================================================================"
job_postamble
#
#-----------------------------------------------------------------------
#
Expand Down
15 changes: 6 additions & 9 deletions jobs/JREGIONAL_GET_OBS_CCPA
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#-----------------------------------------------------------------------
#
. ${GLOBAL_VAR_DEFNS_FP}
. $USHDIR/source_util_funcs.sh
. $USHdir/source_util_funcs.sh
. $USHdir/job_preamble.sh
#
#-----------------------------------------------------------------------
#
Expand All @@ -29,7 +30,7 @@
#
#-----------------------------------------------------------------------
#
{ save_shell_opts; set -u +x; } > /dev/null 2>&1
{ save_shell_opts; . $USHdir/preamble.sh; } > /dev/null 2>&1
#
#-----------------------------------------------------------------------
#
Expand Down Expand Up @@ -67,21 +68,17 @@ for verification purposes.
#
#-----------------------------------------------------------------------
#
$SCRIPTSDIR/exregional_get_ccpa_files.sh || \
$SCRIPTSdir/exregional_get_obs_ccpa.sh || \
print_err_msg_exit "\
Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed."
#
#-----------------------------------------------------------------------
#
# Print exit message.
# Run job postamble.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Exiting script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"
========================================================================"
job_postamble
#
#-----------------------------------------------------------------------
#
Expand Down
Loading