-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[develop] Integrate smoke/dust capability of main_aqm into develop (#…
…1185) * Integrate the smoke and dust capability of the main-aqm branch into the develop branch of the UFS SRW App. * This capability works on Hera, Orion, Hercules, and Gaea-C6. * A we2e test for smoke/dust is added * A sample configuration YAML file config.smoke_dust.yaml is added to the ush directory * Update the hash of the UFS Weather Model with 3a5e52e where the change of the RRFS production branch is included. * Update the hash of UPP with the release/srw-v3.0.0 branch in the NOAA-EPIC fork of UPP. --------- Co-authored-by: Chan-hoo Jeon <[email protected]> Co-authored-by: michael.lueken <[email protected]>
- Loading branch information
1 parent
8b980b9
commit ad926b4
Showing
56 changed files
with
3,566 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
smoke\_dust\_add\_smoke module | ||
============================== | ||
|
||
.. automodule:: smoke_dust_add_smoke | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
smoke\_dust\_fire\_emiss\_tools module | ||
====================================== | ||
|
||
.. automodule:: smoke_dust_fire_emiss_tools | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
smoke\_dust\_generate\_fire\_emissions module | ||
============================================= | ||
|
||
.. automodule:: smoke_dust_generate_fire_emissions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
smoke\_dust\_hwp\_tools module | ||
============================== | ||
|
||
.. automodule:: smoke_dust_hwp_tools | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
smoke\_dust\_interp\_tools module | ||
================================= | ||
|
||
.. automodule:: smoke_dust_interp_tools | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ dependencies: | |
- pylint=2.17* | ||
- pytest=7.2* | ||
- uwtools=2.3* | ||
- sphinx=7.4.0* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
#!/usr/bin/env bash | ||
|
||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# This script runs prepstart to update IC files for Smoke/Dust | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
date | ||
export PS4='+ $SECONDS + ' | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# Source the variable definitions file and the bash utility functions. | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
. ${USHdir}/source_util_funcs.sh | ||
for sect in user nco platform workflow global smoke_dust_parm ; do | ||
source_yaml ${GLOBAL_VAR_DEFNS_FP} ${sect} | ||
done | ||
set -xue | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# 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 copies or fetches RAVE fire | ||
emission data files from disk, or HPSS. | ||
========================================================================" | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# Define job and jobid by default for rocoto | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
WORKFLOW_MANAGER="${WORKFLOW_MANAGER:-rocoto}" | ||
if [ "${WORKFLOW_MANAGER}" = "rocoto" ]; then | ||
if [ "${SCHED}" = "slurm" ]; then | ||
job=${SLURM_JOB_NAME} | ||
pid=${SLURM_JOB_ID} | ||
elif [ "${SCHED}" = "pbspro" ]; then | ||
job=${PBS_JOBNAME} | ||
pid=${PBS_JOBID} | ||
else | ||
job="task" | ||
pid=$$ | ||
fi | ||
jobid="${job}.${PDY}${cyc}.${pid}" | ||
fi | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# Create a temp working directory (DATA) and cd into it. | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
export DATA="${DATA:-${DATAROOT}/${jobid}}" | ||
mkdir -p $DATA | ||
cd $DATA | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# Define NCO environment variables and set COM type definitions. | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
export NET="${NET:-${NET_default}}" | ||
export RUN="${RUN:-${RUN_default}}" | ||
|
||
[[ "$WORKFLOW_MANAGER" = "rocoto" ]] && export COMROOT=$COMROOT | ||
if [ "${MACHINE}" = "WCOSS2" ]; then | ||
export COMIN="${COMIN:-$(compath.py -o ${NET}/${model_ver})}" | ||
export COMOUT="${COMOUT:-$(compath.py -o ${NET}/${model_ver}/${RUN}.${PDY}/${cyc}${SLASH_ENSMEM_SUBDIR})}" | ||
else | ||
export COMIN="${COMIN:-${COMROOT}/${NET}/${model_ver}}" | ||
export COMOUT="${COMOUT:-${COMROOT}/${NET}/${model_ver}/${RUN}.${PDY}/${cyc}${SLASH_ENSMEM_SUBDIR}}" | ||
fi | ||
|
||
mkdir -p ${COMOUT} | ||
|
||
# Create a teomporary share directory | ||
export DATA_SHARE="${DATA_SHARE:-${DATAROOT}/DATA_SHARE/${PDY}${cyc}}" | ||
mkdir -p ${DATA_SHARE} | ||
|
||
# Run setpdy to initialize PDYm and PDYp variables | ||
export cycle="${cycle:-t${cyc}z}" | ||
setpdy.sh | ||
. ./PDY | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# Set sub-cycle and ensemble member names in file/diectory names | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
if [ ${subcyc} -ne 0 ]; then | ||
export cycle="t${cyc}${subcyc}z" | ||
fi | ||
if [ $(boolify "${DO_ENSEMBLE}") = "TRUE" ] && [ ! -z ${ENSMEM_INDX} ]; then | ||
export dot_ensmem=".mem${ENSMEM_INDX}" | ||
else | ||
export dot_ensmem= | ||
fi | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# Call the ex-script for this J-job. | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
export pgmout="${DATA}/OUTPUT.$$" | ||
env | ||
|
||
${SCRIPTSdir}/exsrw_prepstart.sh | ||
export err=$?; err_chk | ||
|
||
if [ -e "$pgmout" ]; then | ||
cat $pgmout | ||
fi | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
# Whether or not working directory DATA should be kept. | ||
# | ||
#----------------------------------------------------------------------- | ||
# | ||
if [ "${KEEPDATA}" = "NO" ]; then | ||
rm -rf ${DATA} | ||
fi | ||
date | ||
|
Oops, something went wrong.