Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
63dbdf5
Add data assimilation cycle to workflow, including: jobs, scripts, mo…
hu5970 Nov 17, 2020
bddc5dd
Add data assimilation cycle information into var_defns.sh.
hu5970 Nov 17, 2020
9d200b6
Add scripts to generate the FV3LAM namelist for running forecast from…
hu5970 Nov 24, 2020
e6ae91e
Revise scripts based on Christina's comments.
hu5970 Nov 24, 2020
205d11a
Updated more scripts absed on Christina and Trevor's comments.
hu5970 Nov 25, 2020
eb9a922
Add the tasks for preprocess radar reflectivity and radar tten calcul…
hu5970 Nov 30, 2020
59e4186
Update code based on Christina's review.
hu5970 Dec 1, 2020
52da1a7
Update scripts/exregional_run_analysis.sh based on Christina's comments.
hu5970 Dec 1, 2020
9dd5853
Clean exregional_process_radarref.sh
hu5970 Dec 1, 2020
cf98f92
Added scripts for lightning process (NetCDF).
hu5970 Dec 1, 2020
14493fb
Add scripts to process BUFR observation files (METAR cloud, NASA LaRC…
hu5970 Dec 2, 2020
2ff91bd
Improve code based on Chiristina's comments.
hu5970 Dec 2, 2020
5152a9a
Add lightning data path.
hu5970 Dec 10, 2020
37ef087
Merge branch 'feature/RRFS_dev2_cld' into feature/RRFS_dev2
hu5970 Dec 11, 2020
fb9a46a
Add no-var cloud analysis for RRFS:
hu5970 Dec 11, 2020
932a082
Add more accurate descriptions to the code.
hu5970 Dec 11, 2020
13533e6
Check if BUFR files exist before run preprocess.
hu5970 Dec 16, 2020
a9476e0
Merge branch 'feature/RRFS_dev2' of https://github.com/hu5970/regiona…
hu5970 Dec 16, 2020
ce5b6fb
Merge branch 'feature/RRFS_dev2' into feature/RRFS_dev2
Dec 17, 2020
b4e2b3d
Clean the code for PR (#22) based on Christina's comments
hu5970 Dec 18, 2020
c2e0542
Add descriptions for namelists generated in the scripts.
hu5970 Dec 21, 2020
5720e07
Bug fix in generate_FV3LAM_wflow.sh for generating DA workflow.
hu5970 Dec 23, 2020
6c7c28a
Only give warnings if the data preprocess executable crashed.
hu5970 Dec 23, 2020
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix
ush/config.sh
98 changes: 98 additions & 0 deletions jobs/JREGIONAL_NOVARCLD
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
#!/bin/bash

#-----------------------------------------------------------------------
#
# This J-JOB script runs the standalone No-Var Cloud Analysis
# for the FV3-LAM model
#
#-----------------------------------------------------------------------

#
#-----------------------------------------------------------------------
#
# Source the variable definitions file and the bash utility functions.
#
#-----------------------------------------------------------------------
#
. ${GLOBAL_VAR_DEFNS_FP}
. $USHDIR/source_util_funcs.sh
#
#-----------------------------------------------------------------------
#
# Save current shell options (in a global array). Then set new options
# for this script/function.
#
#-----------------------------------------------------------------------
#
{ save_shell_opts; set -u +x; } > /dev/null 2>&1
#
#-----------------------------------------------------------------------
#
# Get the full path to the file in which this script/function is located
# (scrfunc_fp), the name of that file (scrfunc_fn), and the directory in
# which the file is located (scrfunc_dir).
#
#-----------------------------------------------------------------------
#
scrfunc_fp=$( readlink -f "${BASH_SOURCE[0]}" )
scrfunc_fn=$( basename "${scrfunc_fp}" )
scrfunc_dir=$( dirname "${scrfunc_fp}" )
#
#-----------------------------------------------------------------------
#
# Print message indicating entry into script.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Entering script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"

This is the J-job script for the task that runs a standalone No-Var cloud
analysis with FV3 for the specified cycle.
========================================================================"
#
#-----------------------------------------------------------------------
#
# Create the working directory under the cycle directory.
#
#-----------------------------------------------------------------------
#
WORKDIR=${CYCLE_DIR}/novar_cldanl
rm -fr ${WORKDIR}
mkdir_vrfy -p ${WORKDIR}
#
#-----------------------------------------------------------------------
#
# Call the ex-script for this J-job and pass to it the necessary varia-
# bles.
#
#-----------------------------------------------------------------------
#
$SCRIPTSDIR/exregional_novarcldanl.sh \
CYCLE_DIR="${CYCLE_DIR}" WORKDIR="${WORKDIR}" || \
print_err_msg_exit "\
Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed."
#
#-----------------------------------------------------------------------
#
# Print exit message.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Exiting script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"
========================================================================"
#
#-----------------------------------------------------------------------
#
# Restore the shell options saved at the beginning of this script/func-
# tion.
#
#-----------------------------------------------------------------------
#
{ restore_shell_opts; } > /dev/null 2>&1

99 changes: 99 additions & 0 deletions jobs/JREGIONAL_PROCESS_BUFR
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
#!/bin/bash

#
#-----------------------------------------------------------------------
#
# This J-JOB script runs the preprocess of BUFR files
# for the FV3-LAM model
#
#-----------------------------------------------------------------------
#
#
#-----------------------------------------------------------------------
#
# Source the variable definitions file and the bash utility functions.
#
#-----------------------------------------------------------------------
#
. ${GLOBAL_VAR_DEFNS_FP}
. $USHDIR/source_util_funcs.sh
#
#-----------------------------------------------------------------------
#
# Save current shell options (in a global array). Then set new options
# for this script/function.
#
#-----------------------------------------------------------------------
#
{ save_shell_opts; set -u +x; } > /dev/null 2>&1
#
#-----------------------------------------------------------------------
#
# Get the full path to the file in which this script/function is located
# (scrfunc_fp), the name of that file (scrfunc_fn), and the directory in
# which the file is located (scrfunc_dir).
#
#-----------------------------------------------------------------------
#
scrfunc_fp=$( readlink -f "${BASH_SOURCE[0]}" )
scrfunc_fn=$( basename "${scrfunc_fp}" )
scrfunc_dir=$( dirname "${scrfunc_fp}" )
#
#-----------------------------------------------------------------------
#
# Print message indicating entry into script.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Entering script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"

This is the J-job script for the task that runs a BUFR preprocess for
the specified cycle.
========================================================================"
#
#-----------------------------------------------------------------------
#
# Create the working directory under the cycle directory.
#
#-----------------------------------------------------------------------
#
WORKDIR=${CYCLE_DIR}/process_bufr
rm -fr ${WORKDIR}
mkdir_vrfy -p ${WORKDIR}
#
#-----------------------------------------------------------------------
#
# Call the ex-script for this J-job and pass to it the necessary varia-
# bles.
#
#-----------------------------------------------------------------------
#
$SCRIPTSDIR/exregional_process_bufr.sh \
CYCLE_DIR="${CYCLE_DIR}" WORKDIR="${WORKDIR}" || \
print_err_msg_exit "\
Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed."
#
#-----------------------------------------------------------------------
#
# Print exit message.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Exiting script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"
========================================================================"
#
#-----------------------------------------------------------------------
#
# Restore the shell options saved at the beginning of this script/func-
# tion.
#
#-----------------------------------------------------------------------
#
{ restore_shell_opts; } > /dev/null 2>&1

99 changes: 99 additions & 0 deletions jobs/JREGIONAL_PROCESS_LIGHTNING
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
#!/bin/bash

#
#-----------------------------------------------------------------------
#
# This J-JOB script runs the NetCDF ligthning observation preprocess
# for the FV3-LAM model
#
#-----------------------------------------------------------------------
#
#
#-----------------------------------------------------------------------
#
# Source the variable definitions file and the bash utility functions.
#
#-----------------------------------------------------------------------
#
. ${GLOBAL_VAR_DEFNS_FP}
. $USHDIR/source_util_funcs.sh
#
#-----------------------------------------------------------------------
#
# Save current shell options (in a global array). Then set new options
# for this script/function.
#
#-----------------------------------------------------------------------
#
{ save_shell_opts; set -u +x; } > /dev/null 2>&1
#
#-----------------------------------------------------------------------
#
# Get the full path to the file in which this script/function is located
# (scrfunc_fp), the name of that file (scrfunc_fn), and the directory in
# which the file is located (scrfunc_dir).
#
#-----------------------------------------------------------------------
#
scrfunc_fp=$( readlink -f "${BASH_SOURCE[0]}" )
scrfunc_fn=$( basename "${scrfunc_fp}" )
scrfunc_dir=$( dirname "${scrfunc_fp}" )
#
#-----------------------------------------------------------------------
#
# Print message indicating entry into script.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Entering script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"

This is the J-job script for the task that runs a lightning preprocess for
the specified cycle.
========================================================================"
#
#-----------------------------------------------------------------------
#
# Create the working directory under the cycle directory.
#
#-----------------------------------------------------------------------
#
WORKDIR=${CYCLE_DIR}/process_lightning
rm -fr ${WORKDIR}
mkdir_vrfy -p ${WORKDIR}
#
#-----------------------------------------------------------------------
#
# Call the ex-script for this J-job and pass to it the necessary varia-
# bles.
#
#-----------------------------------------------------------------------
#
$SCRIPTSDIR/exregional_process_lightning.sh \
CYCLE_DIR="${CYCLE_DIR}" WORKDIR="${WORKDIR}" || \
print_err_msg_exit "\
Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed."
#
#-----------------------------------------------------------------------
#
# Print exit message.
#
#-----------------------------------------------------------------------
#
print_info_msg "
========================================================================
Exiting script: \"${scrfunc_fn}\"
In directory: \"${scrfunc_dir}\"
========================================================================"
#
#-----------------------------------------------------------------------
#
# Restore the shell options saved at the beginning of this script/func-
# tion.
#
#-----------------------------------------------------------------------
#
{ restore_shell_opts; } > /dev/null 2>&1

7 changes: 4 additions & 3 deletions jobs/JREGIONAL_PROCESS_RADARREF
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/bash


#
#-----------------------------------------------------------------------
#
# This J-JOB script runs the radar reflectivity preprocess
# for the FV3-LAM model
#
#-----------------------------------------------------------------------
#

#
#-----------------------------------------------------------------------
Expand Down Expand Up @@ -60,9 +63,7 @@ preprocess with FV3 for the specified cycle.
#-----------------------------------------------------------------------
#
WORKDIR=${CYCLE_DIR}/PROCESS_RADARREF
if [ -r ${WORKDIR} ]; then
rm -fr ${WORKDIR}
fi
rm -fr ${WORKDIR}
mkdir_vrfy -p ${WORKDIR}
#
#-----------------------------------------------------------------------
Expand Down
4 changes: 1 addition & 3 deletions jobs/JREGIONAL_REFL2TTEN
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ the specified cycle.
#-----------------------------------------------------------------------
#
WORKDIR=${CYCLE_DIR}/REFL2TTEN
if [ -r ${WORKDIR} ]; then
rm -fr ${WORKDIR}
fi
rm -fr ${WORKDIR}
mkdir_vrfy -p ${WORKDIR}
#
#-----------------------------------------------------------------------
Expand Down
4 changes: 1 addition & 3 deletions jobs/JREGIONAL_RUN_ANAL
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ the specified cycle.
#-----------------------------------------------------------------------
#
ANALWORKDIR=${CYCLE_DIR}/ANAL_GSI
if [ -r ${ANALWORKDIR} ]; then
rm -fr ${ANALWORKDIR}
fi
rm -fr ${ANALWORKDIR}
mkdir_vrfy -p ${ANALWORKDIR}
#
#-----------------------------------------------------------------------
Expand Down
Loading