Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
ming hu committed Oct 7, 2024
2 parents 97e3d27 + e247cb8 commit 8723574
Show file tree
Hide file tree
Showing 47 changed files with 333 additions and 65 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx sphinxcontrib-bibtex sphinx-rtd-theme numpy matplotlib pandas cartopy pandas cartopy f90nml netCDF4 xarray scipy
pip install sphinx sphinxcontrib-bibtex sphinx-rtd-theme
- name: Build docs
run: |
cd rrfs-workflow/doc/UsersGuide
sphinx-apidoc -o source/ ../../ush/
cd rrfs-workflow/docs
#sphinx-build -W --keep-going source build
sphinx-build source build
- uses: actions/upload-artifact@v4
with:
name: rrfs-workflow docs
path: |
rrfs-workflow/doc/UsersGuide/build
rrfs-workflow/docs/build
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: doc/UsersGuide/source/conf.py
configuration: docs/source/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
Expand All @@ -26,7 +26,7 @@ sphinx:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: doc/UsersGuide/requirements.txt
- requirements: docs/requirements.txt

submodules:
include:
Expand Down
4 changes: 0 additions & 4 deletions doc/UsersGuide/source/_templates/.gitignore

This file was deleted.

Binary file removed doc/UsersGuide/source/tables/.DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions docs/source/HWP_tools.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HWP\_tools module
=================

.. automodule:: HWP_tools
:members:
:undoc-members:
:show-inheritance:
25 changes: 25 additions & 0 deletions docs/source/Qmodules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ush
===

.. toctree::
:maxdepth: 2

HWP_tools
UFS_plot_domains
blending_fv3
chgres_cold2fv3
create_diag_table_file
create_model_configure_file
create_ufs_configure_file
enspost_config
fill_jinja_template
fire_emiss_tools
fvcom_remap
generate_fire_emissions
get_crontab_contents
interp_tools
log_change
python_utils
rrfsfw_domain
set_namelist

File renamed without changes.
7 changes: 7 additions & 0 deletions docs/source/UFS_plot_domains.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
UFS\_plot\_domains module
=========================

.. automodule:: UFS_plot_domains
:members:
:undoc-members:
:show-inheritance:
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions docs/source/blending_fv3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
blending\_fv3 module
====================

.. automodule:: blending_fv3
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/chgres_cold2fv3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
chgres\_cold2fv3 module
=======================

.. automodule:: chgres_cold2fv3
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion doc/UsersGuide/source/conf.py → docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import os
import sys
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('../../../ush'))
sys.path.insert(0, os.path.abspath('../../ush'))

# -- Project information -----------------------------------------------------

Expand Down
7 changes: 7 additions & 0 deletions docs/source/create_diag_table_file.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
create\_diag\_table\_file module
================================

.. automodule:: create_diag_table_file
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/create_model_configure_file.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
create\_model\_configure\_file module
=====================================

.. automodule:: create_model_configure_file
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/create_ufs_configure_file.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
create\_ufs\_configure\_file module
===================================

.. automodule:: create_ufs_configure_file
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/enspost_config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enspost\_config module
======================

.. automodule:: enspost_config
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/fill_jinja_template.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fill\_jinja\_template module
============================

.. automodule:: fill_jinja_template
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/fire_emiss_tools.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fire\_emiss\_tools module
=========================

.. automodule:: fire_emiss_tools
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/fvcom_remap.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fvcom\_remap module
===================

.. automodule:: fvcom_remap
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/generate_fire_emissions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
generate\_fire\_emissions module
================================

.. automodule:: generate_fire_emissions
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/get_crontab_contents.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
get\_crontab\_contents module
=============================

.. automodule:: get_crontab_contents
:members:
:undoc-members:
:show-inheritance:
File renamed without changes.
7 changes: 7 additions & 0 deletions docs/source/interp_tools.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
interp\_tools module
====================

.. automodule:: interp_tools
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/log_change.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
log\_change module
==================

.. automodule:: log_change
:members:
:undoc-members:
:show-inheritance:
25 changes: 25 additions & 0 deletions docs/source/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Utility Scripts
===============

.. toctree::
:maxdepth: 2

HWP_tools
UFS_plot_domains
blending_fv3
chgres_cold2fv3
create_diag_table_file
create_model_configure_file
create_ufs_configure_file
enspost_config
fill_jinja_template
fire_emiss_tools
fvcom_remap
generate_fire_emissions
get_crontab_contents
interp_tools
log_change
python_utils
rrfsfw_domain
set_namelist

117 changes: 117 additions & 0 deletions docs/source/python_utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
python\_utils package
=====================

Submodules
----------

python\_utils.check\_for\_preexist\_dir\_file module
----------------------------------------------------

.. automodule:: python_utils.check_for_preexist_dir_file
:members:
:undoc-members:
:show-inheritance:

python\_utils.check\_var\_valid\_value module
---------------------------------------------

.. automodule:: python_utils.check_var_valid_value
:members:
:undoc-members:
:show-inheritance:

python\_utils.config\_parser module
-----------------------------------

.. automodule:: python_utils.config_parser
:members:
:undoc-members:
:show-inheritance:

python\_utils.create\_symlink\_to\_file module
----------------------------------------------

.. automodule:: python_utils.create_symlink_to_file
:members:
:undoc-members:
:show-inheritance:

python\_utils.define\_macos\_utilities module
---------------------------------------------

.. automodule:: python_utils.define_macos_utilities
:members:
:undoc-members:
:show-inheritance:

python\_utils.environment module
--------------------------------

.. automodule:: python_utils.environment
:members:
:undoc-members:
:show-inheritance:

python\_utils.filesys\_cmds\_vrfy module
----------------------------------------

.. automodule:: python_utils.filesys_cmds_vrfy
:members:
:undoc-members:
:show-inheritance:

python\_utils.fv3write\_parms\_lambert module
---------------------------------------------

.. automodule:: python_utils.fv3write_parms_lambert
:members:
:undoc-members:
:show-inheritance:

python\_utils.misc module
-------------------------

.. automodule:: python_utils.misc
:members:
:undoc-members:
:show-inheritance:

python\_utils.print\_input\_args module
---------------------------------------

.. automodule:: python_utils.print_input_args
:members:
:undoc-members:
:show-inheritance:

python\_utils.print\_msg module
-------------------------------

.. automodule:: python_utils.print_msg
:members:
:undoc-members:
:show-inheritance:

python\_utils.run\_command module
---------------------------------

.. automodule:: python_utils.run_command
:members:
:undoc-members:
:show-inheritance:

python\_utils.xml\_parser module
--------------------------------

.. automodule:: python_utils.xml_parser
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: python_utils
:members:
:undoc-members:
:show-inheritance:
File renamed without changes.
7 changes: 7 additions & 0 deletions docs/source/rrfsfw_domain.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rrfsfw\_domain module
=====================

.. automodule:: rrfsfw_domain
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/set_namelist.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set\_namelist module
====================

.. automodule:: set_namelist
:members:
:undoc-members:
:show-inheritance:
18 changes: 1 addition & 17 deletions jobs/JRRFS_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,13 @@ the specified cycle.

export pid=${pid:-$$}
export RUN=${RUN:-rrfs}
export jobid=${taskid}

export mem_num=m$(echo "${ENSMEM_INDX}")

export CYCLE_TYPE=${CYCLE_TYPE:-prod}
export CYCLE_SUBTYPE=${CYCLE_SUBTYPE:-empty}

if [ ${CYCLE_TYPE} == "spinup" ]; then
if [ "${DO_ENSEMBLE}" = "TRUE" ]; then # EnKF has spinup forecasts
export jobid=${RUN}_forecast_spinup_${mem_num}_${envir}_${cyc}
if [ ${CYCLE_SUBTYPE} == "ensinit" ]; then
export jobid=${RUN}_forecast_ensinit_${mem_num}_${envir}_${cyc}
fi
else
export jobid=${RUN}_forecast_spinup_${envir}_${cyc}
fi
else
if [ "${DO_ENSEMBLE}" = "TRUE" ]; then
export jobid=${RUN}_forecast_${mem_num}_${envir}_${cyc}
else
export jobid=${RUN}_forecast_${envir}_${cyc}
fi
fi

export DATA=${DATAROOT}/${jobid}
mkdir -p ${DATA}

Expand Down
2 changes: 1 addition & 1 deletion jobs/JRRFS_MAKE_GRID
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ This is the J-job script for the task that generates grid files.

export pid=${pid:-$$}
export RUN=${RUN:-rrfs}
export jobid=${RUN}_make_grid_${envir}_${cyc}
export jobid=${taskid}

export DATA=${DATAROOT}/${jobid}
mkdir -p ${DATA}
Expand Down
Loading

0 comments on commit 8723574

Please sign in to comment.